Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Cheat Sheet programming issue <onCompletion>(Showing the <onCompletion> text after two skip-able subitems.)
Cheat Sheet programming issue <onCompletion> [message #691615] Fri, 01 July 2011 17:05 Go to next message
Rich Payton is currently offline Rich Payton
Messages: 21
Registered: June 2011
Junior Member
Here is the problem:

1. I have written a Cheat Sheet that has two sub-items that can be performed.
2. I user can pick which one to perform. They don't have to do both.
3. The step is only considered complete if both subitems are completed.
4. This is the final step of the Cheat Sheet.
5. I want to display <onCompletion> text, but the <onCompletion> text will only display if both subitems are completed.

I would like to write some code that checks both subitems complete as long as one of them is completed. I thought that I might be able to do this through using conditional-subitems.

Any ideas on how to solve this problem?

I could restructure the Cheat Sheet to get the behavior I want, but I would rather solve this problem directly.

Here's the code I am working with:

   <item
         skip="false"
         title="Set Launch Time">
      <description>
         The Launch Time (TFG) is defined as seconds after midnight of the launch day (TLDY).  Enter the launch time one of two ways.
<br/><br/>
Changes in one box will be reflected in the other box.  Choose <b>one</b> of the boxes to enter the time.
      </description>
      <subitem
            label="Enter the launch time in seconds after midnight"
            skip="true">
      </subitem>
      <subitem
            label="Enter the launch time in hours, minutes, seconds (HHMMSS)"
            skip="true">
      </subitem>
      <onCompletion>You have successfully completed this tutorial.  All of the information in the <b>Event Launch Information</b> section should now be completed.
      </onCompletion>
   </item>


Thanks!
Re: Cheat Sheet programming issue <onCompletion> [message #698165 is a reply to message #691615] Mon, 18 July 2011 19:10 Go to previous message
Chris Goldthorpe is currently offline Chris Goldthorpe
Messages: 815
Registered: July 2009
Senior Member
Cheat sheets don't have a construct which marks an item as complete when any one of the sub items is complete. This feature does exist for composite cheat sheets but it sounds as though that is not what you were looking for.
Previous Topic:conditional-subitem use in Cheat Sheets
Next Topic:Enabling Cheat Sheet Editor in an RCP
Goto Forum:
  


Current Time: Fri Aug 22 21:50:31 EDT 2014

Powered by FUDForum. Page generated in 0.03058 seconds