Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Baanboard at LinkedIn


Poll
What actions do you take to ensure compliance with the sanction/embargo lists published by the EU and the US?
don't know what you are talking about
55%
we are scanning customers, suppliers and employees using own programs on a regular basis
12%
each delivery/purchase adress is checked immediately with own programs
2%
we are using third party software for this purpose
10%
we simply don't bother
20%
Total votes: 49

Reference Content

 
4GL choice sections
By patvdv at 26 Feb 2008 - 21:56


4GL choice sections

You use choice sections to program actions that you want to be executed when standard commands or form commands are activated or ended. Choice sections consist of a main section and a subsection. The main section specifies the standard command or form command for which the actions must be executed. The subsections specify when the actions must be executed.

Main section

choice.<standard command>:

The subsections associated with this main section are executed for the specified command. You can enable standard commands and specify form commands from the session Sessions(ttadv2500m000). A list of standard commands appears at the end of this help topic. For form commands, the session, menu or function name is used.

Subsections

before.choice:

The actions programmed in this subsection are executed immediately before the specified command is executed. You can use this subsection, for example, to test data before the command process continues. You can use the choice.again() function to stop the command.

on.choice:

The actions programmed in this subsection are executed when the specified command is activated. These actions are executed instead of the standard action associated with the command. This subsection is not always available. For details, see the list at the end of this help topic.

after.choice:

The actions programmed in this subsection are executed immediately after the specified command has been executed. This subsection is not available for the end.program and abort.program commands.

Example

 choice.first.view:      | standard command
after.choice:
execute(first.set)


choice.ttadv2111m000: | form command
before.choice:
export_var = "some value"

Standard commands

The following table lists the available standard commands and the types of program in which the various choice subsections can be programmed for each command.

No Section name choice.<...> Description Before On After
01 start.set Add/start a new group in main table 1234 ---4 1234
02 first.view View first group of main table 1234 ---4 1234
03 next.view View next group of main table 1234 ---4 1234
04 prev.view View previous group of main table 1234 ---4 1234
05 last.view View last group of main table 1234 ---4 1234
06 def.find Find a specific record on key 1234 ---4 1234
07 find.data Start the set from the current data in the program script. Use: after import of data in a zoom process. (refresh) 1234 ---4 1234
08 first.set View first set of main table 1234 ---4 1234
09 next.set First execute an update.db and then view next set of main table 1234 ---4 1234
10 display.set Open read-only details 1234 ---4 1234
11 prev.set First execute an update.db and then view previous set of main table 1234 ---4 1234
12 rotate.curr Show amounts in other currency (on.choice subsections are available for this command only if no currencies are set) 1234 1234 1234
13 last.set View last set of main table 1234 ---4 1234
14 add.set Insert a new record 1234 ---4 1234
15 update.db First test consistency of data and then (re)write record or set (save) 1234 ---4 1234
16 dupl.occur Copy the record to a new one 1234 ---4 1234
17 recover.set Undo modifications which are not yet written to the database 1234 ---4 1234
18 mark.delete Delete selected records 1234 ---4 1234
19 mark.occur Select a record on the screen 1234 ---4 1234
20 change.order Change the search key 1234 ---4 1234
21 modify.set Change a record stored in the database 1234 ---- 1234
23 print.data Make a report with the current data on the form 1234 1234 1234
24 create.job Add session in job 1234 ---- 1234
25 change.frm Go to another form in session. The command mnemonic (as used by the execute() command is form.tab.change. 1234 ---- 1234
26 first.frm Go to first form 1234 ---- 1234
27 next.frm Go to next form 1234 ---- 1234
28 prev.frm Go to previous form 1234 ---- 1234
29 last.frm Go to last form 1234 ---- 1234
31 resize.frm Resize the current form 1234 1234 1234
34 zoom Out dated: use before.choice.<session> instead. Zoom to another session/menu 1234 ---- 1234
35 interrupt Do an action each time interval 1234 1234 1234
36 end.program End execution of the session; the main table will be updated 1234 ---- ----
37 abort.program Cancel execution of the session. The main table is not updated 1234 ---- ----
39 text.manager Start the text manager 1234 ---- 1234
40 run.job Run job of session 1234 1234 1234
41 global.delete Delete range of records 1234 1234 1234
42 global.copy Copy range of records 1234 1234 1234
43 save.defaults Save values as defaults 1234 ---- 1234
44 get.defaults Get previous stored defaults 1234 ---- 1234
45 chm Chart Manager is started. The command mnemonic (as used by the execute() command is start.chart. 1234 ---4 1234
46 start.query Start query by form 1234 ---4 1234
64 bms A broadcast message is received 1234 1234 1234

The following commands are supported for backward compatibility only. Support is not guaranteed in future versions of the software.

  • cont.process
  • user.0
  • user.1
  • user.2
  • user.3
  • user.4
  • user.5
  • user.6
  • user.7
  • user.8
  • user.9

Related help topics

 



User Notes

The choice.sessionnumber: |* Form Command Section does not work, as found in Baan V.

Try instead:

choice.zoom:

This works on any session declared as a Session Zoom Form Command.

 


0
No votes yet


All times are GMT +2. The time now is 23:09.


©2001-2008 - Baanboard.com - Baanforums.com