Zum Hauptinhalt gehen

display form with secured service

Kommentare

3 Kommentare

  • Nico Burgerhart
    Assign it in the Runtime Modifications of the form to a token property of a form item, e.g. for an AutoCompleteBox:

     

      form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").Token = yourtokenvariable

     

     
    0
  • Permanently deleted user
    What is your the lifespan of your short-lived token?  Not sure if this will apply to your situation or not but here's what we've found recently.

     

    The problem with autocomplete form item is that your token gets assigned when the form loads but if your user doesn't submit a query (i.e. enter the minimum amount of characters into the autocomplete box) before the short-lived token expires, then it will sent an expired token and the form doesn't know what to do with the 'Expired Token' JSON message that gets sent back.

     

    We removed our autocomplete box in some applications because our short-lived token is only good for 1 or 2 minutes and there is good likelyhoood that the user will not have finished searching for features before the token expires.

     

    What the form really needs is a link to a getToken acivity so that it will get a new token before it attempts the autocomplete.

     

    Peter.
    0
  • Permanently deleted user
    Nico,

     

    Thank you very much. That worked like a charm!

     

    Gary
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.