Tips & Traps [contibutions]

Zoltan_Gyimesi

Zoltan_Gyimesi

Legendary Poster
Once upon a time there was a downloadable document "OneWorld Developers Tips and Traps" on the Download page of JDE List (http://www.jdelist.com/) initiated, collected and maintained by Tony St.Pierre.

Since Forum has started, Forum solves this purpose much more better with its structure, archives and search capabilities.

I had sent some contribution to Tony in June wich hasn't been added to the document.

Now I will put this coins under this thread, maybe some of them could be useful for somebody.

Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
SEARCH & SELECT VISUAL ASSIST ON CONTROLS WITH DIF

SEARCH & SELECT VISUAL ASSIST ON CONTROLS WITH DIFFERENT DATA TYPE
==================================================================
Under B7321 you can define on a string data type control (in FDA) a visual assist form returning with a numeric value.
It works fine.
Under B7331 the visual assist form can call up but the selected value will not appear in the control.
The keys of the resolution are some new feature in B7331 like:
- Visual Assist Button Clicked event
- Post Visual Assist Button Clicked event
- Suppress Default Visual Assist Form system function

You have to write some ER for Visual Assist Button Clicked. Her is an example:
=======================================================================
FORM: Sales Order Header [FIX INSPECT] (W4210G)
=======================================================================
CONTROL: EDIT Ordered By
EVENT: Visual Assist Button Clicked
-----------------------------------------------------------------------
evt_mnAddressNumber_AN8
0001 // *** Begins SAR#: GYZB7332, by Z. Gyimesi 05.30.2000
0002 //
0003 Suppress Default Visual Assist Form
0004 Call( App:p0101S , Form: W0101SA )
VA evt_mnAddressNumber_AN8 <- AddressNumber
"XJDE0001" X Version
0005 //
0006 If VA evt_mnAddressNumber_AN8 is not equal to <Blank>
And VA evt_mnAddressNumber_AN8 is not equal to <Null>
And VA evt_mnAddressNumber_AN8 is not equal to <Zero>
0007 FC Ordered By = [VA evt_mnAddressNumber_AN8]
0008 End If
0009 //
0010 // *** Ends SAR#: GYZB7332, by Z. Gyimesi 05.30.2000
=======================================================================
Some explanation:
- you can define any form for the control making available the visual assist button for it (when it has not one default from Data Dictionary)
- you have to define an ER scope variable (e.g. evt_mnAddressNumber_AN8) with a data type like the return value of the called form getting the return value from it through the form interconnect data structure of it.
- Put the return value into form control in the assigment statement via "expression" instead of simple way. The purpose of it is the data type conversion.

(I tried these only with string controls with assist forms returning with a math numeric value.)


B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
LANGUAGE CODE FOR USERS WHO ARE USING DEVELOPMENT

LANGUAGE CODE FOR USERS WHO ARE USING DEVELOPMENT TOOLS
=======================================================
Always sign on OW with a user ID who has a blank (Domestic) language preference setting in his/her user profile when you plan to use Development Tools.
Doing other way can cause sever problems. I do not know how but I suppose, sometimes domestic spec entries won't be created and it can cause several problems later.


B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
JARGON (or SYSTEM) AND FORM OVERRIDES IN DATA DICT

JARGON (or SYSTEM) AND FORM OVERRIDES IN DATA DICTIONARY
========================================================
B732:
====
It does not work by our experiences.

B7331:
=====
Alpha Description:
---------------------------
This is the title of the balloon help calling it up with a right mouse click on a selected control of a form.
Form level overrides will appear under the original help text on the specific form, the overriden title do not, only the glossary (help) text.
System level overrides cause effect:
a.) Running from OL: when the System Code of the Appl matches
b.) Running from OW Explorer menu: when the System Code of the Menu Selection matches
System level overrides replace the original help, the title and the text too.

Row/Column descriptions:
--------------------------------------
You can enter only System level (Jargon) override.
It cause effect like Alpha (see above) further only on controls which are not overriden on the form.
In this situation the Row and Column descriptions will replaced whith the overrides on the form.

If you have language overrides too then the story is more complex.


B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Back
Top