komal_hole
28th March 2018, 13:20
how can i solve this problem-
disable all fields of satellite session when click on close button
srprks
29th March 2018, 08:04
Hi
You can take a flag for close button.Mark true after.choice.
Then you can use disable.satellite function.
Please find below description.
Syntax:
function void disable.satellite (const string session.code)
Description
This disables the specified satellite. The TAB on which the satellite is shown will become disabled. When this TAB is currently active, another TAB will be selected. Initially all satellite TAB buttons are enabled.
This function is relevant in multi-main table controller sessions only.
Arguments
const string session.code The index identifier. If this is 0, the field is not associated with any index. It is always a view field.
Context
This function is implemented in the 4GL Engine and can be used in all script types.
Notes
Use the function enable.satellite() to enable a satellite TAB which was disabled.
The focus will change to the first enabled satellite as defined by WorkTop. To avoid this behavior, enable satellites before disable satellites. Change the focus with to.satellite()
Example
|Disable satellite
disable.satellite("tssoc2110m000")
Thanks,
Soumya
komal_hole
5th April 2018, 11:45
Hi srprks,
Thanks For Your Update..!!!
I have Tried What Your suggestion, But With this the Whole Session is Getting Disabled , What i am looking for is When I click on Close Button then All The Record Present at Header Level As Well As Line Level, all Should Seems As a Read Only,
Like An Purchase Order is having Status Close, we can not make any changes in the same, all the records comes as a read only..
I hope this info will help you for better clarity.
Thanks
Komal
rahul ingale
5th April 2018, 21:44
Use method.is.allowed of for main table of each satellite and header session.when mode is dal_update then check the status.
srprks
6th April 2018, 08:18
Hi
You can use something like this in both header and line sessions.
In 4GL you can do like this.
before.display.object:
if status = closed then
disable.groups(x)
disable.commands(add.set...)
else
enable.group(x)
enable.commands(add.set...)
endif
Sahil Sharma
6th August 2018, 14:21
#include<bic_4gl2>
function extern boolean modify.set.is.allowed ()
{
return(true)
}
Use This function instead.