• Creator
    Topic
  • #4272
    lp_irovetz
    Participant

      Return Wink

      When we create 2 or 3 main applets, it’s easy for user to propose same interface for same action.
      For instance a windows to choise in a list or same “waiting windows”, etc …

      But actualy, we need to write any time the same code in all the applet.

      Difficult to maintain or to improve or change some piece of the calling code Frown

      Could it possible for you engeneer team to improve Formativ to include a ‘call-back’ or a ‘return’ fonction to go back the applet ?

      Thanks

      L.P. Irovetz
      ARCANE GroupWare

    • Author
      Replies
    • #7679
      Support 1
      Participant

        Dear L.P.,

        Thank you for your enquiry.

        The Formativ language is based on VBScript which is a scripting language, not a full-blown programming language with support for multiple code modules. This is an unfortunate limitation for large or complex multi-applet solutions.

        Here are the suggested workarounds to the problem:

        • Manually copy common code and forms into every applet that requires the code. (Use the Export and Import buttons on the Forms dialog in the Formativ IDE to copy forms between applets.) This is not ideal because an update to one copy will not flow on automatically to all copies. You will need to ensure that updates like this are copied manually to all applets that use the code/forms.
        • Write an applet to automatically update applet (VBF) files which use common code. It may be necessary to put special ‘delimiter’ comments before and after the common code, eg:
          ' [BEGIN_COMMON WAIT_UI]
            'Implementation of WAIT_UI common code here...
          ' [END_COMMON WAIT_UI]

        • It would be nontrivial to add a ‘callback’ or ‘return’ feature to Formativ, and we do not plan to do so at this time. However, it may be possible to approximate this behavior in multiple chained applets. For example, suppose you have an applet C which implements common functionality. Some applet A would need to pass all relevant data to applet C so that C executes the required class/method(s) and can identify A. After processing, C would pass its results to A, as well as state information that A can use to restore its previous state.

          I think this option will not be trivial to implement.

        I hope this helps.

        Regards,
        Advansys Support

        #7680
        lp_irovetz
        Participant

          Thanks for your answer,

          Notes about your
          1°) It’s just i don’t want because i have to many applets to spend time to browse any of them for a little cosmetic modification
          Sometime nedeed (and god to make clear code), but to long

          2°) Difficult

          3°) I work like this in some of my applet. According you say ‘not trivial’

          Suggestion:
          Why don’t used a mecanism like you use in “launch a programm”
          In it applet A in Formaiv launch an programm by the shell and wait for the end of it.

          I used this scenario to launche VB prog and put in standby formativ
          The user work with the VB applet.
          When he quit the applet, the vb applet write on disk some information
          and the formativ continue.

          Sure we have just one step but it’s better than null and we could developpe library of applets.

          Regards
          L.P. Irovetz
          Arcane GroupWare

          #7681
          Support 1
          Participant

            Dear L.P.,

            Our engineers have considered your suggestion, including a number of alternatives for adding a feature like this to Formativ.

            As I think you can imagine, this change to Formativ will be non-trivial. Accordingly, I cannot say if or when it will be made. However, this feature request has been added to the Formativ enhancements database.

            Regards,
            Advansys Support

          Viewing 3 replies - 1 through 3 (of 3 total)
          • You must be logged in to reply to this topic.