Need help on flex3- Click events

Hello,
I have created a loosly coupled presentation layer using c# and flex. The previous project was in visual studio. It was tightly coupled layer. The present application is loosly coupled. I have chosen flex as a presentation layer,c# as a business layer and XML as the data source. The application is regarding student modules in a university. I have 2modules(workbooks) in my project .Each modules has its own workpage. Each page has objectives, Theory,modules guide, references.....etc in each page. I have created 7 web services using c#(Business layer) and XML(getMenu, getTheory,getObjectives,getPractices, getLinks, getAssessments,getModulesGuide). I didn't use any user interface controls.
getMenu is the menu item(Main modules-Database system and developing web application using asp.net). Each modules has 3 work pages. Each work page has objectives,theory...etc). I took objectives as the labels.
<mx:VBox 
label="Objectives"><mx:Label 
id="lblObj" text="Objectives" visible="false" styleName="linkList" fontFamily="Arial" fontSize="30" textAlign="left" /><mx:Repeater 
id="rp2" width="800"><mx:Text 
id="txtObj" text="{rp2.currentItem.objective_content}" width="800" enabled="true" fontFamily="Arial" textAlign="left" fontSize="14"/></mx:Repeater>
</mx:VBox>
<mx:VBox 
label="Theory"><mx:Label 
text="Theory" id="lblTheory" visible="false" styleName="linkList" fontFamily="Arial" fontSize="30" textAlign="left"/>
<mx:Repeater 
id="rp" width="950"><mx:VBox 
><mx:Label 
id="lblid" text="{rp.currentItem.body_frag_title}" fontWeight="bold" enabled="true" fontFamily="Arial" textAlign="left" fontSize="14"/><mx:Text 
text="{rp.currentItem.body_frag_text}" width="950" enabled="true" fontFamily="Arial" textAlign="left" fontSize="14"/></mx:VBox>
</mx:Repeater>
</mx:VBox>
I need little bit help from u. If i click on objectives it should displays only objectives information. If i click on the theory it should displays only objectives information.
Note: some pages have no objectives, some have no theory..etc
Thank you

Hi Anil,
Put your Objectives and Theory VBoxes in TabNavigtor as shownb below...
<mx:TabNavigator 
resizeToContent="true">
<mx:VBox label="Objectives">
<mx:Label id="lblObj" text="Objectives" visible="false" styleName="linkList" fontFamily="Arial" fontSize="30" textAlign="left" />
<mx:Repeater id="rp2" width="800">
<mx:Text id="txtObj" text="{rp2.currentItem.objective_content}" width="800" enabled="true" fontFamily="Arial" textAlign="left" fontSize="14"/>
</mx:Repeater>
</mx:VBox>
<mx:VBox label="Theory">
<mx:Label text="Theory" id="lblTheory" visible="false" styleName="linkList" fontFamily="Arial" fontSize="30" textAlign="left"/>  
<mx:Repeater id="rp" width="950">
<mx:VBox>
<mx:Label id="lblid" text="{rp.currentItem.body_frag_title}" fontWeight="bold" enabled="true" fontFamily="Arial" textAlign="left" fontSize="14"/>
 <mx:Text text="{rp.currentItem.body_frag_text}" width="950" enabled="true" fontFamily="Arial" textAlign="left" fontSize="14"/>
 </mx:VBox>
 </mx:Repeater>
 </mx:VBox>
 </mx:TabNavigator> 
Thanks,
Bhasker Chari 

