Options

Question about RunModal

Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
edited 2011-04-27 in NAV Three Tier
Hi guys!
I've a big doubt. I've a page with an action that launches a function. in this function I've the following code lines:
...
IF FORM.RUNMODAL(FORM::"MyForm",MyRecordVar)=ACTION::LookupOK THEN BEGIN
...
End;
...
This page is always opened not editable. to make it editable I've to do Actions -> Edit List.
Now I'm wondering if it's due to the action LookupOk. Have I to change action?
there could be something else doesn't work?
Thx in advance!
~Rik~
It works as expected... More or Less...

Answers

  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    You have to take form variable and set it to lookup editable mode to true and run that variable.

    CLEAR(FMSAddInfoList);
          FMSAddInfoList.SetNewDoc("Document No.");
          FMSAddInfoList.SETTABLEVIEW(FMSAddInfo);
          FMSAddInfoList.EDITABLE(TRUE); 
          FMSAddInfoList.LOOKUPMODE(TRUE);
          IF FMSAddInfoList.RUNMODAL = ACTION::LookupOK THEN
    
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    You have to take form variable and set it to lookup editable mode to true and run that variable.

    CLEAR(FMSAddInfoList);
          FMSAddInfoList.SetNewDoc("Document No.");
          FMSAddInfoList.SETTABLEVIEW(FMSAddInfo);
          FMSAddInfoList.EDITABLE(TRUE); 
          FMSAddInfoList.LOOKUPMODE(TRUE);
          IF FMSAddInfoList.RUNMODAL = ACTION::LookupOK THEN
    

    Thx Mohana, I try!
    ~Rik~
    It works as expected... More or Less...
Sign In or Register to comment.