Announcement

Collapse
No announcement yet.

Insert a defined amount of rows in multi record form

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

  • Insert a defined amount of rows in multi record form

    Hi,

    I have a form with an integrated detail form. For every master form I would like to insert a pre defined amount of rows.
    How can this be done.

    There is a parameter 'records for insert' in the multi records form. But can I define that by using a variable?

    Joe
    Last edited by Joe; 06-24-2015, 05:19 PM.

  • #2
    Read there.

    http://192.168.2.17/sc8/doc/manual_m...tm#sc_apl_conf

    jsb

    Comment


    • #3
      Originally posted by jsbinca View Post

      This is an intranet address, won't work over the internet ;-)
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        Originally posted by aducom View Post
        This is an intranet address, won't work over the internet ;-)
        Damn it!

        http://www.scriptcase.net/docs/en_us...iptcase-macros

        Better? :-)

        jsb

        Comment


        • #5
          I found it in the manual....
          I will read through it ;-)
          Thanks
          Joe

          Comment


          • #6
            Do I have to use this macro in the master or in the detail form itself?

            Comment


            • #7
              Originally posted by Joe View Post
              Do I have to use this macro in the master or in the detail form itself?
              Detail form, onApplicationInit or onScriptInit.

              jsb

              Comment


              • #8
                What does this mean:
                This macro must be used by one application to modify the properties of another application.

                Comment


                • #9
                  That you control properties in another application and you cannot use this macro to change properties to the current application. It's Brazilian English. You get used to it ;-)
                  Albert Drent
                  aducom software netherlands
                  scriptcase partner, reseller, support and (turn-key) development
                  www.scriptcase.eu / www.scriptcase.nl

                  Comment


                  • #10
                    Ok, so I have to re ask my question if I can use this macro in the details form itself or do I have to use it in the master form or the grid that links to the master form?
                    I tried some time now and can't get it working.

                    Joe

                    Comment


                    • #11
                      I didn't try in a master/detail situation, bat it works in the onApplicationInit and onScriptInit event of the
                      application you are calling, although the manual suggests something different.
                      If I got it right you have a master/detail with the detail being a multiple records form.
                      So just stick it in the onApplicationInit event of the multiple records form.

                      jsb

                      Comment


                      • #12
                        It works fine if I call the detail form directly from SC development but doesn't work in my project if I click it as a tab in my master form.
                        Also it doesn't work if I put the macro in the master form.
                        Any ideas?

                        Joe

                        Comment

                        Working...
                        X