Hi Marcelo,
On the button that opens your pop-up, you could populate a Shared Result before your Show Screen In Pop Up action, then test on your pop-up screen to see if that Shared Result has a value. This will allow you to determine if the screen was opened from the Bill screen. You can make the Shared Result whatever you like in this case, just make sure to test for it on your pop-up screen appropriately. You can then set up a conditional statement to test for this and place your conditional actions inside there.
When you return a Shared Result to your Bill screen (for the purpose of auto-populating your Item info), I would recommend returning the RecordID of the new Item. The Save All Sections action sets the Active RecordID for the screen, so you can assign that RecordID to a Shared Result after that action but before your Close Pop Up Screen action.
Hope this helps.
Need more help with customization? Ask us about Method Professional Services.
- Justin