Display text after a post-transition Question

Chen Xie
Chen Xie
Offline
0
I have a post-transition script to examine several field.

If one of the examination failed, I still want to transit to the next state, but on that screen I want to print out a message to notify the user,so how can I do that?

I have tried redomessage method but it just stayed in that transition instead of transit to the next state.

Thanks.
Responses (8)
  • Accepted Answer

    Thursday, October 04 2012, 12:50 PM - #Permalink
    0
    If you are on a recent SBM version (ie, 10.1) you would be able to use Form Actions to popup a message. On earlier versions I can't help you unfortunately.
    The reply is currently minimized Show
  • Accepted Answer

    Chen Xie
    Chen Xie
    Offline
    Thursday, October 04 2012, 01:55 PM - #Permalink
    0
    Thanks for the reply. No, I am not using a current version, struggling with 2009 R4:)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 04 2012, 07:46 PM - #Permalink
    0
    You can try using Javascript with function alert("").

    You have to insert Javascript in the form and write a callback function,
    The reply is currently minimized Show
  • Accepted Answer

    Chen Xie
    Chen Xie
    Offline
    Friday, October 05 2012, 05:44 AM - #Permalink
    0
    Hi, the problem is that the contents to be displayed are generated in the post-transition script. If I use javascript, I must figure out how to pass that information to Javascript.
    The reply is currently minimized Show
  • Accepted Answer

    Jeff Malin
    Jeff Malin
    Offline
    Friday, October 05 2012, 08:43 AM - #Permalink
    0
    Use can use SBM Script to stream the JavaScript using ext.writeStream, the script will then be executed on the page to which the Script writes.
    The reply is currently minimized Show
  • Accepted Answer

    Chen Xie
    Chen Xie
    Offline
    Monday, October 08 2012, 05:35 AM - #Permalink
    0
    RUNTIME ERROR IN SCRIPT "Update" (id=283)

    (called from post-transition context)

    SBM AppScript output stream unavailable. -- ERR #21

    It seems that the ext.outstream is not accessible in the post-transition script
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 09 2012, 06:31 PM - #Permalink
    0
    In your script put either a blank string or the alert message into a text field, then display that field at top of page in next state.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 29 2014, 10:46 AM - #Permalink
    0
    Something like Paul said.Place a hidden field on the form, say a checkbox. In the post script set/unset the checkbox.On the form (yes you will need a form) that will be the state after the transition, add javascript to get the field value of the checkbox, and if checked, use the ShowErrorDiv function of javascript.NOTE: The checkbox field will have to be on the form as visible initially or else it will not render in the DOM at all.This is a simplified version of what you do.1) In post, set checkbox.2) In javascript for state form, at top of javsascript editor, HideField(checkbox field) - this is not in a callback, just standing alone, it will run before anything else, and you will not see the field "disappear" as if you would if you placed this code in a LoadCallback function.3) add a LoadCallback function in which you getfieldvalue of checkbox and showerrordiv if checked.4) you are done
    The reply is currently minimized Show
Your Reply

Recent Tweets