Skip to main content
Question

How to use a custom field as variable in another custom field


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • 1227 replies

Dear community,

it is possible to use a custom field as variable in another custom field?

The argument v.cf$_c_inventor_part is already a custom field. Now I want to use it another custom field to get the description.

 

Thank you.

6 replies

Forum|alt.badge.img+10
  • Hero (Customer)
  • 102 replies
  • April 8, 2022

Dear @Link ,

 

Maybe you can try;

 

select cf$_c_inventor_part from inventory_part_cfv where v.contract=:contract and v.cf$_c_inventor_part=:part_no

 

 

Kind Regards

Ozgun Bal


AveTonitM
Hero (Partner)
Forum|alt.badge.img+10
  • Hero (Partner)
  • 149 replies
  • April 8, 2022

Hi @Link ,

You need to modify the select statement so that, instead of using “from dual” you base the select statement to use the view ending with _CFV, where the custom field CF$_C_INVENTORY_PART column is available.

For example:

select 

IFSAPP.INVENTORY_PART_API(:CONTRACT, :CF$_C_INVENTORY_PART)

from INVENTORY_PART_CFV

 

I’m puzzled about how this is done in IFS Cloud and Aurena GUI. Any insights would be highly appreciated. 


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1227 replies
  • April 8, 2022

Hi @AveTonitM , hi @Ozgun BAL 

thank you all at first.

Then I need a select statement like this:

select description from ifsapp.inventory_part
where part_no = :cf$_c_inventor_part
and contract = :contract

I want to fetch the description form the inventory_part view. The screen where I want to put it in has the field Inventory Part (also custom field). Now i want to use thís field as a argument to get the description.

 

 

But I get this error message:

 

Thank you


ZTC ZTC JGOTA
Hero (Customer)
Forum|alt.badge.img+14
  • Hero (Customer)
  • 224 replies
  • April 8, 2022

Hello @Link 

 

Why you do not use the API function created in the page where you created the custom field?

you can call the API for the custom field. 

You can pass the API function as a parameter as well and you can “Expression” to just write the PLSQL code.

 

Thanks,

JL

 


Forum|alt.badge.img+14
  • Superhero (Employee)
  • 177 replies
  • April 10, 2022

@Link 

Hi Link,

Can you try the settings like below .(Use a expression) 

 

Regards,

Sahan


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1227 replies
  • April 11, 2022
ZTC ZTC JGOTA wrote:

Hello @Link 

 

Why you do not use the API function created in the page where you created the custom field?

you can call the API for the custom field. 

You can pass the API function as a parameter as well and you can “Expression” to just write the PLSQL code.

 

Thanks,

JL

 

Hi @ZTC ZTC JGOTA 

in this case the API function will work if I use the expression:

 

But what if an API doesn’t exists?

 

Thank you


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings