hi lars,

u can do it by opening form1 first...
then system will handle the relation automatically..
give valid journal id...


static void Job13(Args _args)
{
  formrun  f,f1;
  LedgerJournalTable  table;
  Args args1 = new Args();
  Args args2 = new Args();
  FormControl   fc;
  ;
    select table where table.JournalNum == '000051_003';

    args2.object(new form(formstr(LedgerJournalTable)));
    args2.record(table);

    f1 = ClassFactory.formRunClass(args2);
    f1.init();
    f1.run();

    args1.caller(f1);
    args1.record(table);
    args1.object(new form(formstr(LedgerJournalTransCustPaym)));

    f = ClassFactory.formRunClass(args1);

    f.init();
    f.run();
    f1.close();
    f.wait();

}

thanks
Nishant


-----
Original Message -----
From: "Lars Holm" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, 11 March, 2005 3:26 PM
Subject: [development-axapta] Add dynalinks programatically


>
>
> Hi all,


> Is it possible somehow to add dynalinks programatically? Example:

> Form 1 calls Form2. Between those, there's a dynalink which is
> maintained by the kernel (I think). When I change a record in form1, the
> corresponding record is shown in Form2. Which record depends on the
> relations between the tables of course.

> But if I would like to open Form2 from code - e.g. from a class, how can
> I make that form establish a dynalink to a certain record in my class -
> is it possible? I do not want to fiddle with doubtful code like creating
> a Form from code etc.

> Thanks.


> Best regards,
> Lars

>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>

> Yahoo! Groups Links
>
>
>

>
>
>
>





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to