Similar Messages

  • How to call elem. Search help on Button click event in WD appilcation

    Hello All,
    i have requirement to call elem. search help on button click event in WD application. currently i am calling FM  F4IF_START_VALUE_REQUEST but getting the short dump as below,
    The following error text was processed in the system X31 : Screen output without connection to user.
    The error occurred on the application server saps_X31_31 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSDH4
    Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4
    Form: F4PROZ_STEP_PRESEL of program SAPLSDSD
    Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD
    Form: F4PROZ_LOOP of program SAPLSDSD
    Form: F4PROZ of program SAPLSDSD
    Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI
    Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    is there any way to achieve the required behaviour.
    please let me know.
    Regards,
    Chandra

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • Need help in double click the column in ALV

    hello all ,
    I am new to Abap coding . I have got the following requirement .
    there are 2 columns in my alv grid output list . First  column shows both the sales orders and Quotation .
    2nd column shows the document type ..If the document type is ZQT then that is recognised as Quotation . For the remaining documnets types all are sales orders. Please see sample list ..
    Salesorder/quotation | Document type
                       | -
                  | -
                    | ZQT
                    | -
                        | -
    So if the users double clicks on Sales order it has to go to VA02 transaction .
    If the user double clicks on quotationin that same column  it has to go to VA22 transaction .
    Please tell me how to achieve thisfunctionality in the same column .
    Thanks

    As per your requirement i put one example so it will help to solve your issue
    DEFINE m_fieldcat.
      add 1 to ls_fieldcat-col_pos.
      ls_fieldcat-fieldname   = &1.
      ls_fieldcat-ref_tabname = &2.
      ls_fieldcat-cfieldname  = &3.
      ls_fieldcat-qfieldname  = &4.
      append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    TYPE-POOLS: slis.                      " ALV Global types
    TYPES:
      BEGIN OF ty_vbak,
        vkorg TYPE vbak-vkorg,             " Sales organization
        kunnr TYPE vbak-kunnr,             " Sold-to party
        vbeln TYPE vbak-vbeln,             " Sales document
        netwr TYPE vbak-netwr,             " Net Value of the Sales Order
        waerk TYPE vbak-waerk,             " Currency
      END OF ty_vbak,
      BEGIN OF ty_vbap,
        vbeln  TYPE vbap-vbeln,            " Sales document
        posnr  TYPE vbap-posnr,            " Sales document item
        matnr  TYPE vbap-matnr,            " Material number
        arktx  TYPE vbap-arktx,            " Short text for sales order item
        kwmeng TYPE vbap-kwmeng,           " Order quantity
        vrkme  TYPE vbap-vrkme,            " Quantity Unit
        netwr  TYPE vbap-netwr,            " Net value of the order item
        waerk  TYPE vbap-waerk,            " Currency
      END OF ty_vbap.
    DATA :
      gs_vbak TYPE ty_vbak,
    * Data displayed in the first list
      gt_vbak TYPE TABLE OF ty_vbak,
    * Data displayed in the second list
      gt_vbap TYPE TABLE OF ty_vbap.
    SELECT-OPTIONS :
      s_vkorg FOR gs_vbak-vkorg,           " Sales organization
      s_kunnr FOR gs_vbak-kunnr,           " Sold-to party
      s_vbeln FOR gs_vbak-vbeln.           " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.    "#EC NEEDED
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data_vbak.
      PERFORM f_display_data_vbak.

  • Need help in WMS Business Events

    I am looking for a business event "Pick Load" which is mentioned as a standard business event in WMS but I am unable to find that business event in oracle workflow business events screen. I need the corresponding business event.
    Can anyone help me on this please !!!

    Hi;
    I am not sure it could be help but please check
    No Device Request Is Created Using Wip Pick Release Business Event [ID 1373549.1]
    Regard
    Helios

  • Need Help with scope in event handlers in AS 2.0!

    I am trying to integrate an XML loading script into my FLA. I
    got the script from a book (I'm learning this) and it worked fine
    when in a timeline frame (loaded all perfectly well), but when I
    put it into an AS 2.0 class (which I'd been using with hardcoded
    data for testing) all fails miserably. I'm trying to get the loaded
    XML data processed with another class private function when the
    onLoad event comes from loading the XML, but this second
    function never gets called. All just fails silently. PLUS I'm
    trying to store the loaded data into two arrays which are class
    properties so that I can access the data later. They are not
    accessible. If this seems muddled it's only because I've been
    banging my head against this for 2 hours. I've read Moock, and then
    I went to Macromedia's online help -- and you will see in my code
    that I tried to set up an "owner" variable to clarify scope. It
    didn't.
    Basically: how does one handle scope of other class functions
    AND class properties from within an event handler in the class?
    As a very important bonus question: is there a way to set up
    eventListeners and callback functions
    between classes, or is this verboten?
    Please help if you can -- I know it's obvious to you, and
    soon perhaps to me --
    Thanks -- Robert
    (Code follows)

    Thanks -- indeed a crucial call might be missing. I was doing
    this until 3 yesterday morning.
    Would this be the correct sample code to use? :
    http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=Flash_MX_2004&file=00000846.html
    It seems to work (although someone cautions in the page
    comments that it doesn't).
    Part of my trouble in working with AS 2.0 is that I feel I
    shouldn't have to do such complicated things (Delegate classes,
    etc) in order to get simple things done (loading XML files). This
    is not a complaint per se -- rather I feel that I must be missing
    something, that it is my inexperience that is causing me to bend
    through so many hoops: programming "should" be elegant and simple.
    So, any links helpful. Thanks.

  • Need help on Wait for Event.

    Hello all.
    I faced an issue with wait for event step,Which goes like this.
    For a workflow one of the fork branches there is a wait for event step(wait for manual release) . On development server when ever that event is fired (manual release) , the wait for event is capturing and completing the workflow ( This is the correct process).(PO release procedure)
    On production system, this event is not been caught(after manual release is done) and and the workflow is not  complete and still in progress. (even po is released manually) Which should not happen.
    So what all the things i need to verify in the production to fix this. I cannot simulate any kind of event on production ryt. so please suggest.
    please suggest.
    Cheers
    PRASAD.

    Hi Prasad
    i doubt that in Production the event trace would be on. Check SWELS to see if you see the "OFF" button (this means the trace is on). If it is On, check SWEL to see if any event is there for rejection. You will have to ask example of the PO and search using the Key (PO number).
    Also, check the workflow instance which is supposed to complete when the rejection happens (which did not complete). Check the technical WF log. Look for the Business Object container element which should hold the runtime instance. Check if it has a value and the same is bound from the event to the workflow in the wait for event step's binding. (_EVT_OBJECT to Workflow Container element of same type). This WF container element should have an instance and should not be empty for the wait step to work.
    Regards,
    Modak

  • Need help with Post Process Event

    Hi all:
    I need to implement user login generation thru a post process event. I read lots of posts about this and followed the steps described. So this is what I did:
    - Created a java class that implements PostProcessHandler and implemented the execute method. I added in both execute methods (EventResult and BulkEventResult) a statement to log message to a tmp file.
    - Created the plugin.xml
    - create a zip file with class and plugin.xml.
    - Put zip file in plugins directory.
    - Registered the plugin.
    - Created the EventHandler.xml file to define the postprocess event on User Entity CREATE operation.
    - Imported the Event metadata.
    Everything went well. Until I ran a reconciliation, and nothing is being called.
    Am I missing any steps?? I read that people successfully implemented this. Is there something I should do for lib folder or classpath...
    I cannot figure this out..
    Thank you

    I think this is what I am missing.
    I created my EventHandlers.xml in a temp folder with a space name:
    The temp folder: /tmp
    and under tmp folder I have the following:
    /metadata/user/custom/CustomPostProcessEvent/EventHandlers.xml
    I am going to change the EventHandlers.xml location:
    keep /tmp directory but
    Remove the metadata tree
    and create /db/EventHandlers.xml
    I will let you know...
    Thanks again for your feedback. It is very appreciated..

  • Need help with basic user events in Queued state machine example

    I have written a little queued state machine example to try to teach myself about creating and using user events.  The objective of the machine is to periodically choose a number (I'm doing it now with a control instead of a random number generator for troubleshooting), and compare that number with the number I have set in a control.  When they match, I want to cause an event to fire so I can do something about having found a match.  The examples in the LV Help file references show the events within the event structure, but I want to reach out of a state and cause an event ....
    Can someone point me in the right direction here?
    Thanks
    Hummer1
    Solved!
    Go to Solution.
    Attachments:
    User Event Generator Example01 snip.png ‏102 KB

    Yep....That was it...I had tried to do that but got fouled up with the variant definition...so defined the user event using a boolian and did the same in the case structure where I wanted to create the event and it worked great...
    Thanks.
    Here is the final version...not bulletproof, but does have a queued state machine using a user event to cause an event to fire.
    Hope you find it useful.
    Hummer1
    Attachments:
    User Event Generator Example01.vi ‏45 KB
    Operating States Enum Example01.ctl ‏5 KB

  • NEED HELP: My computer clicks and clicks and then does other stuff

    I'm hoping someone can help me.
    I know this sounds like my HD is on it's last legs, but something doesn't seem right.
    I have an iMac Intel Core 2 Duo and after tipping the screen back to view the RAM slot, suddenly my computer has clicks.
    During start-up, it will click 6 times, stop, click again and then repeat this sequence until it reaches a grey screen with a file and question mark.
    Now, I've heard this from others, but it takes just one restart and the computer is fine.
    It started a week ago with just a couple clicks as it started up, but now it's every time.
    I have backed up, done disk utility checks, done a SMART test, upgraded to leopard then snow leopard and NOTHING appears to be wrong.
    I asked a local tech and he says that the tipping movement might have just set off my HD to kick it to the last days of it's life, but he NEVER asked me about the tests or offered an alternative solution (like, have you tried this test?...)
    It was just "Ok, that will be about $200 to get a new hard drive in"
    Does anyone have any thoughts or advice?
    Thank you

    Liz,
    Welcome to Apple Discussions.
    It's difficult to tell what is wrong with your computer but I'd suggest running the Apple Hardware Test, follow the link and use the instructions in the letter then report back what you found.
    Regards,
    Roger

  • Need help on Oracle Adverse Event Reporting System

    Hi,
    From where I can download "Oracle Adverse Event Reporting System". Please give me the link.
    I have no option, rather than postion in Database-General form.
    Thanks
    Naveen.

    See MOS Doc 405777.1 (Oracle Adverse Event Reporting System Installation Guide 4.6)
    HTH
    Srini

  • Need help with right click menu

    I have recently upgraded my VLC video player to a new version. Now when I right click on a file to select "open with" I get VLC twice... quite annoying. Can I edit the right click menu and get rid of one of them?
    Vignus

    For an entry-by-entry method, try this:
    http://www.macosxhints.com/article.php?story=20030730161311391
    For a more direct approach, try:
    http://lifehacker.com/308898/clean-up-finders-open-with-menu
    Message was edited by: musicwind95

  • Help with dispatching JTable event to underlying components in a cell.

    Hello..
    I have a JTable in which i show a panel with clickable labels.. I found that jTable by default doesnt dispatch or allow mouseevents to be caught by underlying elements..
    i need help with dispatching an event from jTable to a label on a panel in a jTable cell.. below is the code i have come up with after finding help with some websites. but i couldnt not get it right.. my dispatched event seems to go back to the jtable itself ..
    any help or suggestion is appreciated..
    Thanks
    'Harish.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.table.*;
    * @author  harish
    public class tableDemo extends javax.swing.JFrame {
        JTable jTable1;
        testpane dummyPane;
        /** Creates new form tableDemo */
        public tableDemo() {
            initComponents();
            //table settings
            String[] columnNames = {"Task", "Action"," "};
            Object[][] data = { };
            DefaultTableModel model = new DefaultTableModel(data, columnNames) {
              // This method returns the Class object of the first
              // cell in specified column in the table model.
            public Class getColumnClass(int mColIndex) {
                int rowIndex = 0;
                Object o = getValueAt(rowIndex, mColIndex);
                if (o == null)
                    return Object.class;
                } else
                    return o.getClass();
            jTable1 = new javax.swing.JTable(model);
            jTable1.addMouseListener(new MouseAdapter(){
              public void mouseClicked(MouseEvent e){
                  System.out.println("Clicked");
                  handleTableMouseEvents(e);
                 //invokeExternalApp("http://www.pixagogo.com");
              public void mouseEntered(MouseEvent e){
                  System.out.println("Entered");
                  //handleTableMouseEvents(e);
              public void mouseExited(MouseEvent e){
                  System.out.println("Exited");
                  //handleTableMouseEvents(e);
            jTable1.setRowHeight(100);
            jTable1.getTableHeader().setReorderingAllowed(false);
            jTable1.setBackground(new java.awt.Color(255, 255, 255));
            jTable1.setGridColor(new Color(250,250,250));
            jTable1.setShowGrid(true);
            jTable1.setShowVerticalLines(true);
            jTable1.setShowHorizontalLines(false);
            jTable1.setFont(new Font("Arial",0,11));
            jTable1.setMaximumSize(new java.awt.Dimension(32767, 32767));
            jTable1.setMinimumSize(new java.awt.Dimension(630, 255));
            jTable1.setPreferredSize(null);
            jTable1.setBackground(new Color(255,255,255));
            int vColIndex=0;
            TableColumn col = jTable1.getColumnModel().getColumn(vColIndex);
            int width = 100;
            col.setPreferredWidth(width);
            //add item to 2nd cell       
            Vector vec = new Vector();
            vec.addElement(null);
            dummyPane = new testpane();
            vec.addElement(dummyPane);
            ((DefaultTableModel)jTable1.getModel()).addRow(vec);
            jTable1.repaint();
            this.getContentPane().add(jTable1);
            jTable1.getColumn("Action").setCellRenderer(
              new MultiRenderer());
        protected void handleTableMouseEvents(MouseEvent e){
            TableColumnModel columnModel = jTable1.getColumnModel();
            int column = columnModel.getColumnIndexAtX(e.getX());
            int row    = e.getY() / jTable1.getRowHeight();
            testpane contentPane = (testpane)(jTable1.getModel().getValueAt(row, column));
            // get the mouse click point relative to the content pane
            Point containerPoint = SwingUtilities.convertPoint(jTable1, e.getPoint(),contentPane);
            if (column==1 && row==0)
            // so the user clicked on the cell that we are bothered about.         
            MouseEvent ev1 = (MouseEvent)SwingUtilities.convertMouseEvent(jTable1, e, contentPane);
            //once clicked on the cell.. we dispatch event to the object in that cell
         jTable1.dispatchEvent(ev1);
        private void initComponents() {
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-528)/2, (screenSize.height-423)/2, 528, 423);
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {
            System.exit(0);
         * @param args the command line arguments
        public static void main(String args[]) {
            new tableDemo().show();
        // Variables declaration - do not modify
        // End of variables declaration
        class testpane extends JPanel{
            public testpane(){
            GridBagConstraints gridBagConstraints;
            JPanel testpane = new JPanel(new GridBagLayout());
            testpane.setBackground(Color.CYAN);
            JLabel lblTest = new JLabel("test");
            lblTest.addMouseListener(new MouseAdapter(){
              public void mouseClicked(MouseEvent e){
                  System.out.println("panelClicked");
              public void mouseEntered(MouseEvent e){
                  System.out.println("panelEntered");
              public void mouseExited(MouseEvent e){
                  System.out.println("panelExited");
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 0;
            gridBagConstraints.gridy = 0;
            gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
            testpane.add(lblTest,gridBagConstraints);
            this.add(testpane);
    class MultiRenderer extends DefaultTableCellRenderer {
      JCheckBox checkBox = new JCheckBox();
      public Component getTableCellRendererComponent(
                         JTable table, Object value,
                         boolean isSelected, boolean hasFocus,
                         int row, int column) {
        if (value instanceof Boolean) {                    // Boolean
          checkBox.setSelected(((Boolean)value).booleanValue());
          checkBox.setHorizontalAlignment(JLabel.CENTER);
          return checkBox;
        String str = (value == null) ? "" : value.toString();
        return super.getTableCellRendererComponent(
             table,str,isSelected,hasFocus,row,column);
        return (testpane)value;
    class MultiEditor implements TableCellEditor {
      public MultiEditor() {
      public boolean isCellEditable(EventObject anEvent) {return false;}
      public boolean stopCellEditing() {return true;}
      public Object getCellEditorValue() {return null;} 
      public void cancelCellEditing() {}
      public boolean shouldSelectCell(EventObject anEvent) {return false;}
      public Component getTableCellEditorComponent(JTable table, Object value,
                  boolean isSelected, int row, int column) {
        if (value instanceof testpane) {                       // ComboString
          System.out.println("yes instance");
        return null;
      public void addCellEditorListener(javax.swing.event.CellEditorListener l) {
      public void removeCellEditorListener(javax.swing.event.CellEditorListener l) {
    }

    any help on this.. anybody. ?

  • How to disable MouseEvent.CLICK events on a MovieClip

    Hi all,
    I am new to Flash & ActionScript 3.0. I only have basic knowledge of AS 3.0 && Flash.
    My issue starts here:
                         Suppose, I created a MovieClip(with instance-name= "myClip") on the stage. If I need to process MouseEvent.CLICK event on this movieclip(myClip), then we use addEventListener(bla.... bla...); method.
                        Now, my requirement is, in certain case, I do not want to occur any MouseEvent.CLICK events on this same movieClip(i.e., myClip).Then, How to do this? (or) What is the method/class used in this context?
    PLEASE, CAN YOU REPLY ME WITH AN EXAMPLE....
    Please, can anyone help me in this context...
    Atlast, My requirement is: How to remove/disable Mouse_CLICK events when occur on a MovieCLip.
    It's urgent....
    Waiting for ur reply....
    Thanks in advance...
    Srihari.Ch

    you can remove the event listener with
    removeEventListener(bla.... bla...);
    but depending on what it is that you actually want to do (whatever determines your 'certain case') you could also set a boolean flag for example and just do something different in your listener function based on that value

  • Need Label/Title for Click Box Button for Screen Reader

    Version: Captivate 3
    1) We created an online course for a government client. The next screen navigation (next/back) we used click boxes. However, when read by a screen reader it just says "click box 1", "click box 2", etc. We  need it to say "back", :"next" etc.
    CAN THIS BE DONE?
    2) We did try a workaround with buttons by making the text a tiny font size and the same color as the background to fool the program. However, the buttons become inactive when the movie time is up. We need to buttons to stay active because if the user walks away to the restroom and comes back we don't want them to have to restart the program.
    Is there any way to keep buttons active eventhough the movie is complete?

    Hello Chaitak,
    It looks like the problem is not in the Click event. The Ribbon UI is a static thing from its birth. You need to use callbacks, not to set values in the Load event like you did for any UI controls in .Net applications.
    There is no need to handle the Click event of the toggleButton control for changing the label property. Instead, you need to use the callback. For example, to change the label you need to declare the getLabel attribute. And when you need to update/refresh
    values you can call the
    Invalidate method of the IRibbonUI interface. It invalidates the cached values for all of the controls of the Ribbon user interface, your callbacks are invoked to get new values.
    You can read more about the Ribbon UI (Fluent UI) in the following series of articles in MSDN:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • Radio button's click event to script both ".presence" and ".mandatory" -- Need help !

    Hi all,
    I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
    In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
    Button A: make subform A visible and subform B invisible;
    Button B: make subform A invisible and subform B visible.
    Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
    Button A: will also turn some fields' value type in subform A to be "User
    Entered-Required", whereas some of that in subform B to be "-
    optional";
    Button B: will turn the subform B's fields to "-Required" and subform A's
    fields back to "-optional"
    However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
    I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
    FormA.presence = "invisible";
    FormB.presence = "visible";
    if (B1.mandatory = "disabled")
    B1.mandatory = "error";
    if (B2.mandatory = "disabled")
    B2.mandatory = "error";
    if (B3.mandatory = "disabled")
    B3.mandatory = "error";
    if (A1.mandatory = "error")
    A1.mandatory = "disabled";
    if (A2.mandatory = "error")
    A2.mandatory = "disabled";
    if (A3.mandatory = "error")
    A3.mandatory = "disabled";
    B1, B2 and B3 represent the Chinese fields' binding name in FormB
    A1, A2 and A3 represent the Chinese fields' binding name in FormA
    (The script in radio button A is reversed in this way.)
    Have I done something wrong in the above (click event) javascript?
    Please help.
    Thanks in advance.
    Alex

    Hi all,
    I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
    In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
    Button A: make subform A visible and subform B invisible;
    Button B: make subform A invisible and subform B visible.
    Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
    Button A: will also turn some fields' value type in subform A to be "User
    Entered-Required", whereas some of that in subform B to be "-
    optional";
    Button B: will turn the subform B's fields to "-Required" and subform A's
    fields back to "-optional"
    However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
    I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
    FormA.presence = "invisible";
    FormB.presence = "visible";
    if (B1.mandatory = "disabled")
    B1.mandatory = "error";
    if (B2.mandatory = "disabled")
    B2.mandatory = "error";
    if (B3.mandatory = "disabled")
    B3.mandatory = "error";
    if (A1.mandatory = "error")
    A1.mandatory = "disabled";
    if (A2.mandatory = "error")
    A2.mandatory = "disabled";
    if (A3.mandatory = "error")
    A3.mandatory = "disabled";
    B1, B2 and B3 represent the Chinese fields' binding name in FormB
    A1, A2 and A3 represent the Chinese fields' binding name in FormA
    (The script in radio button A is reversed in this way.)
    Have I done something wrong in the above (click event) javascript?
    Please help.
    Thanks in advance.
    Alex

Maybe you are looking for