update a main form control with the value of a control in a detail form? SC V4

hi all,

somebody knows how to update a main form control with the value of a control in a detail form?

thanks in advance!

Re: update a main form control with the value of a control in a detail form? SC V4

You mean a relation like Master/Detail ?

You can use global variable to set the values between apps.

Re: update a main form control with the value of a control in a detail form? SC V4

yes, this is my deal !!

I have a main form which manages somes parents (the associated table includes ID, name, lastname and NbChilds (an integer that indicates le amount of childs for a parent)

I have a detail form which allow to record each childs for a parent

And I need to increment “NbChilds” in the main form each time a child is created in detail form…

Please could you explain in detail how could I use global variable for that??

thanks!

Re: update a main form control with the value of a control in a detail form? SC V4

see this Example,

Passing values between the apps :
Tutorial: http://www.scriptcase.net/phpgenerator/samples/tutoriais/form/form38.php
App Runnin: http://www.scriptcase.net/systems/v5/exemplos_en_us/form38/form38.php

Re: update a main form control with the value of a control in a detail form? SC V4

Hi from france!!

I found a simple solution for my request!!

the use of the sc_master_value();

Hope that it will help anybody!!!

regards!