Skip to main content
Question

Custom Field Expression


Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 14 replies

Hello 

On the Purchase Requistion lines screen, commodity group 2 field is shown as standard.

 

 

 

I would like to create a custom field to include the commodity group 1 which is also displayed on the inventory part as the prime commodity. 

 

would someone be able to help me please to write the expression as i keep getting errors 

 

Thank you

20 replies

COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 9, 2024

Hi @Nicky , please see below,

inventory_part_api.get_prime_commodity(contract,part_no)

 

Thanks,

Jamie


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 9, 2024

Hi Jamie, many thanks for taking the time to reply :) 

I still get this pesky error! 

 

 


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 9, 2024

Can you show me the expression you are adding?


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 9, 2024

Hi Jamie, 

Here is the expression:

 

 


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 9, 2024

Please try the following,

inventory_part_api.get_prime_commodity(t.contract,t.part_no)


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 9, 2024

It did not like that either ðŸ˜•


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 9, 2024

 


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 11, 2024

@Nicky can you completely remove your custom fields and retry again?


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 11, 2024

It should be working :(


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 11, 2024

I will give it another go :)


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 11, 2024

Hi, so completely removed, logged out and back in again.. 

 

but still errors, sorry its being a pain!   I managed to get the column in using this

 but i am missing the data after reloading the configuration and refreshing, tbh its more of me trying anything (with a limited skill set)


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 11, 2024

Give this a bash please using the select option.

 

Arguments = v.requisition_no, v.line_no, v.release_no, v.contract

Select Statement = 

SELECT PRIME_COMMODITY FROM INVENTORY_PART WHERE CONTRACT = :contract AND PART_NO = purchase_req_line_part_api.Get_Part_No(:requisition_no, :line_no, :release_no)


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 11, 2024

I will have a go!! Thank you for your time :)


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 12, 2024

Hi i was able to approve and publish 

But when reloading the configuration 

The system does not restart the page for me to select the new column 


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 12, 2024

Can you make sure the view name is approved here,

 


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 12, 2024

 


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 12, 2024

If you click here and approve PURCHASE_REQ_LINE_ALL then click OK. You can the Synchronise and the field should then be visible.

the issue is that none of the views are approved for the customer fields.


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 12, 2024

Just unapproved and did it all again :) 

 

 


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • 14 replies
  • July 12, 2024

YOU DID IT :) Thank you very very much for your time and patience !!


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 210 replies
  • July 12, 2024

No worries. Happy to help ðŸ˜€


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