Skip to main content
Question

Custom Menu condition

  • February 27, 2024
  • 9 replies
  • 273 views

Forum|alt.badge.img+9

I have a custom menu (called Part ordered on Reqs) on the Requisition Lines tab of the Purchase Requisition screen. When the menu is selected (via RMB) it is supposed to open a new window showing the Purchase Requisition Lines screen but with only the Part No. and Vendor No of the Part No. and Vendor No. that was on the line that was right-clicked.
I have a screen cap of the menu below. As you can see I am passing in the Part No. and Vendor No. I am also passing in the condition that the state must be in one of "Released;Planned;Partially Authorized". This condition is not working though.
It gives me all lines with all states not just the ones in those states. Can anyone tell me what is wrong?
Thanks.
 

 

 

9 replies

matt.watters
Superhero (Partner)
Forum|alt.badge.img+25
  • Superhero (Partner)
  • 569 replies
  • February 27, 2024

The Condition determines under which condition the menu should be available, it is not passed to the new window. In your setup, the menu will be grayed out on all requisition lines in any status other than Planned, Released, or Partially Authorized.

I think you need to create a menu that will run a search, so a PL/SQL Block should suffice. The search would find in Purchase Requisition Lines all lines for this Part No and Supplier in states Planned, Released, or Partially Authorized.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 96 replies
  • February 27, 2024
matt.watters wrote:

The Condition determines under which condition the menu should be available, it is not passed to the new window. In your setup, the menu will be grayed out on all requisition lines in any status other than Planned, Released, or Partially Authorized.

I think you need to create a menu that will run a search, so a PL/SQL Block should suffice. The search would find in Purchase Requisition Lines all lines for this Part No and Supplier in states Planned, Released, or Partially Authorized.

OK I have to change my action type to “PL/SQL block” and then get the Purchase Requisition Lines window to open. I have never been able to get a custom menu with a PL/SQL block  to open a new IFS window though.


dewelk
Sidekick (Employee)
Forum|alt.badge.img+3
  • Sidekick (Employee)
  • 5 replies
  • February 27, 2024

Hi @jdoherty,  

I am also passing in the condition that the state must be in one of "Released;Planned;Partially Authorized". This condition is not working though.

Can you clarify more regarding this statement? Did you mean the condition did not filter out the data on the destination window or the custom menu is available for all states? 


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 96 replies
  • February 27, 2024
dewelk wrote:

Hi @jdoherty,  

I am also passing in the condition that the state must be in one of "Released;Planned;Partially Authorized". This condition is not working though.

Can you clarify more regarding this statement? Did you mean the condition did not filter out the data on the destination window or the custom menu is available for all states? 

I mean that the the condition did not filter out the data on the destination window. I thought that was what it was supposed to do but it isn’t (my mistake). I will have to do it in a PL SQL block instead. 


pwlm
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 70 replies
  • February 27, 2024

You won’t get your desired outcome with a PLSQL method either if I am understanding the use case correctly.

This would be better delivered using a lobby or multiple lobbies. You could navigate from the page passing the parameters through to a lobby page, then have a lobby element that filters the data further by status.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 96 replies
  • February 28, 2024
pwlm wrote:

You won’t get your desired outcome with a PLSQL method either if I am understanding the use case correctly.

This would be better delivered using a lobby or multiple lobbies. You could navigate from the page passing the parameters through to a lobby page, then have a lobby element that filters the data further by status.

I will try doing it by making the menu open a lobby that contains the Purchase Requisition Lines screen and passing in the parameters from the line on the Requisition; only lines in state “Released;Planned;Partially Authorized”.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 96 replies
  • February 28, 2024
jdoherty wrote:
pwlm wrote:

You won’t get your desired outcome with a PLSQL method either if I am understanding the use case correctly.

This would be better delivered using a lobby or multiple lobbies. You could navigate from the page passing the parameters through to a lobby page, then have a lobby element that filters the data further by status.

I will try doing it by making the menu open a lobby that contains the Purchase Requisition Lines screen and passing in the parameters from the line on the Requisition; only lines in state “Released;Planned;Partially Authorized”.

I have done what you suggested; I created a lobby page with a lobby element that displays Purchase Requisition Lines filtered by status “Released;Planned;Partially Authorized".

I then set the custom menu to go to that lobby page but I can’t pass it the Vendor_no and Part_no parameters from the line on the Purchase requisition that has been right-clicked.

In my screen cap, the Url is the address of the Lobby. I need to append on to the end of it the Vendor_no and Part_no. Can anyone tell me how to do that?

Thank you

 


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 5 replies
  • December 23, 2024

firstly u need to create variable in Lobby and after that u can get values from lines using &vendor_no&

there is an example below,

ifswin:Ifs.Fnd.CompositePageRenderer.PageContainer?page_id=b8eff497-4ce2-43fb-ab6f-eaa2f58c2293&Vendor_no =&VENDOR_NO&


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 96 replies
  • January 2, 2025
soner wrote:

firstly u need to create variable in Lobby and after that u can get values from lines using &vendor_no&

there is an example below,

ifswin:Ifs.Fnd.CompositePageRenderer.PageContainer?page_id=b8eff497-4ce2-43fb-ab6f-eaa2f58c2293&Vendor_no =&VENDOR_NO&

Thanks, I will try that


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