How to add parameter for URL ?

casanovacasanova Member Posts: 194
edited 2014-01-22 in NAV Three Tier
hi all
I have send url link from nav to email
and from that email it will trigger page in NAV
ApprovalURL := STRSUBSTNO('DynamicsNAV:+//%1/RunPage?Page=%2',SystemUri.EscapeDataString(COMPANYNAME), 50001);

my question is ..
how to add parameter for this page?
lets say i want to open this page, but only filtered by document no

thx

Comments

  • kabrocokabroco Member Posts: 111
    do not exactly understand the question but something like this?

    ="dynamicsnav:////runreport?report=104&filter=Customer.%22No.%
    22:"+Fields!Customer__No__.Value

    Or
    ="dynamicsnav:////runpage?page=21&mode=edit&bookmark="+Fields!Custome
    rBookmark.Value

    This is used for linking in reporting to a page. Use & for filtering.
  • casanovacasanova Member Posts: 194
    kabroco wrote:
    do not exactly understand the question but something like this?

    ="dynamicsnav:////runreport?report=104&filter=Customer.%22No.%
    22:"+Fields!Customer__No__.Value

    Or
    ="dynamicsnav:////runpage?page=21&mode=edit&bookmark="+Fields!Custome
    rBookmark.Value

    This is used for linking in reporting to a page. Use & for filtering.

    ok actually i have a page no 50043
    i can open this page
    but i can't filter it by document no
    because the page that i want to open is Card type
    if i use your and then roll over it to the URL
    it will be like this image.. (what i need is.. ==> DynamicsNAV:+//CompanyName/RunPage?Page=50043&mode=edit&Document No.=L-CASEDOCNO)
  • casanovacasanova Member Posts: 194
    i saw from http://msdn.microsoft.com/en-us/library/dd338670(v=nav.70).aspx
    it should be like this
    DynamicsNAV://localhost/DynamicsNAV70/CRONUS%20International%20Ltd./runpage?page=22&bookmark=120000000089083237343
    

    but to get this bookmark 120000000089083237343 ??
    thx
  • geordiegeordie Member Posts: 655
    Bookmark can be generated through RECORDID statement (in a page, for example):
    CLEAR(RecRef);
    RecRef.Open(DATABASE::Customer);  //Used a RecordRef variable
    RecRef.SETPOSITION(GETPOSITION);  
    URL := 'DynamicsNAV://localhost/DynamicsNAV70/CRONUS%20International%20Ltd./runpage?page=22&bookmark='+FORMAT(RecordRef.RECORDID,0,10);  //10 = base64 encoding
    
Sign In or Register to comment.