Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 2:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Displaying text from variables
PostPosted: October 31st, 2006, 3:36 pm 
Offline

Joined: January 6th, 2005, 8:56 pm
Posts: 330
Location: Houston, Republic of Texas
Opus: 8
OS: W7 Pro
System: Dell Precision T5500, 8 core Dual Xeon 2.13 GHz, 24 GB RAM, All SSD drives
I am doing a simulation/training program on one of our company programs known as the Rig Asset Management System (RAMS). I ran into one of those silly little things that seem to catch me unawares. I needed to be able to capture user input in text boxes and then display the completed work order later. Seems simple enough, just set up a text input box and capture to a variable file, then read that file into the screen when they hit "Close Work Order." However, two things are happening which I do not know are related or not. For one thing, when I test the text input boxes show the title of the variable :"[ILMObject WOTitle]" for my variable "WOTitle." This is text that can be edited or erased, but obviously not something I want shown. Actually, the help files make a big point that it will NOT show. Then, succeedning the screen with the text box that is to show the variable "<WOTitle>" does NOT show the text. It is empty. Where is the variable file written so I can check to see if it is created? Why isn't it showing?

What's up with that?

Dave

_________________
An objective is a description of a performance you want your learners to be able to exhibit before you consider them competent.
Dr. Robert F. Mager, 1962

"If you can't measure it, it's crap."
David A. Mallette, 1980


Top
 Profile  
 
 Post subject:
PostPosted: October 31st, 2006, 6:14 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
It sounds as though you have a variable and an object with the same name - this will cause the name confusion you are seeing. Rename the clashing object.

Also, I may be misunderstanding what you are doing, but you do not need to write the variable contents to a file - you can just use the variable on a later page (assuming it is a publication scope variable and not a page one).

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject: Text Variable
PostPosted: October 31st, 2006, 11:37 pm 
Offline

Joined: November 3rd, 2004, 6:44 pm
Posts: 59
Location: Ipswich, UK
Mallette

I think Duncan is along the right lines with the naming of objects being the same as a variable. This foxed me for a while as well. Att. is an example of what I mean. The text input box + variable works perfectly when the names are different.

Hope this helps.

Clive Cartmel


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject:
PostPosted: November 1st, 2006, 6:39 am 
Offline

Joined: April 1st, 2005, 6:59 pm
Posts: 98
Location: Maastricht, The Netherlands
Opus: V7
OS: Mac OS X 10.7.2 | Windows 8 Dev
System: i5 2.7 | 8G Ram | 1 T HD
Hi Clive,

Delete text field WOTitle2 and add a new Input field with input variable WOTitle2.

Cheers

Ronnie


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 8th, 2006, 3:35 pm 
Offline

Joined: January 6th, 2005, 8:56 pm
Posts: 330
Location: Houston, Republic of Texas
Opus: 8
OS: W7 Pro
System: Dell Precision T5500, 8 core Dual Xeon 2.13 GHz, 24 GB RAM, All SSD drives
I've been off a few days as we work 10, 5 off.

Thanks to Duncan and all. All correct. I wonder, however, how I'd ever have known this and how many others do not? It is not intuitive in the sense that these are two different things entirely and the intuitive thing is to name them the same as they go together to make a whole.

Dave

_________________
An objective is a description of a performance you want your learners to be able to exhibit before you consider them competent.
Dr. Robert F. Mager, 1962

"If you can't measure it, it's crap."
David A. Mallette, 1980


Top
 Profile  
 
 Post subject:
PostPosted: November 8th, 2006, 7:12 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
General rule when using any programming language or application -- never give two objects (of any kind) the same name.

Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group