4.2.1 Bug: Current values of child cascading LOVs are LOST.

Hello, ApEx Team!
This bug affected 4.1.1 and 4.2.1 but with different behavior. It seems that someone was trying to fix it.
According to docs "whats new in 4.1" a value of refreshed child cascading lov is derived from default value settings of select list.
Please follow these steps to see the bug.l builder-work done for you here http://apex.oracle.com/pls/apex/f?p=14110:1
1.Create primary select list P1_SEL1.
  Display null value: Yes
  LOV definition:
    select 'aaa' name,'a' id
      from dual
     union all
    select 'bbb' name,'b' id
      from dual
     union all
    select 'ccc' name,'c' id
      from dual2.Create child select list P1_SEL2.
  Cascading LOV Parent Item: P1_SEL1
  Page Items to Submit: P1_SEL2 (I strongly believe that this item should be submitted automatically along with Parent Item)
  Display Null Value: Yes
  LOV definition:
    select 'aaa' name,'a' id
      from dual
     union all
    select 'bbb' name,'b' id
      from dual
     where :P1_SEL1 in ('b','c')
     union all
    select 'ccc' name,'c' id
      from dual
     where :P1_SEL1 in ('c')
  Default: return :P1_SEL2;
  Default Value Type: PL/SQL Function Body3.Run app. and manually change P1_SEL1 and P1_SEL2 to 'bbb'.
4.Manually change P1_SEL1 to 'ccc'.
h2.
In apex 4.1.1..
you see that P1_SEL2 is resetted to NULL automatically. The value of P1_SEL2 is LOST. Although I tell apex to submit P1_SEl2 value to set its session state, but the session state still remains NULL.
The session state of P1_SEL2 is always NULL and I have no idea how to set it as it is set in a browser at the moment of changing parent LOV P1_SEL1.
h2.
Now apex 4.2.1.
It seems this bug is fixed. Indeed it is NOT fixed.
To see this bug in 4.2.1 just...
5.Create a third child select list P1_SEL3 which depends on P1_SEL2.
  Cascading LOV Parent Item: P1_SEL2
  Page Items to Submit: P1_SEL3 (Again, I hope you will always submit current item automatically as you do for the parent item)
  Display Null Value: Yes
  LOV definition:
    select 'aaa' name,'a' id
      from dual
     union all
    select 'bbb' name,'b' id
      from dual
     where :P1_SEL2 in ('b','c')
     union all
    select 'ccc' name,'c' id
      from dual
     where :P1_SEL2 in ('c')
    Default: return :P1_SEL3;
    Default Value Type: PL/SQL Function Body6.Run app. again. Manually set P1_SEL1, P1_SEL2 and P1_SEL3 to 'bbb'.
7.Change P1_SEL1 to 'ccc' and see the bug:
1) P1_SEL2 is reset to NULL for just a short time and than restored to 'bbb'.
2) P2_SEL3 is reset to NULL. So the session state was NULL for this item at the moment of calculating default value. As a result the value of child cascading lov is LOST.
So this bug is still present in 4.2.1.
Can I hope to get workaround for this problem in 4.1 and 4.2?
Thank you,
Vladimir
Edited by: vgoncharov on 17.12.2012 19:37
Edited by: vgoncharov on 17.12.2012 22:45

Good to hear this is already being worked on.
When we tried to work around the "Automatic detection" bug - changing the "Application Language Derived From" to "Application Preference" or "Session" - we hit issue that some page processes were not firing in translated application.
See Page processes not firing in Translated applications
Jan

