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

Read there.

http://192.168.2.17/sc8/doc/manual_mp/28-Macros/00-macros_sc.htm#sc_apl_conf

jsb

[QUOTE=jsbinca;37908]Read there.

http://192.168.2.17/sc8/doc/manual_mp/28-Macros/00-macros_sc.htm#sc_apl_conf

jsb[/QUOTE]

This is an intranet address, won’t work over the internet :wink:

Damn it!

http://www.scriptcase.net/docs/en_us/v8/manual_mp.htm#scriptcase-macros/scriptcase-macros

Better? :slight_smile:

jsb

I found it in the manual…
I will read through it :wink:
Thanks
Joe

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

Detail form, onApplicationInit or onScriptInit.

jsb

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

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 :wink:

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

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

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