Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: simple question about variables
PostPosted: March 4th, 2010, 6:04 pm 
Offline

Joined: September 29th, 2006, 3:12 am
Posts: 39
hi

I would to know how you reset all pub variables except one specific variable in the publication,

I know there is an option reset :
-all pub variables ,
-all variables,
-all page variables

but I want to reset all var in the publication execpt one variable , this variable is present in all pages in the publication.

this variable is the user name, once the pub starts you have to type your name, then after you finish your work , all pub variables are to reset , execpt the user name , how you do it ?

I have opus 7.01

thanks


Top
 Profile  
 
 Post subject: Reset Variables
PostPosted: March 4th, 2010, 9:16 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
There is no "Reset all but this one..." command in OPUS. There are two ways to do what you want:

1) Create a Trigger (Button, On Show, whatever), then have an Action of Variable Set for each of your Pubs Variables you want to reset (to zero, blank, today's date, whatever). While this may involved a large number of Actions under this Trigger, it is the simplest and safest way.

2) Create a Trigger like in Step #1, then use File Management to Write the User's Name to a Temp File on your hard drive, THEN use "Reset All Variables," and then do a File Management Read of the Temp File to re-fill the User's Name.

Step #2 may seem simpler, but I would go with Step #1. I'm afraid to ask how many Variables you have created. If you are Scoring questions, then OPUS System_Variables would also have to be reset.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


Top
 Profile Visit website  
 
 Post subject: great....
PostPosted: March 5th, 2010, 12:21 pm 
Offline

Joined: September 29th, 2006, 3:12 am
Posts: 39
Great !

step n2 worked very well for me,... I was trying to do this for 6 month but with no results,....and it was so easy , it was in front of me,...
80% of my problems with opus where solved by this forum.

If this forum would solve all the other life problems ...it would be great! :D


Top
 Profile  
 
 Post subject: One sugestion.
PostPosted: March 18th, 2010, 5:23 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Sherif, a possible alternative in Opus is to write the value of the required variable in disk and after values of all variables deleted, recover the value of this particular variable by reading the file this variable.
Search using the ready actions in Opus - write to disk file and read from disk file in the storage actions. It might work.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] 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