Dynamically set Dataport Import property

sunnyksunnyk Member Posts: 280
Hi All,
From Sale price worksheet if have added 2 menu items in a button namely Import and Export. so when i click import the dataport should run only for import and if i click it export should run for export. i have only 1 DP. i tried with import property but to no sucess so far?
Any idea where should i modify?

Comments

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    IMPORT property should be the right one. Where did you put your code and what does it look like?
    Import can only be set dynamically in the OnPreDataPort trigger.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • sunnyksunnyk Member Posts: 280
    Yes Einstein. That property should be called only from On preDP but i want to do something like when i click import it should import only without letting user choice on request form of export and vise versa. Suppose if i run this DP from a Form what i have to do?
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    You have to set the FILENAME property as well.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
Sign In or Register to comment.