|
It is currently Wed Feb 08, 2012 11:53 pm
|
View unanswered posts | View active topics
| 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. |
 |
|
 |
|
| Author |
Message |
|
make
|
Post subject: Order of webified elements Posted: Wed Oct 17, 2007 8:58 am |
Joined: Thu Oct 04, 2007 1:35 pm Posts: 44
|
|
How is the order of my webified elements in the browser determined?
It's definitely not in alphabetical order. I assume that it's in the same order as I create the elements. But trough my hierachical statechart it got quite messy with all these attributes.
I could define a view which has the desired order but this is quite time consuming on the one hand and on the other hand my view is lost every time I recompile.
Any hints?
|
|
|
|
 |
|
Mickey
|
Post subject: Posted: Wed Oct 17, 2007 10:20 am |
Joined: Thu Aug 30, 2007 4:31 pm Posts: 152 Location: Germany
|
|
That's the way how Rhapsody handle it ... with (more or less) one click you got a graphical gui that you can use ...
How the order is defined ?.. mmmh no idea but a very good question ... maybe someone else can provide an answer ..
The only think I want to add ... instead of using the autogenerated webpage you can create your own yes your own - and that's pretty cool with graphics etc- webpage. If I have some time I will put an example in this forum how to do that
Bye
Mickey
|
|
|
|
 |
|
Mickey
|
Post subject: Posted: Wed Oct 17, 2007 10:47 am |
Joined: Thu Aug 30, 2007 4:31 pm Posts: 152 Location: Germany
|
Ok I have it ... your question with the order ... the answer is .. it depends
when you add the following attributes in the following order to your modell
first a then c then b
then the order in the webpage is the same (acb)
BUT...
you can change the order go to
VIEW->BROWSER DISPLAY OPTIONS->ENABLE ORDERING and then in the browser change the order with the flashes see picture
| Attachments: |

order.jpg [ 19.07 KiB | Viewed 444 times ]
|
Last edited by Mickey on Wed Oct 17, 2007 1:05 pm, edited 2 times in total.
|
|
|
|
 |
|
make
|
Post subject: Posted: Wed Oct 17, 2007 12:35 pm |
Joined: Thu Oct 04, 2007 1:35 pm Posts: 44
|
|
Thanks Mickey for the hint with the ordering property.
With this hint I've discovered the "edit functions order" dialog by right mouse click on an element group, i.e. functions, and the choosing "edit functions order". In the dialog window I can now sort clicking on one of the column headers (Signature, Return Type, Visibility, Scope) or manually with the up and down buttons.
This works for functions and variable.
What a pitty that it doesn't work for events, which are my major problem.
|
|
|
|
 |
|
make
|
Post subject: Posted: Wed Oct 17, 2007 1:00 pm |
Joined: Thu Oct 04, 2007 1:35 pm Posts: 44
|
|
I've tried to order my events using the up and down arrows and it works fine in the model browser but it doesn't change the appearance in the web browser.
Interestingly sorting the way I described for variables and functions changes its order in the web browser.
Can any one give me a glue how I could change the appearance of the webpage or store my views?
A keyword or link to the right chapter in the manuals might also help. Maybe I'm just using the wrong keywords to search in the documentation.
|
|
|
|
 |
|
Mickey
|
Post subject: Posted: Wed Oct 17, 2007 1:01 pm |
Joined: Thu Aug 30, 2007 4:31 pm Posts: 152 Location: Germany
|
|
don't know what's your problem here for me it works very well even with events
| Attachments: |

worksfine.jpg [ 12.33 KiB | Viewed 441 times ]
|
|
|
|
|
 |
|
make
|
Post subject: Posted: Wed Oct 17, 2007 1:29 pm |
Joined: Thu Oct 04, 2007 1:35 pm Posts: 44
|
|
I might be wrong but these are not the events these are the receptions. I've tried sorting the events.
But thanks for the hint I've tried to sort the receptions as I've described before and surprisingly the "normal" functions in this category are sorted but not the receptions.
You can see the result in the attached screenshot. The functions are in alphabetical order the receptions aren't.
| Attachments: |

unorderedEvents.JPG [ 14.31 KiB | Viewed 438 times ]
|
|
|
|
|
 |
|
Mickey
|
Post subject: Posted: Wed Oct 17, 2007 5:05 pm |
Joined: Thu Aug 30, 2007 4:31 pm Posts: 152 Location: Germany
|
ok ... do the following
-in the browser right click on a class and add a new reception -you will realize that an event window pops up in order to provide a name for your reception called an event 
... so to sumarize event=reception
|
|
|
|
 |
|
make
|
Post subject: Posted: Wed Oct 17, 2007 8:45 pm |
Joined: Thu Oct 04, 2007 1:35 pm Posts: 44
|
I'm using the file based approach of RiC.
If I add an reception (to a file in my case), I can select the corresponding event. I also can have several receptions of the same event but I think this is also a bug of Rhapsody because it was just a duplicate with exactly the same name and references. I couldn't just delete it and had to create another event (evPseudo) to change one of the receptions to this event and then delete the reception. So I can only partly agree that reception=event.
 By the way, clicking in the web browser triggers an event and not an reception, right?
But anyway thanks for your help.
| Attachments: |

duplicateReceptionEvent.jpg [ 7.29 KiB | Viewed 429 times ]
|
|
|
|
|
 |
|
Mickey
|
Post subject: Posted: Thu Oct 18, 2007 5:44 pm |
Joined: Thu Aug 30, 2007 4:31 pm Posts: 152 Location: Germany
|
Hi make ... always good to hear from you ... ready for another try ?
events are defined on package level ... here they are indeed called events ...
If a class or a file can recieve that event it's called a reception in Rhapsody but it is still an event ... In general a Rhapsody user do not differantiate beween event and receptions - it's the same ... please let us stop the naming discussion - I give up -  call it whatever you want
Just another hint: files are singletons and global - so you have to take care with webify in that case ... the support for attributes is limited...
hope this helps
enjoy rhapsody and cu soon
|
|
|
|
 |
|
make
|
Post subject: Posted: Thu Oct 18, 2007 6:09 pm |
Joined: Thu Oct 04, 2007 1:35 pm Posts: 44
|
Hi Mickey, thanks for your clarification. Your definitely the more experienced Rhapsody user, so I will keep your definition in mind.
Today I've discovered how to create my own webpage and access or manipulate attributes or call functions in my model.
I will open another thread for the difficulties I've encountered.
|
|
|
|
 |
|
|
 |
|
 |
|
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
|
|