ADF UIX: How to use MessageCheckbox to trigger a component to be rendered?

I have two UIX component:
messageCheckBox model="${bindings.Servicelocal}"
and messageStyledText id="mst_TextChange".
I want messageStyledText to be showed if messageCheckBox was checked.
I want to know how to set the “rendered” property of the MessageStyleText.
The following is my uix xml code:
<rowLayout>
<contents>
<cellFormat>
<contents>
<messageStyledText id="mst_TextChange" text="${bindings.Servicelocal}" rendered="${bindings.Servicelocal}"/>
</contents>
</cellFormat>
<cellFormat>
<contents>
<messageCheckBox model="${bindings.Servicelocal}" >
<end>
<formValue model="${ctrl:createCheckBoxState(bindings.Servicelocal)}"/>
</end>
<primaryClientAction>
<firePartialAction event="ShowHide_Text" unvalidated="true" targets="mst_TextChange"/>
</primaryClientAction>
</messageCheckBox>
</contents>
</cellFormat>
</contents>
</rowLayout>

I think you're on the right track here.
Assuming that the values for Servicelocal are 'Y' and null, what you could do is use EL to define the rendered component as follows:
rendered="${!empty bindings.Servicelocal.inputValue}"
or alternatively:
rendered="${empty bindings.Servicelocal.inputValue ? false : true}"
I'm writing this from home so can't check the above but you get the idea.
Note the use of ".inputValue" to retrieve the actual value of Servicelocal.
I note your use of the &lt;firePartialAction&gt; tag in the &lt;messageCheckBox&gt;. Please note I recently found a bug (I've raised this with Oracle Support) where the &lt;firePartialAction&gt; causes the running page to ignore any user input for some seconds (5 sec?) when fired from a &lt;messageCheckBox&gt;. Your mileage may vary.
Hope this helps.
CM.

Similar Messages

  • ADF-UIX- How to populate multiple input fields from an lov?

    Like in Forms Developer where using an LOV we can populate multiple tex input items on selection of a value from the LOV, is it possible for us to do the same in ADF UIX.
    Iam usiing JDeveloper 10.1.2

    Have a look at this previous post:
    Re: Can return messageLovinput more than one value?

  • How to use 2 Time trigger UI elements

    Hi Experts,
      My user doesn't want to see the time out error in the webdynpro application after leaving(idle mode) the browser for hours. And one more thing is he wants a popup for every 15mnts to show a message on the screen.
    So, I have used 2 Time Trigger UI elements to achieve this functionality,
          1st one(Time Trigger UI Element) is used to show the pop up message and It is working fine to show the message in a Pop Up .
          2nd one is used to handle the Time Out Error for hours and this is not working as expected, if user leaves the browser for hours .
    I hope you understand my requirement and issue.
    Could you please suggest me how to achieve this functionality.
    1000 Thanks in advance.
    Regards,
    Giri

    Hi,
    If I set the 3 hours to 2nd Time Trigger UI element and tested after 2 hours and browser is still throwing the time out error message.
    After 2hrs is the time out error throwing by the Timed trigger or the standard session time out? I believe after 2 hrs the standard session time out is throwing! You need to give the delay time less than your session time out.
    You can get the session timeout using wdr_task=>server->session_timeout ( in mins ) And you can get the application server time out using
    data: name type pfeparname,
            value type pfepvalue.
      name = 'rdisp/plugin_auto_logout'.   " parameter
      call 'C_SAPGPARAM' id 'NAME'  field name
                                        id 'VALUE' field value.   " value contains time out 
    Regards,
    Kiran

  • ADF/UIX - How NOT to loose currentRow? Iterator issue?

    Hi All,
    I'm having a bit of a problem in keeping maintaining the state of a couple of views across pages; I'm hoping I'm just doing this wrong and someone can point me in the right direction.
    Environment: ADF/UIX
    1) From the first page the views (used in dropdowns) are manipulated and the current row set appropriately (I traced the app module and rows are indeed pointing where they should)
    2) In an event handler <go name="Page2"/> is executed
    3) Page2 references the views from the datacontrol used in Page1 (note that identical bindings are used) but the current row is lost. Tracing through the app module confirms that the current row is set to the first row.
    Q1) Is there a way to keep iterators from being reset?
    if not...
    Q2) If not, is there a method on the AppModule on Views that can be overloaded to set the current row BEFORE the page displays?
    Thanks in advance!
    /SFL

    Thanks for the prompt reply Gabrielle!
    I did a bit more testing and in fact it's one view which was causing the problem. A new row is created (and commited) for this view through the AppModule like this:
    ViewXRowImpl row = vo.createRow();
    row.setX( "...");
    row.setY( "...");
    vo.insertRow(row);
    vo.setCurrentRow(row);
    try{
       this.getTransaction().commit();
      }catch(Exception e)
        e.printStackTrace();
      }I hadn't realized that the iterator would get reset after a commit. Fetching the key before the commit and doing a findbykey afterwards solved the problem.
    I think I'll implement a base view class that uses beforeCommit and afterCommit to set the iterator back to the desired location. I'm a bit surprised that it isn't the default behaviour though...
    Thanks again for the help!

  • ADF UIX: How to define a binding's subtype?

    In an ADF-UIX project, we have deleted a binding which had been automatically created by a drag and drop operation that generated a multirecord master-detail form.
    When we try to recreate the binding using the binding editor (in application navigator, mouse right click and select the ...UIModel.xml file -> Create Binding), we choose to create a binding of type "range" (since the icon is of the same type than the icons for bindings generated automatically for a multirecord detail), however we get a binding of subtype "DCTable" instead of a "DCHGrid". There doesn't seem to be any way to create a "DCHGrid" binding and the UIModel.xml file is not editable.
    The problem is that the DCTable doesn't render properly when the UIX form is run.
    Any suggestions?

    The reason for deleting it was because the Data Binding is not always correclty refreshed after a column is added to the underlying VO. Initially we thought it would be necessary to recreate the binding, but using the drag & drop method would have been costly as the form was complex and a lot had been modified after the initial drag & drop operation.
    The case where the refresh on the binding is not made is when the binding is displaying all the attributes available within the iterator. Surprisingly, if the binding is only using a subset of the attributes of the iterator, then a new attribute on the underlying VO is immediately displayed.

  • With DAQmx, how to use AO start trigger for AO/AI synchronization with finite AI sampling

    I am a new user to DAQmx and I am trying to synchronize AI (finite samples) with AO in LabVIEW 7.1 using a PCI 6229 card. I want to generate a finite waveform (AO) and, subsequently, collect a finite number of voltage samples (AI). I would like to repeat the AO-AI cycles in a while loop.
    Alternatively, I could use an infinite AO generation and collect finite number of voltage samples on AI but always exactly at the same spot of the AO buffer.
    Using traditional DAQ and a 6024E card, I used a counter triggered by AO start trigger signal (example attached). I have problems with translating this example into DAQmx.
    Please help!
    Ruber
    Attachments:
    AIAODelay_traditional_Eseries.vi ‏155 KB

    Lesley,
    Thank you very much for your suggestion. Late last night I actually tried a to use AI start trigger instead of AO start trigger and it worked (since I tried the AI & AO to start simultaneously, it does not matter what triggers what), even in the loop. The devil is in details, as I had to carefully wire the number of data points and what to place inside/outside the loop.
    The problem with shared clock is that I need to sample the AI and AO at different rates but using AO and AI clock separately did not seem to affect the performance.
    I still want to try to use the AO start trigger (as you suggest) because I would like to delay the AI by a few ms from the AO. Is there a simple way to to that?
    I suppose, switching from traditional DAQ to DAQmx requires your brain to be rewired - after playing with it for a couple of days and nights I developed a "feeling" for it. One of the differences was that, in order to use this example in the loop, one has to use 'stop task' inside and 'clear task' outside the loop.
    Thanks again!
    Radek Uberna

  • How to use UI elements in Abstract component  of PORTAL

    HI,
    I want to know how to use UI elements in Abstract components of PORTAL.Since i using only dialog box,i want to use other UI  elements  and images ,so that the application will be easy to do.

    Hi,
    If I have understood correctly your doubt, you want to know how to code jsp's in AbstractPortal Comp.
    Following is sample code of jsp
    <table width="100%">
         <%@ include file="NJ_Header.jsp" %>
         </table>
    <table width="100%" border="0">
    <tr>
    <td align="left">
         <hbj:textView     id="txtPageNumber" design="EMPHASIZED"
              text=" Page Number : 2">
                   </hbj:textView>
              </td>     
         <td align="right">
                   <font color="#FF0000">*
         <hbj:textView
                   id="txtLegend" design="STANDARD" encode="false"
                        text="Indicates mandatory fields">
                   </hbj:textView>
                   </font>
              </td>
         </tr>     
    </table>     
    <!-- Debug / End User Message -->
    <table width="90%">
         <tr>
              <td align="center">
                   <font color="#008000"><i><%=SAPMASTERDATABEAN.getUserMessage()%></i></font>
              </td>
         </tr>
    </table>

  • UIX- How to use sequence in JDev 10.1.2

    Hi,
    I have a UIX Page displaying Employees view in a readonly Table format.
    Here I hide the employeeId field by setting the rendered property to false.
    I create another UIX Page for create/modify employee by dragging and dropping EmployeesView in InputForm Mode.
    Here I don't want the user to enter the EmployeeId Field, instead I have a sequence made in the backend which will input value when the before insert row trigger fires.
    When I try to set the rendered property for the item in the input form to false I get an error saying the user has to enter value.
    How to overcome this? Please help!

    If you use ADF BC, you can override the method create(AttributeList) in the Entity Object implementation class (EmployeesImpl.java).
    Use: Menu --> Tools --> Override Methods --> create
    In the overridden create method you can assign the next value from a DB sequence (e.g. EMP_SEQ) to the ID attribute:
    protected void create(AttributeList nameValuePair) {
    // Super
    super.create(nameValuePair);
    // Id
    SequenceImpl s = new SequenceImpl("EMP_SEQ", getDBTransaction());
    setEmployeeId(s.getSequenceNumber());
    }

  • How to use double click trigger in ListBoxItem template?

    Hi all,
    I want to double click listBoxItem in listbox, and set this item as editable status. It says make textbox as visible, please see the below code. When press Enter key or lost focus, then make textbox as invisible and textblock as visible. It's better to use
    trigger to switch the status, but I do not know how to do it, thanks!
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="ListBoxItem">
    <Grid>
    <TextBlock Text="{Binding FirstName}" />
    <TextBox Text="{Binding FirstName}"/>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>

    Did you consider using a DataGrid? This control has editing capabilities built-in:
    https://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid(v=vs.110).aspx
    Otherwise you could add a boolean property to the class with the FirstName property, toggle this one in an event handler for the MouseDoubleClick event of the ListBoxItem and then use data triggers. Here is an example for you that should give you the
    idea:
    <ListBox x:Name="lb1">
    <ListBox.ItemContainerStyle>
    <Style TargetType="ListBoxItem">
    <EventSetter Event="MouseDoubleClick" Handler="OnMouseDoubleClick"/>
    </Style>
    </ListBox.ItemContainerStyle>
    <ListBox.ItemTemplate>
    <DataTemplate>
    <Grid>
    <TextBlock x:Name="tb" Text="{Binding FirstName}" Visibility="Visible"/>
    <TextBox x:Name="tx" Text="{Binding FirstName}" Visibility="Collapsed"
    LostKeyboardFocus="tx_LostFocus" PreviewKeyDown="tx_PreviewKeyDown"/>
    </Grid>
    <DataTemplate.Triggers>
    <DataTrigger Binding="{Binding IsInEditMode}" Value="True">
    <Setter TargetName="tb" Property="Visibility" Value="Collapsed"/>
    <Setter TargetName="tx" Property="Visibility" Value="Visible"/>
    </DataTrigger>
    </DataTemplate.Triggers>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    public MainWindow()
    InitializeComponent();
    List<YourItem> myDataType = new List<YourItem>()
    new YourItem{ FirstName = "Name..."}
    lb1.ItemsSource = myDataType;
    private void OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
    ListBoxItem lbi = sender as ListBoxItem;
    YourItem item = lbi.DataContext as YourItem;
    if (item != null)
    item.IsInEditMode = !item.IsInEditMode;
    private void tx_LostFocus(object sender, RoutedEventArgs e)
    TextBox txt = sender as TextBox;
    YourItem item = txt.DataContext as YourItem;
    if (item != null)
    item.IsInEditMode = false;
    private void tx_PreviewKeyDown(object sender, KeyEventArgs e)
    if (e.Key == Key.Return)
    e.Handled = true;
    TextBox txt = sender as TextBox;
    YourItem item = txt.DataContext as YourItem;
    if (item != null)
    item.IsInEditMode = false;
    Make sure that your model class implements the INotifyPropertyChanged interface correctly:
    public class YourItem : INotifyPropertyChanged
    public string FirstName { get; set; }
    private bool _isInEditMode;
    public bool IsInEditMode
    get { return _isInEditMode; }
    set { _isInEditMode = value; NotifyPropertyChanged("IsInEditMode"); }
    public event PropertyChangedEventHandler PropertyChanged;
    private void NotifyPropertyChanged(string propertyName)
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't post several questions in the same thread.

  • How to use an external trigger on an electrometer (KEITHLEY 6517A)

    I'm really new using LABVIEW, so please, be patient with me...
    I'm using a KEITHLEY electrometer to acquire data from a dosimeter. We are going to do some measurements on a pulsed source and before the pulse there's a trigger signal. I don't know the size of the trigger, I'll just know that when I start my measurements (in another lab) So I would like to implement a case were the user can decide the value of the external trigger, so this information goes to the eqipment before starting the measurement.
    What I would like to know is... Someone can give me a hint on how to do that? I'm using GPIB and LABVIEW 7.1.  and I already took all the 6517A libraries for labview.
    Thank you all

    The external trigger on a 6517 is a TTL signal. Any pulse higher than 3.4V will trigger it. You cannot program the threshold level.
    You can set the delay programmatically with TRIG: DEL <n> command.
    ref: page 2-81 and following of User Manual
    Message Edited by normandinf on 10-21-2008 03:55 PM

  • STRUTS and UIX: How to use getCustomMethod in event handler

    I am having app module method exposed to a client as my custom method that does something. Then I have a data page (UIX) with a submit button that triggers event handler:
    public void onMyEvent(DataActionContext ctx) {
        HttpServletRequest request = ctx.getHttpServletRequest();
        HttpSession session = request.getSession();
        JUCtrlActionBinding method = ctx.getCustomMethod();
        if (method == null) System.out.println("method is null!!!!!!!!!!!");for some reason my method handle is null WHY???
    this seems to work when I call my method from findForward() though.

    If you use ADF BC, you can override the method create(AttributeList) in the Entity Object implementation class (EmployeesImpl.java).
    Use: Menu --> Tools --> Override Methods --> create
    In the overridden create method you can assign the next value from a DB sequence (e.g. EMP_SEQ) to the ID attribute:
    protected void create(AttributeList nameValuePair) {
    // Super
    super.create(nameValuePair);
    // Id
    SequenceImpl s = new SequenceImpl("EMP_SEQ", getDBTransaction());
    setEmployeeId(s.getSequenceNumber());
    }

  • How to use API to trigger JAM group invitation in ABAP coding?

    Hi,
    We want to trigger a JAM group invitation URL to be sent out in ABAP coding to enable a auto. process at backend. Currently I only know the manual way: clicking invite button in jam group and input user name to find target user and then click send button to send out invitation email.
    But question is how to do in ABAP coding to call any API to realize the same action?
    Many thanks and Best regards,
    Long

    As an ABAP developer you can make use of the SAIL Library to integrate with SAP Jam. With SAIL integrating with SAP Jam is as easy as calling a ABAP OO method. SAIL takes care of the communication with SAP Jam and handles user authentication for you.
    The lower part of http://scn.sap.com/docs/DOC-55050 contains information for ABAP developers like the SAIL developer guide and the SAIL config guide.

  • How to use an analog trigger to determine single sample acquisition rate

    Hi all,
    I have the NI PXIe 6124 on a NI PXIe 1062 Q controller.
    I would like to use an analog signal to determine a single sample acquisition rate.
    For example: if I enter a sine wave with an unknown frequency, I would like to acquire a single (1) sample across my 4 channels each time the sine wave value is zero.
    Is this possible with my devices? And if so how do I do it?
    Thanks,
    Oren.

    Hello Orensag
    The different types of triggers supported can be found in the PXIe - 6124 Manual on pages 135-138.  You should be able to set a very small window trigger with around 0 volts so that you trigger on both the rising and the falling edges of the sinewave as it crosses 0 volts.
    Do you know the frequency of the input sinewave?  This information would be very beneficial to know to set the correct rate for the DAQmx task.
    What you really are looking for is change detection, which is an option in DAQmx Timing VI, but is only supported by certain cards.  Again your sine wave would need to meet the same sample clock timing requirements in the 6124 Specifications.
    Anthony F.
    Product Marketing Engineer
    National Instruments

  • How to use list_item to trigger LOV

    This is for an assignment building a hotel reservation system
    Basically I have a list_item, with a variety of elements. I want to be able to select the list_item, choose one of the elements and have it launch an LOV. The user chooses from the list_item (r_type) a value such as "Single with Double Bed". As soon as the user selects this I wanted an LOV to pop up with the available room numbers of that type.
    I am using a trigger of WHEN-LIST-CHANGED:
    GO_ITEM('CUSTOMER_BLOCK.R_TYPE_LIST');
    LIST_VALUES;
    When I try this, and run the form, and try changing the drop down list it gives me FRM-41026: Field does not understand operation.
    I've searched google all I can and can't seem to find instructions on linking a list_item to a LOV in this way.
    Help appreciated, thanks.

    Presumably you have an item for the room numbers ? You ought to attach the LOV to that item and the W-L-C should go_item to the room number before launching the LOV. The
    value of the list item can be referenced in the LOV where clause.

  • How to use PXI Star Trigger for PXIe-5663 in PXIe-1075 chassis

    HI all,
    I have this sytem configuration:
    PXIe-8135 controller. Windows 7 64-bit, RFSA 2.7.5. NI-SYNC 3.4.1
    PXIe-1075 chassis
    PXIe-5663 (2x)
    PXIe-6672 Timing & Sync Card (slot #10)
    I want to trigger the recording of my Digitizer with an external trigger.
    The External Trigger is connected to PFI0 of the PXIe-6672 Timing card.
    Then, the PXIE-6672 card routes the trigger to the backplane of the PXIe-1072 (Destination "NISYNC_VAL_PXITRIG0")
    The PXIe-5663 are triggered with “NIRFSA_VAL_PXI_TRIG0_STR” as the source.
    The trigger fires my PXIe-5663 correctly, but the timing is not tight (> 5ns).
    I would like to use the PXI Star trigger instead, I think that I should be able to acheive much better synchronization with this.
    But NI-RFSA won't let me do this:
    When I try to call
    "niRFSA_ConfigureDigitalEdgeStartTrigger(rfsa_sess​ion, NIRFSA_VAL_PXI_STAR_STR , NIRFSA_VAL_RISING_EDGE)", I get the error:
    "Specified Route Cannot Be Satisfied, Because the Hardware Does Not Support It"
    I don't understand why the PXIe-5663E would not be able to use that Route.
    Any idea?
    Regards,
    Serge
    Serge Malo, ing.
    Concepteur logiciel
    Software Developer
    T (514) 842-7577 x648 | [email protected]

    That explanation isn't quite right. Usually, even PXIe modules have a connection to PXI_Star. The PXIe standard added the PXIe_DStar trigger buses, and it also preserved the PXI_Star bus from the PXI standard.
    However, there is an additional twist in this situation. I'm assuming that your PXIe-5663 includes a PXIe-5622 as the digitizer. It turns out that a synchronization technique called NI-TClk has eliminated the need for our more recent digitizers to rely on triggering from PXI_Star. I was able to find some documentation that includes this information, here and here. Given that, I think you have two options that should result in better synchronization.
    The first option is to use TClk; I found an example program that demonstrates using TClk to acheive phase coherent signal acquisition across two 5663s. The second option is to use cables of matched length to connect two PFI front panel terminals of the timing board (6672) to the PFI1 front panel terminals of the digitizers (5622). The timing board would accept the external trigger on PFI0 and then issue triggers on PFI1 and PFI2 with around 500 ps of skew (manual, page A-4) . The digitizers would use NIRFSA_VAL_PFI1_STR as the trigger. I hope one of these solutions will meet the demands of your particular application.
    I will also follow up with the owners of the RFSA product documentation to see if we can include a note about why PXI_Star is not supported in some cases.
    James Blair
    NI R&D

Maybe you are looking for

  • Error messages when calling RSDRI_INFOPROV_READ for more than one time

    Hello all, I need to write a cube, however, before I do this I need to check whether there are already data in the target cube for a certain accounting period. This I do by reading the cube via FM RSDRI_INFOPROV_READ. The following coding is called f

  • I need to locate my ipod

    I would like to find location of my iPod touch

  • Firefox won't store my usernames and passwords

    '''bold text'''hi there, firefox won't remember my usernames and passwords... need help.

  • Table for Special Stock Types

    Hi All, I am creating a report to display the stock information of a material. In that i need to include all the special stocks also. Can anyone please tell me the table containing the data for special stock type E,K,M,O,P,Q,V,W,Y

  • Error in build firefox on ABS

    Hello. I'm trying to compile firefox 36.0.1, but I can not finish the build. Always in the (I believe) the packaging, it happens here: Traceback (most recent call last): File "/home/junior/firefox/src/mozilla-release/toolkit/mozapps/installer/package