Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
17%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
17%
1500 - 2000 GB
17%
> 2000 GB
22%
Total votes: 18

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 28th March 2018, 12:20
komal_hole komal_hole is offline
Newbie
 
Join Date: Feb 2018
Posts: 2
komal_hole is on a distinguished road
Baan: 10.3 - DB: sql - OS: windows 7
Disable Fields in Line Session
Baan: Other/Unknown
C/S: None/Unknown

how can i solve this problem-
disable all fields of satellite session when click on close button
Attached Images
File Type: png Disable Fields in Line Session.png (39.6 KB, 42 views)
Reply With Quote
  #2  
Old 29th March 2018, 07:04
srprks srprks is offline
Member
 
Join Date: May 2016
Location: Bangalore
Posts: 82
srprks is on a distinguished road
Baan: 10.4,Baan IV - DB: Oracle,SQL - OS: Unix,Windows
Hi

You can take a flag for close button.Mark true after.choice.
Then you can use disable.satellite function.

Please find below description.

Code:
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
Reply With Quote
  #3  
Old 5th April 2018, 10:45
komal_hole komal_hole is offline
Newbie
 
Join Date: Feb 2018
Posts: 2
komal_hole is on a distinguished road
Baan: 10.3 - DB: sql - OS: windows 7
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
Reply With Quote
Sponsored Links
  #4  
Old 5th April 2018, 20:44
rahul ingale rahul ingale is offline
Member
 
Join Date: May 2011
Location: Mumbai
Posts: 57
rahul ingale is on a distinguished road
Baan: baan infor - DB: sql - OS: windows xp
Use method.is.allowed of for main table of each satellite and header session.when mode is dal_update then check the status.
__________________
IRL
Reply With Quote
  #5  
Old 6th April 2018, 07:18
srprks srprks is offline
Member
 
Join Date: May 2016
Location: Bangalore
Posts: 82
srprks is on a distinguished road
Baan: 10.4,Baan IV - DB: Oracle,SQL - OS: Unix,Windows
Hi

You can use something like this in both header and line sessions.
In 4GL you can do like this.
Code:
before.display.object:

if status = closed then
       disable.groups(x)
       disable.commands(add.set...)
else
       enable.group(x)
       enable.commands(add.set...)
endif
Reply With Quote
  #6  
Old 6th August 2018, 13:21
Sahil Sharma Sahil Sharma is offline
Junior Member
 
Join Date: Jul 2018
Posts: 15
Sahil Sharma is on a distinguished road
Baan: FP 10.4 - DB: BAAN - OS: windows 10
#include<bic_4gl2>

function extern boolean modify.set.is.allowed ()
{
return(true)
}



Use This function instead.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable standard session insert button sam291091 Tools Development 4 11th February 2014 11:09
add.set without a new line in the session Rinkashiki Tools Development 3 19th June 2013 01:38
Session input fields in report script sivasankari Tools Development 3 13th February 2008 07:00
multi-occ session with view fields baan_player Tools Development 2 31st October 2006 13:46


All times are GMT +2. The time now is 19:06.


©2001-2018 - Baanboard.com - Baanforums.com