It is currently Thu Feb 09, 2012 12:22 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 6 posts ] 
Author Message
 Post subject: Changing the Value of an Instance
PostPosted: Thu Feb 18, 2010 1:06 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
The manual states you can change the value of an attribute in an object (instance) by setting the "Value" column in the Attributes list. But it doesn't seem to do anything with it when I generate code. My object is instantiated, but it still has the default "Initial Value". What do I have to do to make it actually set the value to what I specified?


Offline
 Profile  
 
 Post subject: Re: Changing the Value of an Instance
PostPosted: Thu Feb 18, 2010 8:41 am 

Joined: Wed May 07, 2008 3:50 pm
Posts: 148
Location: Horsham, W Sussex, England
I don't understand. When would you want the attribute to be set to this value?
Can you add a a link to the page in the manual?

Eg: http://publib.boulder.ibm.com/infocenter/rhaphlp/v7r5/index.jsp?topic=/com.ibm.rhapsody.reference.doc/topics/rhp_r_fw_handle_event_not_consume.html&resultof=%22handleEventNotConsumed%22%20%22handleeventnotconsum%22


Offline
 Profile  
 
 Post subject: Re: Changing the Value of an Instance
PostPosted: Thu Feb 18, 2010 10:44 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
http://publib.boulder.ibm.com/infocente ... 5%74%22%20

Basically, say you have a class called "Car" with a member attribute called "color" of type char*. The manual states I can create two instances with that attribute set per instance. If I have itsRedCar and itsBlueCar, I should be able to set the color attribute by specifying it in the Value column on the attributes page of the object. "red" for itsRedCar and "blue" for itsBlueCar. This sets the values in my diagrams correctly, but it does nothing in generated code.


Offline
 Profile  
 
 Post subject: Re: Changing the Value of an Instance
PostPosted: Thu Feb 18, 2010 10:46 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I tried it for a simple integer type too. Nothing.


Offline
 Profile  
 
 Post subject: Re: Changing the Value of an Instance
PostPosted: Thu Feb 18, 2010 11:36 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I'm using Rhapsody 7.3. No patches.


Offline
 Profile  
 
 Post subject: Re: Changing the Value of an Instance
PostPosted: Sat Feb 20, 2010 1:27 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
Does anybody know? I tried it with Rhapsody 7.5 with no change. I'm obviously doing something wrong, or assuming that it will generate the code. It shows the attributes correctly for each object in the diagrams. Does it not generate code like that? Is that for documentation only?


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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:


suspicion-preferred