Skip to main content
Solved

How to use text as a parameter in Custom Menus?

  • December 29, 2022
  • 8 replies
  • 601 views

hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • 326 replies

Is there a way to send text as a parameter on Custom Menus? 
I tried *, '*', "*"(directly, between single and double quotes.)

 

 

Best answer by Chriswharton22

There is a better way to achieve this using external search. 

as an example:  ifsapf:frmAvailabilityPlanning?EXTERNAL_SEARCH=CONTRACT%3D{&CONTRACT}%26PART_NO%3D123456

If we break this down into the relevant elements:

  • ifsapf:windowname?EXTERNAL_SEARCH=
    • This sets the window name and the external search 
  • CONTRACT
    • FIELD_NAME of the field on the destination screen
  • %3D 
    • is the encoded value for the = sign
  • {&CONTRACT}
    • is the name of the field in the current screen where to take data from, inside braces (these characters are NOT encoded)
  • %26
    • is the encoded value for the & sign
    • used to add a second parameter to the search
  • PART_NO
    • FIELD_NAME of the field on the destination screen
  • %3D 
    • is the encoded value for the = sign
  • 123456
    • Is the fixed value of the part. 

In your example it may be something like this 

ifsapf:frmPurOrdPaymentSchedule_Cust?EXTERNAL_SEARCH=ORDER_NO%3D{&CF$_ORD}%26CHG_ORDER_NO%3D*

 

 

 

8 replies

hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Author
  • Superhero (Customer)
  • 326 replies
  • December 29, 2022

If there is no way. I will use a custom field to get the text.


Forum|alt.badge.img+21
  • Superhero (Employee)
  • 500 replies
  • December 29, 2022

You are correct. The only way is to use a custom field with the hardcoded value.


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Author
  • Superhero (Customer)
  • 326 replies
  • December 29, 2022

I think it is a bad way. But, there isn't any other choice which we know.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 103 replies
  • January 3, 2023

Chriswharton22
Sidekick (Partner)
Forum|alt.badge.img+8
  • Sidekick (Partner)
  • 32 replies
  • Answer
  • February 7, 2023

There is a better way to achieve this using external search. 

as an example:  ifsapf:frmAvailabilityPlanning?EXTERNAL_SEARCH=CONTRACT%3D{&CONTRACT}%26PART_NO%3D123456

If we break this down into the relevant elements:

  • ifsapf:windowname?EXTERNAL_SEARCH=
    • This sets the window name and the external search 
  • CONTRACT
    • FIELD_NAME of the field on the destination screen
  • %3D 
    • is the encoded value for the = sign
  • {&CONTRACT}
    • is the name of the field in the current screen where to take data from, inside braces (these characters are NOT encoded)
  • %26
    • is the encoded value for the & sign
    • used to add a second parameter to the search
  • PART_NO
    • FIELD_NAME of the field on the destination screen
  • %3D 
    • is the encoded value for the = sign
  • 123456
    • Is the fixed value of the part. 

In your example it may be something like this 

ifsapf:frmPurOrdPaymentSchedule_Cust?EXTERNAL_SEARCH=ORDER_NO%3D{&CF$_ORD}%26CHG_ORDER_NO%3D*

 

 

 


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Author
  • Superhero (Customer)
  • 326 replies
  • February 7, 2023

Thank you for the detailed response. I think the same way. But, I did not know if I could pass a parameter from the custom menu. I will try it.


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Author
  • Superhero (Customer)
  • 326 replies
  • February 7, 2023

@Chriswharton22 It works. Thank you. You prevented us from using an unnecessary custom field. :)


Chriswharton22
Sidekick (Partner)
Forum|alt.badge.img+8
  • Sidekick (Partner)
  • 32 replies
  • February 8, 2023

@Chriswharton22 It works. Thank you. You prevented us from using an unnecessary custom field. :)

Happy to help, 

it was driving me mad this week and it isnt well documented, hopefully this will help others too