[GiDlist] Data link between two different dialogboxes

Moderator: GiD Team

Post Reply
Ravish Masti

[GiDlist] Data link between two different dialogboxes

Post by Ravish Masti »

Hello!

Could you please suggest a method to incorporate the following features in a GID project.

1a) Adding a new submenu (for ex. under GID's main menu "Data") and associate with it the general dailogbox interface features similar to the one currently available with the "Materials" submenu.
1b) Is it possible to easily have with this new submenu, a user-defined special fields similar in action to the a_field_name#MAT#(book_name) available for "Materials" submenu?

2)How to link between two different submenu dialog boxes for data updating of a field? To explain this with an example, an entry value for a field "propertyID" in a dialogbox is to be updated in another dialogbox using a field "property_list" keeping a list of "propertyID"s info. This operation is to an extent resembles data updating possible with the special field a_field_name#MAT#(book_name).

Thanking you for your suggestions.

With best wishes,
Ravish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030117/b215e3d1/attachment.htm
Enrique Escolano

[GiDlist] Data link between two different dialogboxes

Post by Enrique Escolano »

1a) Read this previous response of the GiDlist archives about add a new submenu:

http://gid.cimne.com/pipermail/gidlist/2002/000908.html

1b) You can ask GID about the current list of materials with a ".central.s info materials" GiD/tcl order, and fill with
this information the -values of a "ComboBox" or another similar widget

See this archive and the next about the use of a ComboBox widget:
http://gid.cimne.upc.es/pipermail/gidlist/2003/001123.html

2) You can define a global variable, and use a trace to call a procedure to update the fields

for example, this trace call the proc UpdateFields if the value of MyVars(PropID) is set

global MyVars
trace var MyVars(PropID) w "UpdateFields ;#"

proc UpdateFields { } {
global MyVars
#set the parameter "-text" for example of your widget with the current value of MyVars(PropID)
...

}

Some witgets have a parameter "-variable" or "-textvariable" to link automatically the widget value to a variable

Regards

Enrique Escolano
----- Original Message -----
From: Ravish Masti
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, January 17, 2003 3:11 PM
Subject: [GiDlist] Data link between two different dialogboxes


Hello!

Could you please suggest a method to incorporate the following features in a GID project.

1a) Adding a new submenu (for ex. under GID's main menu "Data") and associate with it the general dailogbox interface features similar to the one currently available with the "Materials" submenu.
1b) Is it possible to easily have with this new submenu, a user-defined special fields similar in action to the a_field_name#MAT#(book_name) available for "Materials" submenu?

2)How to link between two different submenu dialog boxes for data updating of a field? To explain this with an example, an entry value for a field "propertyID" in a dialogbox is to be updated in another dialogbox using a field "property_list" keeping a list of "propertyID"s info. This operation is to an extent resembles data updating possible with the special field a_field_name#MAT#(book_name).

Thanking you for your suggestions.

With best wishes,
Ravish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030117/c7f6cd32/attachment.htm
Post Reply