How it can be possible that a crystal layout pick a parameter from open document automatically, and there is no need to enter parameters manually.
Scenario: I have created a layout for AR Invoice, having parameter of OINV.DocNum , every time while previewing or printing the layout it need to enter the DocNum manually, i need not to enter the DocNum manually and the layout automatically pick the data from the open document i.e AR Invoice
Remember: I have tried the layout without parameters, only 1st entry in the data-base is loading every time.
Looking forwards your valuable guidance
You need to use TOKEN for the Crystal Layout. Standard parameter wont work,
Use DocKey@ and ObjectId@ are for document layouts. The DocKey@ token can recognize document numbers dynamically so it's mandatory for document layouts; the ObjectId@ token can recognize document types.
Please follow the below thread for your assistance.