Similar Messages

  • Cascaded LOV loose value when pooling disabled

    Hi All,
    I am using jdev 11.1.1.5
    my scenario is i have search VO with transient attributes.Most of attribute are LOV using accessor.
    Few of LOV are dependent on each other. When i am running by enabling pooling true.it is working fine.
    But when pooling disabled, cascaded LOV are not persisting value in the VO. It is happening only for dependent LOVs . I am not sure  why is it so.?
    I am creating a new row of Search VO usng Create Method of VO operation.Should i try anything else?
    Is anyone faces this issue earlier?  any suggestion to handle this. All attribute are passivated and VO have key attribute.
    Please suggest?

    Hi Frank,
    Well all LOV are transient attribute.Problem is this - Everything working with AMPooling enbaled.But when AMPool disabled then only attribute whose value are depend on other LOV are not persist or loose.
    Yes they are marked passivate. and i also override afterRollback and beforeRollback in all ViewObjectImpl.java with commenting super call.
    Seems , variable are setting by bind variable are not passivated the value. I am not sure, is it some strange behavior or i am doing anything wrong.
    What you suggest  to investigate further more on this?
    Regards
    Vinay

  • Apex 4 Cascading LOV's how to set a child LOV back to null return value

    Hi,
    My problem is I am using the new Dynamic Actions to implement Cascading LOV functionality in Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.
    What I am finding is that when you change the parent LOV value then the child LOV (which has a null return value) is not defaulting to the null return value (in my case no selection should return -1) if its list is filtered to a different set of values which doesnt have a valid selection. The child LOV is left without a selection when I need it to default back to the null return value (-1, representing all values).
    Also I was hoping to do this before the page is submitted so the filtering down the hierarchy of LOVs will work where the child is null (-1, meaning all values) and in turn its child LOV(s) will filter also from the null child value.
    Any help would be much appreciated.
    Thanks

    Hi 804641,
    I'm not sure if I get your problem and I tried to reproduce it.
    http://apex.oracle.com/pls/apex/f?p=2672:6 is my example with a cascading LOV where I have also defined a dynamic action which fires when P6_EMPNO changes and it shows the current selection.
    Maybe it helps if you setup an example on apex.oracle.com and provide the workspace/user/pwd so that I can have a look. I'm also not sure about your sentence "using the new Dynamic Actions to implement Cascading LOV functionality", because dynamic actions are not needed for cascading LOVs. It's a feature of the item types themselves where you just have to set the "Cascading LOV Parent Item(s)" attribute.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Cascading LOVs (v4) and retaining the child value

    I've implemented the default delivered implementation in version 4 (4.0.2.00.07 to be exact) of cascading LOVs. Working fine except for one thing...after refresh of a child LOV, the previously selected value is wiped out even when it's still a valid value in the child LOV. If it's an invalid value, I can understand that it would be wiped out, but if it's still valid, I'd like it to be retained.
    Example...let's say I have these two select-lists (parent and child).
    P100_PARENT
    P100_CHILD
    P100 Child's SQL references P100_PARENT:
    where b.child = NVL(a.parent,b.child)
    Optimize refresh is also set to 'No' because I need the child to refresh to all children selections when parent is null.
    In short, the parent is optional. If Parent is null, show all child options regardless of Parent. If Parent is defined, show only the child options for the parent.
    So when parent is null, I get all child options (OK). I pick one.
    If I go to parent and change it to a specific value that IS the parent of the child I chose, my expectation is the child select list should refresh (it does) but if my chosen value is still in the list, it should scroll to it and select it. Instead, it wipes it out.
    To put some values into the example...
    Let's say parent values are:
    A
    B
    C
    null
    Let's say child values are numbers such that valid values are:
    1 through 10 when parent is A
    11 through 20 when parent is B
    20 through 30 when parent is C
    1 through 30 (any child value) when parent is null.
    So I have a null parent LOV value and the child shows me 1 through 30 (OK). I pick 15.
    I change the parent to 'B'. Child list refreshes (OK). But while 15 is still a valid value in the list, it is not selected again (my value is wiped out). I still want it to have '15' selected.
    Any workaround? Is this a bug? Enhancement opportunity?

    Hi Matt,
    have you had a look at Skill Builders "Save Value on Cascade" dynamic action plug-in? See http://skillbuilders.com/oracle-apex/Application-Express-APEX-Consulting-Training.cfm?tab=free-plugin-downloads
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Triggerring PXI-4110 to measure 1 current value while HSDIO PXI-6552 generating waveform

    Hi,
    Some question about PXI-4110 to measure current while PXI-6552 is generating the waveform. 
    1. Let say, I need to measure 3 points of current values, i.e. while PXI-6552 is generating sample-1000, 2000 and 3500. On the edge of sample 1000,2000 and 3500, the PXI-6552 will send a pulse via PFI line or via PXI backplane trigger line. My question is, is it possible to trigger PXI-4110 (hardware trigger or software trigger) to measure current values at these points ?
    2. Let say I need to measure the current on 0ms (start of waveform generation by PXI-6552) , 1ms, 2ms, 3ms, 4ms... and so on for 1000 points of measurement, code diagram as shown at the figure below. It is possible for the VI "niDCPower Measure Multiple" to measure exactly at 1ms, 2ms, 3ms .. ? How much time will have to spend to complete acquire 1 point of measurement by "niDCPower Measure Multiple" ?
    Thanks for viewing this post. Your advice on hardware used or software method is much appreciated. Thanks in advance.  
    Message Edited by engwei on 02-02-2009 04:24 AM
    Attachments:
    [email protected] ‏46 KB

    Hi engwei,
    1. Unfortunately, the 4110 does not support hardware triggering. Therefore you cannot implement direct triggering through the backplane or anything like that. However, there are a couple of possible workarounds you can try:
    a) Use software triggering: Say your 6552 is generating in one while loop, and your 4110 is to measure in another while loop. You can use a software syncrhonization method like notifiers to send a notification to your 4110 loop when your 6552 has generated the desired sample. This method, however, will not be very deterministic because the delay between the trigger and the response depends on your processor speed and load. Therefore, if you have other applications running in the background (like antivirus) it will increase the delay.
    b) Use hardware triggering on another device: If you have another device that supports hardware triggering (like maybe an M-series multifunction DAQ module), you can configure this device to be triggered by a signal from the 6552, perform a very quick task (like a very short finite acquisition) then immediately execute the DCPower VI to perform the measurement. The trigger can be configured to be re-triggerable for multiple usage. This will most likely have a smaller time delay then the first option, but there will still be a delay (the time it takes to perform the short finite acquisiton on the M-series). Please refer to the attached screenshot for an idea of how to implement this.
    2. To make your 4110 measure at specific time intervals, you can use one of the methods discussed above. As for how long it will take to acquire 1 measurement point, you may find this link helpful: http://zone.ni.com/devzone/cda/tut/p/id/7034
    This article is meant for the PXI-4130 but the 4110 has the same maximum sampling rate (3 kHz) and so the section discussing the speed should apply for both devices.
    Under the Software Measurement Rate section, it is stated that the default behavior of the VI is to take an average of 10 samples. This corresponds to a maximum sampling rate of 300 samples/second. However, if you configure it to not do averaging (take only 1 sample) then the maximum rate of 3000 samples/second can be achieved.
    It is also important to note that your program can only achieve this maximum sampling rate if your software loop takes less time to execute than the actual physical sampling. For example, if you want to sample at 3000 samples/second, that means that taking one sample takes 1/3000 seconds or 333 microseconds. If you software execution time is less than 333 microseconds, then you can achieve this maximum rate (because the speed is limited by the hardware, not the software). However, if your software takes more than 333 microseconds to execute, then the software loop time will define the maximum sampling rate you can get, which will be lower than 3000 samples/second.
    I hope this answers your question.
    Best regards,
    Vern Yew
    Applications Engineer, NI ASEAN
    Best regards,
    Vern Yew
    Applications Engineer
    Attachments:
    untitled.JPG ‏18 KB

  • How to return current value in iterator

    hi i have the following code when i iterator am always geting the same value,it display first value from the lov which is from the previous page.this is how am displaying the value i select value from lov and navigate to next page when am in the next page i must display value based on the lov selection,now i what to iterator that value organisation name,am always geting this value when iterating am not able to get the current value organisationname Botha Inc this value is the first value in my previous page lov
        public String getorgname(){
            String orgname = null;
           // DCIteratorBinding it = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCBindingContainer bindings1 =
                              (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();       
            // DCIteratorBinding it0 = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCIteratorBinding it  = bindings1.findIteratorBinding("UpdUamOrganisation1Iterator");
            RowSetIterator rsi = it.getRowSetIterator();   
            Row rw =   rsi.first();
        orgname = (String)rw.getAttribute("Organisationname");
            System.out.append("organisationname " + orgname);
            return orgname;
    my log error is
    <DCIteratorBinding> <releaseDataInternal> [4213] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [4214] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [4215] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [4216] Releasing iterator binding:listIter
    <ViewRowSetImpl> <execute> [4217] UpdResPerson1 ViewRowSetImpl.execute caused params to be "un"changed
    <ViewRowSetImpl> <initQueryCollection> [4218] Carrying over CappedRowCount:-1for ViewRowSet:UpdResPerson1
    <QueryCollection> <createColumnList> [4219] Column count: 11
    <ViewRowSetImpl> <execute> [4220] executeQueryForCollection ViewObject:UpdResPerson1, RowSet:UpdResPerson1
    <ADFLogger> <begin> Execute query
    <ViewObjectImpl> <buildQuery> [4221] UpdResPerson1>#q old SQLStmtBufLen: 654, actual=624, storing=654
    <ViewObjectImpl> <buildQuery> [4222] SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER,         UamCompanyofficerdetails.CONTACTNUMBER,         UamCompanyofficerdetails.DATE_CREATED,         UamCompanyofficerdetails.EMAILADDRESS,         UamCompanyofficerdetails.IDENTITYNUMBER,         UamCompanyofficerdetails.NAME,         UamCompanyofficerdetails.OFFICERID,         UamCompanyofficerdetails.ORGANISATIONID,         UamCompanyofficerdetails.OWNERSHIP,         UamCompanyofficerdetails.STATUS,         UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid
    <ViewObjectImpl> <getStatementFromCache> [4223] ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1 Reusing defined prepared Statement
    <ViewObjectImpl> <bindParametersForCollection> [4224] Bind params for ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1
    <OracleSQLBuilderImpl> <bindParamValue> [4225] Binding param "Bind_Organisationid": 341
    <ADFLogger> <addContextData> Execute query
    <ADFLogger> <addContextData> Execute query
    just executed query for collection..
    <ViewRowSetImpl> <setWhereClauseParamsInternal> [4226] UpdResPerson1 ViewRowSetImpl.setWhereClauseParams caused params changed
    <ADFLogger> <begin> Estimated row count
    <ViewObjectImpl> <buildQuery> [4227] UpdResPerson1>#q old SQLStmtBufLen: 654, actual=624, storing=654
    <ViewObjectImpl> <buildQuery> [4228] SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER,         UamCompanyofficerdetails.CONTACTNUMBER,         UamCompanyofficerdetails.DATE_CREATED,         UamCompanyofficerdetails.EMAILADDRESS,         UamCompanyofficerdetails.IDENTITYNUMBER,         UamCompanyofficerdetails.NAME,         UamCompanyofficerdetails.OFFICERID,         UamCompanyofficerdetails.ORGANISATIONID,         UamCompanyofficerdetails.OWNERSHIP,         UamCompanyofficerdetails.STATUS,         UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid
    <ViewObjectImpl> <getQueryHitCount> [4229] Estimated Row Count for ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1, Query Statement:
    <ViewObjectImpl> <getQueryHitCount> [4230] "SELECT count(1) FROM (SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER,         UamCompanyofficerdetails.CONTACTNUMBER,         UamCompanyofficerdetails.DATE_CREATED,         UamCompanyofficerdetails.EMAILADDRESS,         UamCompanyofficerdetails.IDENTITYNUMBER,         UamCompanyofficerdetails.NAME,         UamCompanyofficerdetails.OFFICERID,         UamCompanyofficerdetails.ORGANISATIONID,         UamCompanyofficerdetails.OWNERSHIP,         UamCompanyofficerdetails.STATUS,         UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid) "
    <ViewObjectImpl> <getQueryHitCount> [4231] Bind params for ViewObject.getQueryHitCount: UpdResPerson1
    <ADFLogger> <addContextData> Estimated row count
    <OracleSQLBuilderImpl> <bindParamValue> [4232] Binding param "Bind_Organisationid": 341
    <ViewObjectImpl> <getQueryHitCount> [4233] ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1 Estimated Row Count: 1
    <ADFLogger> <addContextData> Estimated row count
    Source breakpoint occurred at line 1532 of OrgDetails.java.
    organisationname Botha Incam in jdeveloper 11.1.1.6.0
    Edited by: adf009 on 2013/03/15 12:09 PM

    i change the code to this
               public String getorgname(){
            String orgname = null;
           // DCIteratorBinding it = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCBindingContainer bindings1 =
                              (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();       
            // DCIteratorBinding it0 = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCIteratorBinding it  = bindings1.findIteratorBinding("UpdUamOrganisation1Iterator");
            RowSetIterator rsi = it.getRowSetIterator();   
            Row r = rsi.getCurrentRow();
        orgname = (String)r.getAttribute("Organisationname");
        System.out.append("organisationname " + orgname);
            return orgname;
    am still geting the first value from lov when i iterator i what to see the current value selected,i have put the inputtext with the organisation name it always show the first value it does not change when i make selection in my lov i even put the partial trigger but does not change based on lov selection
    my jsff page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:panelSplitter id="ps1" orientation="vertical" splitterPosition="148">
        <f:facet name="first"/>
        <f:facet name="second">
          <af:panelStretchLayout id="psl1" startWidth="126px" endWidth="124px">
            <f:facet name="bottom"/>
            <f:facet name="center">
              <af:panelStretchLayout id="psl2" endWidth="137px" startWidth="220px">
                <f:facet name="center">
                  <af:panelGroupLayout id="pgl1" layout="vertical" valign="middle"
                                       halign="center">
                    <af:panelStretchLayout id="psl3"
                                           inlineStyle="width:732px; height:340px;"
                                           bottomHeight="100px">
                      <f:facet name="bottom">
                        <af:panelGroupLayout id="pgl2" layout="vertical"
                                             valign="middle" halign="center">
                          <af:panelHeader text="Select Organisation To Update" id="ph1"
                                          inlineStyle="border-style:ridge; border-color:Blue; height:57px;">
                            <f:facet name="context">
                              <af:group id="g2">
                                <af:toolbar id="t1">
                                  <af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
                                                      required="#{bindings.Organisationid.hints.mandatory}"
                                                      id="soc1" autoSubmit="true"
                                                      valuePassThru="true">
                                    <f:selectItems value="#{bindings.Organisationid.items}"
                                                   id="si1"/>
                                  </af:selectOneChoice>
                                </af:toolbar>
                                <af:inputText label="Label 1" id="it2"
                                              value="#{bindings.Organisationname.inputValue}"
                                              partialTriggers="soc1"/>
                              </af:group>
                            </f:facet>
                            <f:facet name="menuBar"/>
                            <f:facet name="toolbar">
                              <af:group id="g1">
                                <af:toolbar id="t2">
                                  <af:commandButton
                                                    text="UpdateOrganisation"
                                                    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
                                                    id="cb1"
                                                    action="#{pageFlowScope.addMember.showSelectedOrg}"/>
                                </af:toolbar>
                              </af:group>
                            </f:facet>
                            <f:facet name="legend"/>
                            <f:facet name="info"/>
                          </af:panelHeader>
                          <af:inputText label="Selectedorg" id="it1"
                                        value="#{bindings.Orgid1.inputValue}"
                                        partialTriggers="soc1" visible="false"/>
                        </af:panelGroupLayout>
                      </f:facet>
                      <f:facet name="start"/>
                      <f:facet name="end"/>
                      <f:facet name="top"/>
                    </af:panelStretchLayout>
                  </af:panelGroupLayout>
                </f:facet>
                <f:facet name="top"/>
              </af:panelStretchLayout>
            </f:facet>
            <f:facet name="start"/>
            <f:facet name="end"/>
            <f:facet name="top"/>
          </af:panelStretchLayout>
        </f:facet>
      </af:panelSplitter>
    </jsp:root>
    the page def is
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.61.92" id="SelectOrgPageDef"
                    Package="uam.view.pageDefs">
      <parameters/>
      <executables>
        <variableIterator id="variables">
          <variable Name="Orgid" Type="java.lang.Integer"/>
          <variable Name="orgid" Type="java.lang.Integer"/>
        </variableIterator>
        <iterator Binds="UpdUamOrganisationLov" RangeSize="-1"
                  DataControl="UpdAppModuleDataControl"
                  id="UpdUamOrganisationLovIterator"/>
        <iterator Binds="UpdUamOrganisation1" RangeSize="25"
                  DataControl="UpdAppModuleDataControl"
                  id="UpdUamOrganisation1Iterator"/>
      </executables>
      <bindings>
        <attributeValues IterBinding="variables" id="Orgid1"
                         ChangeEventPolicy="push">
          <AttrNames>
            <Item Value="Orgid"/>
          </AttrNames>
        </attributeValues>
        <list IterBinding="variables" id="Organisationid"
              DTSupportsMRU="true" StaticList="false"
              ListIter="UpdUamOrganisationLovIterator">
          <AttrNames>
            <Item Value="Orgid"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="Organisationid"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="Organisationname"/>
          </ListDisplayAttrNames>
        </list>
        <action IterBinding="UpdUamOrganisation1Iterator"
                id="setCurrentRowWithKeyValue" RequiresUpdateModel="false"
                Action="setCurrentRowWithKeyValue">
          <NamedData NDName="rowKey" NDType="java.lang.String"/>
        </action>
        <attributeValues IterBinding="UpdUamOrganisation1Iterator"
                         id="Organisationname">
          <AttrNames>
            <Item Value="Organisationname"/>
          </AttrNames>
        </attributeValues>
      </bindings>
    </pageDefinition>Edited by: adf009 on 2013/03/15 1:19 PM
    Edited by: adf009 on 2013/03/15 1:23 PM
    Edited by: adf009 on 2013/03/15 1:23 PM
    Edited by: adf009 on 2013/03/15 1:29 PM

  • How do I correctly time while loops using SCPI and VISA/Ethernet communication to send DC current Values to a Power supply?

    I'm rather new to using labview and I having an
    issue with a test Data Aquisition lab I'm trying to setup using a
    Keithley 6221 AC/DC current source and a basic PCI M-series NI-DAQmx. 
    First of all, I'm looking to update the  current value on a power
    supply at a rate of atleast 10Hz and I'm using SCPI commands and VISA
    communication through ethernet to do so.  Attached below is the VI I
    have written. 
    The issue I'm having is this:
        My VI will
    loop through the values fine in software, or so it seems.  I am unable
    to get the Power supply to update sequentially if I don't set my loop
    delay to anything greater than 130ms.  If I try to run the loop faster
    it starts skipping values instead of counting 1,2,3,4,5,1,2,...etc.  it
    goes 1,2,4,5,2,4,1,2 on the display of the power supply and my DAQ unit
    also skips these values so I know that the number just isn't getting
    read to the Power supply in time.  I was wondering if this was due to
    my sloppy programming or if it is a hardware issue, my computer or the
    method of communication to the power supply?  Is this due to the fact
    that I'm using ethernet and VISA communication?  Is there a faster way
    to communicate or is GPIB faster?  Any input at all would be extremely
    helpful.
    On a side note:  Right now I'm using an pre-determined
    array of values that I can update on the fly but in the future this
    with be put into a  closed-loop control system.  The value for the
    power supply output will be determined by the loop and sent that way.
    Attachments:
    basic DC loop 6221 Keithley.vi ‏145 KB

    Also, one of the string constants is NOT set to '\' Codes Display. Here is an alternative method of calculating the index. I removed the DAQ and VISA stuff since I could not run it.
    Lynn
    Attachments:
    basic DC loop 6221 Keithley.2.vi ‏16 KB

  • Setting current values in Multiple Select List in SQL Query based Report

    Hi,
    I have a report based on a sql query that contains a multiple select list. Unfortunately I cannot get the multiple select list to display the current values (p_value) correctly. I have created a page item, :p311_current_versions, that is set using a pre-header process and it returns a value with a colon delimited format e.g. '10.1.2.1.0:10.1.2.2.0'. Then this item is used in the sql query to set the current value (p_value) of the apex_item.select_list_from_query function. However when the table is displayed, instead of having two entries, 10.1.2.1.0 and 10.1.2.2.0 selected, it has an extra entry '10.1.2.1.0:10.1.2.2.0' selected.
    Here is my code:
    select distinct a.product, a.version from (
    select distinct
    apex_item.display_and_save(2,product)||apex_item.hidden(1,env_product_id) PRODUCT,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(3,decode(product, 'HTTP Server' , :p311_current_versions, version), 'SELECT distinct version d, version r FROM ebs_tech_stack where
    product ='''||PRODUCT||'''',
    decode(PRODUCT, 'HTTP Server' ,'multiple="multiple" style="width:170px"','style="width:170px"'),
    'NO') as version
    from ebs_environment_tech_stack
    where environment_id = :p311_umgebung_id) a order by a.product
    If anyone can help me figure out how to set the current values correctly I'd be really grateful!!
    Thanks in advance,
    Jean

    Jean,
    I don't think this is possible using the apex_item package. The select_list_from_query function accepts only a single value for the second parameter.
    Scott

  • Get the current value of a managed bean.

    Hi guys
    I have a register page which takes the Login ID and the password and retype password whose values are stored in the "Managed Beans" in registerServer.java.
    I have a (PwdValidator.java) Custom validator for Re-type Password which validates itself against the password.
    Now my problem is from the PwdValidator.java how can I access the value of the password which is stored in the managed bean in registerServer.java.
    here is a copy of my faces-config.xml
         <managed-bean>
              <managed-bean-name>registerServer</managed-bean-name>
              <managed-bean-class>com.sun.registerServer</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    Help is really appreciated,
    Thanks,
    Chaprasi Baba

    Thanks for the reply but my question is how do I get
    the password value from the managed bean
    FacesContext context =
    FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    CountryValueObject registerServer =
    (CountryValueObject)application.getVariableResolver().r
    solveVariable(context, "registerServer");
    String pwd = registerServer.password // So will this
    give me the current value for that session.You didn't go far enough in replacing the example code . Try this:
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    RegisterServer registerServer = (RegisterServer)application.getVariableResolver().resolveVariable(context, "registerServer");
    String pwd = registerServer.password // So will this give me the current value for that session.

  • How to get the current values of LINESIZE and WRAP in SQLplus ?

    How do I get the current values for the SQLplus environment variables
    e.g. LINESIZE, WRAP, PAGESIZE ?
    When I type
    SQL> show parameter LINESIZE
    nothing is displayed.
    Is there a command to show ALL existing current paramter values at once ?

    SQL> show linesize
    linesize 134
    SQL> show wrap
    wrap : regels zullen omgeslagen worden
    SQL> show pagesize
    pagesize 50000And you can issue a "show all" to see all settings at once.
    Regards,
    Rob.

  • How do I add current value to existing values over a period of time?

    Sorry guys, I'll apologize in advance since I think this problem may be very simple, but I had been mind blocked from going through hours of Labview Tutorial and trying it out.
    Lets say I am working on a workout analyser, and everytime the z-axis fall below 0, I would count it as '1 count', I wanted to add up the total number of counts. Do I use an array to store the 'count'? I try using shift register and it only gives me the current count plus the previous, i.e. I get 2 everytime I do a count.
    Solved!
    Go to Solution.

    If you just want a count, then a scalar value should be what you put into the shift register, not an array.
    If the condition is true, add one to the value in the shift register and put it back in.  If the condition is false, then just put the current value in the shift register back in.
    Attachments:
    Example_VI_BD.png ‏10 KB

  • How to display the current value selected in DDLB of another screen

    hi Experts
    I need some info regarding the dropdownlist in BSP.
    I have two screens . One screen contains the table view which contains a set of records.Each record has two columns.
    Second screen contains 2 drop down list.
    When i select one record and then press the submit button in the first screen .Then i want that the selected value of the selected record will display in the DDLB of the second screen. And then i can again select the value from the drop down list.
    For example:
    1st screen:
    record 1.
    col 1     col 2
    record 2
    col 1     col 2
    2nd screen
    ddlb1...........
    ddlb2...........
    So when i select the record1, then the current value of col1 and col2 should visible on the ddlbs of second screen first time. Then i choose other value from the ddlbs.....
    My Question is how to do the following
    "when i select the record1, then the current value of col1 and col2 should visible on the ddlbs of second screen".
    please provide some suggestions...
    Thanks.

    Hi,
    You can use form with post method
    like
    <htmlb:form method = "post"
                      action = "page2.htm"
                      target = "coding" >
    <htmlb:dropdownListBox id             = "labelAlignment"
                                               selection      = "<%= me->labelAlignment %>"
                                               onClientSelect = "document.forms[0].submit();" >
                          <htmlb:listBoxItem key   = "LEFT"
                                             value = "LEFT" />
                          <htmlb:listBoxItem key   = "RIGHT"
                                             value = "RIGHT" />
                        </htmlb:dropdownListBox>
    So once you select col1 and col2 in your case its value is in page attribute say hold, this attributes needs to be defined in page2.htm also with auto checked. You can get the val selected in page1.htm
    If helpful rewards point.
    Regards,
    Albert

  • Mapping descrete values to childs of a complex type array

    Hi all,
    I have the following flat XML file with descrete values as source:
    <MaterialRequest_MT>
      <number><b>number1</b></number>
      <shortdesc><b>shortdesc1</b></shortdesc>
      <projectname><b>projectname1</b></projectname>
    </MaterialRequest_MT>
    My problem is how to map this file to the following destination file where the single values of the source file are values of a child element in a list of complex elements:
    <ns0:query xmlns:ns0="http://QueryService">
            <ns0:attributes>
              <ns0:item>
                <ns0:key>
                  <ns0:system>MP</ns0:system>
                  <ns0:name>PartNumber</ns0:name>
                </ns0:key>
                <ns0:value><b>number1</b></ns0:value>
              </ns0:item>
              <ns0:item>
                <ns0:key>
                  <ns0:system>MP</ns0:system>
                  <ns0:name>Description</ns0:name>
                </ns0:key>
                <ns0:value><b>shortdesc1</b></ns0:value>
              </ns0:item>
              <ns0:item>
                <ns0:key>
                  <ns0:system>MP</ns0:system>
                  <ns0:name>Project</ns0:name>
                </ns0:key>
                <ns0:value><b>projectname1</b></ns0:value>
              </ns0:item>
            </ns0:attributes>
    </ns0:query>
    As you see I don't have a source array over which to iterate. This makes it impossible to me to map the source values to the destination items.
    Any help is very appreciated!
    Thanks!
    Denis

    Hi
    <b>Mapping for item node:</b>
        Create a user defined function with 3 input parameters for number,shortdesc,projectname. In the user defined function check whether each input value exists or not.if the input value exists add the code 'result.addValue("")'.if the 3 input values exist then 3 item nodes will be created.
    <b>Mapping for elements</b>
             Create another user defined function with 3 parameter.take the 3 input values same as the above function. Check whether parameter a value exists in the element and write  <b>result.addValue(a[0]);</b>Do similarly for b and c parameters. After defining this function add standard node function 'splitbyvalue' and assign to the target.
       USedefined function---->splitbyvalue--
    >value.
    I guess this solution is a bit complex.....hope it works
    regards
    Suneel
    Message was edited by: Suneel
    Message was edited by: Suneel

  • How to get current value of checkBox on button press programatically in adf

    Hi,
    I want to get the current value of checkbox(checked/unchecked or 0/1) in my java bean whenever I press submit button on my jspx page.
    My JDeveloper version is : 11.1.1.6.0

    Where is the checkbox value bind to? The status of hte checkbox is hold in the value property of the checkbox. This is normally an EL like
    #{bindings.Myvar1.inputvalue}or something pointing to a bean property. This value can be read from the action listener of your submit button
            BindingContainer bindingContainer = BindingContext.getCurrent().getCurrentBindingsEntry();
            AttributeBinding attr = (AttributeBinding)bindingContainer.getControlBinding("Myvar1");
            Object obj = attr.getInputValue();Timo

  • JUCtrlListBinding -- get current value of list

    Hi.
    (Jdev 11,1,2 win7.)
    I saw a staff code in "Oracle Fusion Developer Guide" book for get current value of listItem as below :
    import oracle.adf.model.BindingContext;
    import oracle.binding.BindingContainer;
    import oracle.jbo.uicli.binding.JUControlBinding;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.ViewRowImpl;
    BindingContext bindingCtx = BindingContext.getCurrent();
    BindingContainer bindings = bindingCtx.getCurrentBindingsEntry();
    JUControlBinding listBinding = null;
    listBinding = (JUControlBinding)bindings.get("JobId");
    ViewRowImpl selectedListRow = null;
    selectedListRow = (ViewRowImpl)*listBinding.getSelectedValue()*; :(
    String jobIdValue = (String)selectedListRow.getAttribute("JobId");
    Number maxSalary = (Number)selectedListRow.getAttribute("MaxSalary");
    but Jdeveloper cannot find method getSelectedValue() for listBinding .
    help me please to understand correct method .!
    thanks

    Declare the type of <tt>listBinding</tt> variable as <tt>JUCtrlListBinding</tt> instead of <tt>JUControlBinding</tt>. The base class JUControlBinding does not contain a method getSelectedValue(), this method is defined in the subclass JUCtrlListBinding.
    Dimitar

Maybe you are looking for

  • Interacting with a compiled LABView executable from another VI

    I'm using a piece of hardware that has it's driver executable written in LABView. I would like to interact with it from the inside of my own VI. There's no dedicated LABView driver and I don't have access to the source code. Communication happens ove

  • Finding and removing duplicates?

    What is the best way to search for a remove duplicate photos in iphoto?

  • Cannot install Flash 10.3 on Windows 7

    I thought this would be the best place to start this discussion. I've tried every trick in the book to install flash updates on my system with no luck. A few of my applications need Flash Player so I'm pulling my hair out at this stage. Everytime I u

  • HT4623 I can't turn off my iPhone4

    I recently bought more cloud storage and backed up my iphone onto my computer which I haven't done in months and now I can't turn off my phone.  I hold the button down on the upper right and nothing happens.  What should I do?

  • Why has my iPad crashed 3 times since I upgraded to iOS 7.0.3?

    Lockscreen freezes, no buttons do anything, and it cannot be turned off.  Plugging in to the charger caused it to reboot after I pulled out the plug.  Second crash was a black screen with music playing, but no controls again as before.  Plug had no a