• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

vvupload and app id

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vvupload and app id

    Hi Support,

    In using vvupload to import files through Valence the parameters seem to require app id. Since we have not assigned this app to any Valence portal yet, we have no app id. Also, app id could be different between development and production instances so we don't want to "hard code" the app id.

    In valence.js we can get sid but we can't find equivalent command to get app id even though valence.js itself does get it for generating the Ajax HTTP calls.

    What can we do to officially retrieve the app id from within the app, only to satisfy the vvupload command requirements. Maybe the vvupload process can assume same app id as the caller?

    In the meantime, we are hard coding the app id which works temporarily.

    Thanks,

    Peter

  • #2
    From the back-end you can retrieve the app id by using:
    Code:
    vvIn_num('app');
    From the front-end:
    Code:
    Valence.getUrlParam('app');

    Comment

    Working...
    X