Cannot set Skillbuilder SuperLOV value

Hello,
i have a superlov item, P1_CODE which i am trying to set it's value from javascript.
$s('P1_CODE', 'AA.001');
The Enterable field is set to Enterable - Not restricted to LOV but i cannot set the field as it remains null. I can select from the popup list or enter directly a value.
If i use the same code on a e.g. TextBox it works fine.
I'm using Apex 4.2.3 and SuperLOV 2.0.2
Teo
Thank you.

It does work. Don't forget that the superlov is built as a fieldset which contains a hidden item ( = return value) and the text item ( = display value). Calling either $s or apex.item.setValue with one value will set the return value of the item.
JavaScript APIs: apex.item.setValue
JavaScript APIs: $s
$s(pNd, pValue, pDisplayValue, pSuppressChangeEvent)
You can see it working as expected by inspecting the html. When you want to set the display value as well as the return value, then simply provide a third parameter.
eg
$s("P18_SLOV", "JAMES", "7900")
Now, also be aware that the superlov has some interesting methods available, as seen in the documentation:
The getValuesByReturn and setValuesByReturn methods can be used to programmatically fetch return values and set the item using the return values. getValuesByReturn will return a JSON object with the results from the fetch. setValuesByReturn goes a step further using the return values to set the display and return values for the item. Example(s):
$('#P1_ITEM_NAME').apex_super_lov('getValuesByReturn', '101');
$('#P1_ITEM_NAME').apex_super_lov('setValuesByReturn', '999');

Similar Messages

  • Cannot set the default value of an item in the detailed table

    Hi,
    I have Master-Detail group, both are Table formats.
    I need to set the default value of an item in the details row to the value of an item in the selected row in the Master table.
    I tried Default Display Value=#{row.MasterItem}, but it seems it is trying to access current details row instead of the Master.
    I tried #{bindings.MasterGroupColumnName.inputValue}, but it does not work.
    Any ideas
    Thanks in advance
    Mohamed

    I think I now what I'm doing differently, I had the "New Rows" JHS property of the detailed table group "empty" instead of the default "2" value.
    It seems that "Default Display Value" expression works only for the new records specified in the "New Rows" property. But when I try to "Add" new record using the "Add Row" button, the new record inserted does not have the default values generated, only has values populated for the items of the FK (in the view link) but not the ones set through the property.
    I guess in a nutshell, how I can get the details item to behave like the FK columns?
    Thanks much
    Mohamed

  • Attribute key cannot be found. Value 0 . eventhough set to unknown member

    Hi,
    I want to be able to set any null values in the fact foregin key to the dimensions unknown member.
    I have a dimension called agent , with UnknownMember = True and UnknowMemberName = No Agent. When I process my dimension, I see all my agents plus a No Agent member. (ErrorConfiguration = Default. I do not want to ignore errors ).
    In the cube dimension usage I've set null proccessing to unknown member.
    I have a rows on my fact table with NULL on the agentID and the Cube fails to process with this error (its changing NULL to 0):
    Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'dbo_FactSales', Column: 'AgentId', Value: 0.
    I was expecting that, based on my configuration of the dimension, that the NULL row would be assigned to the unknown member of the dimension.
    What am I missing?
    (I know that I could have a Unknow record on my db and deal with it on the ETL process, but I would like SSAS to handle this situation. I already read 
    http://msdn.microsoft.com/en-us/library/ms345138.aspx is telling to do on the section "Referential
    Integrity Issues in Fact Table")
    I don't know if this is related but the fact value is taken from DSV query of:
    CASE WHEN Fact_table.[AgentId] IS NULL THEN NULL ELSE CAST(Fact_table.[AgentId] AS INT) END AS [AgentId]
    Your help appreciated
    Namnami

    Hi Namnami,
    Please refer to the following article:
    Defining the Unknown Member and Null Processing Properties:
    http://technet.microsoft.com/en-us/library/ms170707(v=sql.90).aspx
    Here is a related article about this error message for your reference:
    SSAS Quick Reference: Attribute Key Cannot Be Found:
    http://toddmcdermid.blogspot.com/2009/01/ssas-quick-reference-attribute-key.html#!/2009/01/ssas-quick-reference-attribute-key.html
    Regards,
    Elvis Long
    TechNet Community Support
    The worst part about these MSDN forums is that the Moderators seem to just want to mark an answer correct on every single question whether it's right or not, and if there is no answer they just mark their own answers as correct, even when it's as unhelpful
    as "Here's the same link to the article you've already read".

  • CRM 5.0 Cannot set freight value for B2C

    Background:  We are implementing a ConnectShip solution completely within the J2EE enviornment (not in CRM directly) which makes the call to ConnectShip and returns values.  I have hijacked the strut and am setting purchase order and other header fields, but am unable to use setFreightValue.  In debug, the header gets the value, but when we get to the page render, the value always returns zero.
    Any suggestions?

    Could you be a little bit more precise in what you are doing?
    What technologies are you using?
    May be some code would be interesting?
    We have attempted many solutions - typically, one would assume that if you set a header value in a JSP or JAVA (for example, header.setFreightValue("1000")), that this value would be picked up at order save.  This is not the case.
    When we use this header.setFreightValue("1000") directly within checkout.inc.jsp, the value gets read in confirm.inc.jsp -- this at least shows that the value is being set to the header, however, that is as far as things go.  At order save the value returned is zero.

  • Cannot set selectOneChoice value during reload (value auto become null)

    Dear all,
    I have a problem that getting null value in the SelectOneChoice field in a table binded to
    a view object. If I change that SelectOneChoice to inputText, it works perfectly. The details
    of the situation is described as follows:
    I've binded a view objects with 8 attributes to a af:table, then I manually change
    2 of the inputText fields inside 'Column' fields of the table to inputlistofvalue and
    selectOneChoice. The code is as follow:
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.AcNo.name}"
    sortable="false"
    headerText="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
    id="c1" width="180"
    inlineStyle="font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:medium;">
         <af:inputListOfValues value="#{row.bindings.AcNo.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
              required="#{bindings.OpenBalanceVO1.hints.AcNo.mandatory}"
              columns="#{bindings.OpenBalanceVO1.hints.AcNo.displayWidth}"
              maximumLength="#{bindings.OpenBalanceVO1.hints.AcNo.precision}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.AcNo.tooltip}"
              id="it1"
              model="#{bindings.AcNo2.listOfValuesModel}"
              autoSubmit="false"
              returnPopupListener="#{backingBeanScope.backing_ImportOpenBalance.returnListener}">
              <f:validator binding="#{row.bindings.AcNo.validator}"/>
         </af:inputListOfValues>
    </af:column>
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.CurrencyCode.name}"
         sortable="false"
         headerText="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
         id="c2">
         <af:selectOneChoice value="#{row.bindings.CurrencyCode.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.CurrencyCode.tooltip}"
              id="it2" autoSubmit="false"
              partialTriggers="cb1 cb2">
              <f:selectItems value="#{loginInfo.activeCurrencies}" id="currenciesList"/>
         </af:selectOneChoice>
    </af:column>
    And I have binded the returnPopupListener to returnListerner event handler to automatically
    set the Currency field (2nd field) after the user chose the Account field (1st field) from
    the input list of value:
    public void returnListener(ReturnPopupEvent returnPopupEvent) {
         RichInputListOfValues lovField = (RichInputListOfValues)returnPopupEvent.getSource();
         ListOfValuesModel lovModel = lovField.getModel();
         CollectionModel collectionModel = lovModel.getTableModel().getCollectionModel();
         JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
         RowKeySet rks = (RowKeySet)returnPopupEvent.getReturnValue();
         List tableRowKey = (List)rks.iterator().next();
         DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
         Key key = (Key)tableRowKey.get(0);
         Row row = dciter.findRowByKeyString(key.toStringFormat(true));
         DCBindingContainer bc = getBindingContainer();
         DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
         OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
         FacesContext fctx = FacesContext.getCurrentInstance();
         ExpressionFactory elFactory = fctx.getApplication().getExpressionFactory();
         ValueExpression ve = elFactory.createValueExpression(fctx.getELContext(), "#{loginInfo}", LoginInfo.class);
         LoginInfo loginInfo = (LoginInfo)ve.getValue(fctx.getELContext());
         System.out.println("Return place: search date:" + loginInfo.getSearchDate());
         Row newRow = viewObject.createRow();
         String selectedAcNo = row.getAttribute("AcNo").toString();
         String selectedCurrency = row.getAttribute("CurrencyCode").toString();
         newRow.setAttribute("AcNo", selectedAcNo);
         newRow.setAttribute("CurrencyCode",selectedCurrency);
         newRow.setAttribute("OpenBal", 300);
         newRow.setAttribute("AvailBal", 200);
         newRow.setAttribute("CreateDate", new Date());
         newRow.setAttribute("EffectiveDate", loginInfo.getSearchDate());
         newRow.setAttribute("LockStatus", "N");
         viewObject.insertRowAtRangeIndex(rowIndex, newRow);
    The problem occurs when I use a 'createInsert' button to create a new row in the table,
    and then choose a value from the inputListOfValues. The new row refresh and get the value
    I chose in the first column in the new row. But the second column (currency field) is left
    as empty (null value). If I change the second column frmo selectOneChoice to inputText,
    the correct Currency value (e.g. "HKD" or "USD") can be shown. So I wonder if there is any
    additional tricks in order to set the selectOneChoice value during refresh.
    Additionally I have tried to check the state of the view object attributes during the refresh
    lifecycle and found that the following reload method (else place) is being reached 3 times after I click
    the 'ok' button in the popup up in the inputListOfValue.
    public void beforePhase(PagePhaseEvent event) {
         //System.out.println("i am here inside backing bean : before phrase 1 phrase ID:" + event.getPhaseId());
         if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
              if (!isPostback()) {
              } else {
                   System.out.println("Post Back on Page Load!");
                   DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
                   OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
                   RowSetIterator iterator = viewObject.createRowSetIterator(null);
                   iterator.reset();
                   while (iterator.hasNext()) {
                        //Row row = viewObject.getCurrentRow();
                        Row row = iterator.next();
                        System.out.print("Account:" + row.getAttribute("AcNo"));
                        System.out.print(",AvailBal:" + row.getAttribute("AvailBal"));
                        System.out.print(",OpenBal:" + row.getAttribute("OpenBal"));
                        System.out.print(",CurrencyCode:" + row.getAttribute("CurrencyCode"));
                        System.out.print(",EffectiveDate:" + row.getAttribute("EffectiveDate"));
                        System.out.print(",UserCreate:" + row.getAttribute("UserCreate"));
                        System.out.println("");
                        if (row.getAttribute("UserCreate").toString().equals("<current user>")) {
                             System.out.println("Match <current user> in preload");
                             //row.setAttribute("CurrencyCode", "USD");
                   System.out.println("end of reload");
    During the 1st time, the CurrencyCode field was set currently, but then in the 2nd and 3rd
    times, it's value suddenly changed to 'null'. If I use inputText, all the 3 times currencyCode
    field is showing correctly without the null issue.
    Anyone can kindly give me some hints? Thanks a lot!!!

    Dear all,
    I have a problem that getting null value in the SelectOneChoice field in a table binded to
    a view object. If I change that SelectOneChoice to inputText, it works perfectly. The details
    of the situation is described as follows:
    I've binded a view objects with 8 attributes to a af:table, then I manually change
    2 of the inputText fields inside 'Column' fields of the table to inputlistofvalue and
    selectOneChoice. The code is as follow:
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.AcNo.name}"
    sortable="false"
    headerText="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
    id="c1" width="180"
    inlineStyle="font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:medium;">
         <af:inputListOfValues value="#{row.bindings.AcNo.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
              required="#{bindings.OpenBalanceVO1.hints.AcNo.mandatory}"
              columns="#{bindings.OpenBalanceVO1.hints.AcNo.displayWidth}"
              maximumLength="#{bindings.OpenBalanceVO1.hints.AcNo.precision}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.AcNo.tooltip}"
              id="it1"
              model="#{bindings.AcNo2.listOfValuesModel}"
              autoSubmit="false"
              returnPopupListener="#{backingBeanScope.backing_ImportOpenBalance.returnListener}">
              <f:validator binding="#{row.bindings.AcNo.validator}"/>
         </af:inputListOfValues>
    </af:column>
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.CurrencyCode.name}"
         sortable="false"
         headerText="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
         id="c2">
         <af:selectOneChoice value="#{row.bindings.CurrencyCode.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.CurrencyCode.tooltip}"
              id="it2" autoSubmit="false"
              partialTriggers="cb1 cb2">
              <f:selectItems value="#{loginInfo.activeCurrencies}" id="currenciesList"/>
         </af:selectOneChoice>
    </af:column>
    And I have binded the returnPopupListener to returnListerner event handler to automatically
    set the Currency field (2nd field) after the user chose the Account field (1st field) from
    the input list of value:
    public void returnListener(ReturnPopupEvent returnPopupEvent) {
         RichInputListOfValues lovField = (RichInputListOfValues)returnPopupEvent.getSource();
         ListOfValuesModel lovModel = lovField.getModel();
         CollectionModel collectionModel = lovModel.getTableModel().getCollectionModel();
         JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
         RowKeySet rks = (RowKeySet)returnPopupEvent.getReturnValue();
         List tableRowKey = (List)rks.iterator().next();
         DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
         Key key = (Key)tableRowKey.get(0);
         Row row = dciter.findRowByKeyString(key.toStringFormat(true));
         DCBindingContainer bc = getBindingContainer();
         DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
         OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
         FacesContext fctx = FacesContext.getCurrentInstance();
         ExpressionFactory elFactory = fctx.getApplication().getExpressionFactory();
         ValueExpression ve = elFactory.createValueExpression(fctx.getELContext(), "#{loginInfo}", LoginInfo.class);
         LoginInfo loginInfo = (LoginInfo)ve.getValue(fctx.getELContext());
         System.out.println("Return place: search date:" + loginInfo.getSearchDate());
         Row newRow = viewObject.createRow();
         String selectedAcNo = row.getAttribute("AcNo").toString();
         String selectedCurrency = row.getAttribute("CurrencyCode").toString();
         newRow.setAttribute("AcNo", selectedAcNo);
         newRow.setAttribute("CurrencyCode",selectedCurrency);
         newRow.setAttribute("OpenBal", 300);
         newRow.setAttribute("AvailBal", 200);
         newRow.setAttribute("CreateDate", new Date());
         newRow.setAttribute("EffectiveDate", loginInfo.getSearchDate());
         newRow.setAttribute("LockStatus", "N");
         viewObject.insertRowAtRangeIndex(rowIndex, newRow);
    The problem occurs when I use a 'createInsert' button to create a new row in the table,
    and then choose a value from the inputListOfValues. The new row refresh and get the value
    I chose in the first column in the new row. But the second column (currency field) is left
    as empty (null value). If I change the second column frmo selectOneChoice to inputText,
    the correct Currency value (e.g. "HKD" or "USD") can be shown. So I wonder if there is any
    additional tricks in order to set the selectOneChoice value during refresh.
    Additionally I have tried to check the state of the view object attributes during the refresh
    lifecycle and found that the following reload method (else place) is being reached 3 times after I click
    the 'ok' button in the popup up in the inputListOfValue.
    public void beforePhase(PagePhaseEvent event) {
         //System.out.println("i am here inside backing bean : before phrase 1 phrase ID:" + event.getPhaseId());
         if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
              if (!isPostback()) {
              } else {
                   System.out.println("Post Back on Page Load!");
                   DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
                   OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
                   RowSetIterator iterator = viewObject.createRowSetIterator(null);
                   iterator.reset();
                   while (iterator.hasNext()) {
                        //Row row = viewObject.getCurrentRow();
                        Row row = iterator.next();
                        System.out.print("Account:" + row.getAttribute("AcNo"));
                        System.out.print(",AvailBal:" + row.getAttribute("AvailBal"));
                        System.out.print(",OpenBal:" + row.getAttribute("OpenBal"));
                        System.out.print(",CurrencyCode:" + row.getAttribute("CurrencyCode"));
                        System.out.print(",EffectiveDate:" + row.getAttribute("EffectiveDate"));
                        System.out.print(",UserCreate:" + row.getAttribute("UserCreate"));
                        System.out.println("");
                        if (row.getAttribute("UserCreate").toString().equals("<current user>")) {
                             System.out.println("Match <current user> in preload");
                             //row.setAttribute("CurrencyCode", "USD");
                   System.out.println("end of reload");
    During the 1st time, the CurrencyCode field was set currently, but then in the 2nd and 3rd
    times, it's value suddenly changed to 'null'. If I use inputText, all the 3 times currencyCode
    field is showing correctly without the null issue.
    Anyone can kindly give me some hints? Thanks a lot!!!

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the Paragraph Designer.

    In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the paragraph designer. Here are the steps to dysfunction:
    1. In Paragraph Designer, for Tab Stops, click Edit. Edit Tab Stop dialog box opens, and the Paragraph Designer dialog box closes.
    2. Type value in New Position box.
    3. Click Continue. The Edit Tab Stop box closes.
    4. Open Paragraph Designer. No tabs are recorded.
    Discussion of a similar problem occured on this forum in June 2010. At that time, the resolution seemed to be to upgrade to 9.0.3. Has anyone else encountered this problem with these versions?
    Thanks.

    Hi, Arnis,
    Brilliant! Thanks so much. I only looked at the later discussions of that thread, which seemed to indicate the problem would be solved by an upgrade to 9.0.3.
    -Trish

  • How Can I Set a Javascript Value into an Attribute of BSP PAGE

    Hi
    Can anyone tell me.
    How Can I Set a Javascript Value into an Attribute of BSP PAGE

    Hi Mithlesh,
    javascript runs on client side and you cannot assign the value to a Page attribute directly.
    As a workaround,you can use an Inputfield,hidden if required,and set the value using javascript.Then the form will have to be submit to be able to read the value in onInputProcessing and then can be assigned to any variable.
    In Layout
    <head>
    <script language="javascript">
    function pass()
       txt1 = document.getElementById("ip_mrf");
       txt.value = "hello" ;
    </script>
    </head>
    <htmlb:inputField  id="ip_mrf"
                               value="<%=mrf_number%>"
                               visible="FALSE"/>
    in onInputProcessing
    cha1 = request->get_form_field( 'ip_mrf' ).
    where cha1 is the page attribute
    hope this helps,
    Regards,
    Siddhartha
    Message was edited by: Siddhartha Jain

  • How to set the default value of a database column to NULL

    Hello,
    I want to set the default value of a column (VARCHAR2(20) to NULL, nut I cannot figure out to do this. I tried the following editing the offline table with JDeveloper:
    Default Value : <empty> -> On database NULL
    Default Value: '' -> On database ''
    When I create a new column, there is no default value on the database side and when I open the tabe properties in the database navigator I can see that the default value is (null). This is what I want to see in the other column as well. I don't know why sometimes a default value is visible on the database side (when generating form offline tables to database tables) and sometimes not.
    Perhaps sombody can bring some light in this issue.
    Thanks Thomas

    Hello Shay,
    I have the impression that you don't understand my problem. So here step by step:
    1. Create a offline Table TEST with one column TEST: VARCHAR2(20). nullable=true, no default value.
    2. Generate the table to the database
    3. When you look at the table properties (columns) with the database navigator the following information is displayed (sorry for the formatting):
    Column Name | Data Type | Nullable | Data Default | COLUMN ID| Primary Key | COMMENTS
    TEST | VARCHAR2(20 BYTE | Yes | (null) | 1 | (null) | (null)
    4. Now set the default value for the column TEST in the offline table for example to 'Test'
    5. Generate the table to the database.
    6. When you have a look at the database table, the default value is now 'Test' (as expected)
    7. Now remove the default value of the column TEST in the offline table
    8. Generate the table to the database
    9. When you have a look at the database table, the default value is now NULL (in uppercase letters without parenthesis)
    And this is where the problem starts!
    When you generate the table again with the options "Alter/Manual Reconcile" the default value of the column test is considered to be different! But in fact it should'nt be different because nothing has been changed.
    Best regards Thomas
    Edited by: thmayr on May 28, 2009 9:05 AM
    Edited by: thmayr on May 28, 2009 9:31 AM

  • [Solved?] VLC won't play audio -- cannot set buffer duration

    I can't play sound in VLC. I have tried the default and the ALSA outputs. I know ALSA works, because mpg123, speaker-test, and rdesktop's sound all work. (Saying that, I can't tell if mpg123 uses alsa or not - rdesktop does though)
    Attempting to play something in VLC gives me some rather cryptic errors. What follows is the output of "vlc -v" and an attempt to play a video with sound. I have split the "code"-tag just before the actual error output for clarity and ease of scanning.
    VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libportaudio_plugin.so' (libportaudio.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libjack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/services_discovery/libmtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/notify/libxosd_plugin.so' (libxosd.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_jack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_dv_plugin.so' (libavc1394.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_mtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libaa_plugin.so' (libaa.so.1: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libcaca_plugin.so' (libcaca.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/control/liblirc_plugin.so' (liblirc_client.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL
    [0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f1e68c068a8] alsa audio output error: cannot set buffer duration: Invalid argument
    [0x7f1e68c068a8] pulse audio output error: PulseAudio server connection failure: Connection refused
    [0x7f1e68c068a8] oss audio output error: cannot open audio device (/dev/dsp)
    [0x7f1e68c068a8] main audio output error: no suitable audio output module
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f1e6cc02b68] main decoder error: failed to create audio output
    I have reproduced this with the same result using 'sudo vlc-wrapper' and I am added to the 'audio' group.
    I have no idea where to start with this issue, I've tried googling but it seems that only one person has ever had this issue before (if Google is to be considered a reputable source), and he was running his own VLC build. I am running the build "pacman -S vlc" gave me. If anyone could point me in the right direction on this issue I'd be grateful.
    Edit: This is my /etc/asound.conf. I have no idea what any of this means, at this point it's fill-in-the-blanks wiki copypasta (Edit2: The purpose of this file is to try to stop alsa from sending all my sound through a disconnected HDMI instead of the speakers)
    # Use PulseAudio by default
    #pcm.!default {
    # type pulse
    # fallback "sysdefault"
    # hint {
    # show on
    # description "Default ALSA Output (currently PulseAudio Sound Server)"
    #ctl.!default {
    # type pulse
    # fallback "sysdefault"
    pcm.!default {
    type plug
    slave.pcm {
    @func getenv
    vars [ ALSAPCM ]
    default "hw:Generic_1"
    # vim:set ft=alsaconf:
    Last edited by Score_Under (2013-08-02 23:23:27)

    Situation update:
    1. I didn't need my asound.conf like that -- I should have used pulseaudio in the first place, I was unaware that ALSA does not allow more than one program to use the sound device at the same time, whereas pulseaudio is used to mix sounds.
    2. VLC works fine on PulseAudio. No idea why it failed on ALSA!
    Last edited by Score_Under (2013-08-02 23:22:45)

  • User defined function to set a default value of a column

    Hi All
    Can we use user defined function to set a default value of a column ??
    for example:
    create or replace  function test1  return number is
    begin
    return 10;
    end;
    create table testt
    (id  as test1,
      name varchar2(20));
    error:
    ORA-02000: missing ( keywordThanks
    Ashwani

    174313 wrote:
    MichaelS for showing example to use function in table ddl , otherwise i was thinking we cannot use function in table ddl as per error I received.That was an example of a virtual column.
    ORA-04044: procedure, function, package, or type is not allowed hereUsing PL/SQL code like that raises 2 basic problems. If that PL/SQL code for the calculating the column default breaks, what happens to the SQL insert statements against that table. These will need to fail as the table definition depends on the PL/SQL code. This is problematic as this dependency simply increases the complexity of the SQL object.
    The 2nd issue is performance. PL/SQL code needs to be executed by the PL/SQL engine. This means a context switch from the SQL engine to the PL/SQL engine in order to determine the default value for that column. Context switching is a performance overhead.
    So even if it was possible to use a PL/SQL function as parameter for the SQL default clause, I would not be that keen to use it.

  • Set the default value in selectonechoice using bindings property

    Hi,
    I have a question to ask about selectonechoice.  I have scanned the forum but I just cant get this to work by myself.
    My business service is a web service.
    Use Case:
    From the web service data control, I should display a drop down of all available options but I should be able to filter the list of selectItems shown in the dropdown.
    After the data is filtered, the drop down should display the first item in the list.
    so this is what I did.  I drag the iterator in my data control as selectOneChoice.
    <af:selectOneChoice value="#{bindings.codeList.inputValue}"
                      label="Code">
        <f:selectItems value="#{pageFlowScope.codeList.items}"
                       id="si3"/>
    </af:selectOneChoice>
    ...but I cannot include all the data returned by the web service so I used the logic below to filter my data with the assistance of a managed bean.
    <af:selectOneChoice value="#{bindings.codeList.inputValue}"
                      label="Code">
        <f:selectItems value="#{pageFlowScope.myBean.codeTemplates}"
                       id="si3"/>
    </af:selectOneChoice>
    public class MyBean{
        private List<SelectItem> codeList;
        public List<SelectItem> getCodeTemplates(){
            if(codeList==null){
                codeList = new ArrayList<SelectItem>();
                    More Codes and logic..access the iterator and filter the data
                    Data below comes from the web service data control..
                    codeList.add(new SelectItem("90", "Crew"));
                    codeList.add(new SelectItem("91", "Manager"));
                    codeList.add(new SelectItem("94", "Staff"));
                //set the value to the first item in the list
                getBindings().setValue("#{bindings.codeList.inputValue}", 90);
            return codeList;
    My problem is that on first load of the page, I am encountering this problem.
    Could not find selected item matching value "90"  in RichSelectOneChoice.
    I know I can used the value property of my selectonechoice into my managed bean but I dont want to do that for now.
    I have set the valuePassThru property also but it does not help also.  The unselectedLabel is of no use since I dont want that to reflect at all.
    I am just not sure why I cannot set the value of my bindings given the code snippet above.
    #{bindings.codeList.inputValue} is a listBinding defined in my page definition.
    Any hints?

    Hi Frank,
    FrankNimphius wrote:
    Hi,
    did you ensure 90 is in the list and that its of the same data type?
    Frank
    Yes, I haved checked it.  To verify, I set the valuePassThru property to true and then in the generated markup, I used firebug to verify if the value is indeed set to 90.
    If I set the valuePassThru to false then the index value 0,1,2...n is assigned.
    I am doing this during onload operation and using lazy loading of the list.  I have set the immediate attribute as well but still not successful.
    JDEV 11G 11.1.1.7

  • Cannot set up certs for trusted CAs going from 1.4.2_03 to 1.4.2_13

    Getting a wierd issue with "Cannot set up certs for trusted CAs" This works if we are using anything less then 1.4.2_07, but the minute we install 1.4.2_07 or 13 as the case may be we get the following Exception:
    log9: java.lang.ExceptionInInitializerError
    log9: at javax.crypto.Cipher.a(DashoA12275)
    log9: at javax.crypto.Cipher.getInstance(DashoA12275)
    log9: at com.gm.gwm.common.util.AesUtil.encrypt(AesUtil.java:31)
    log9: at com.gm.gwm.common.data.OfflineAuthenticatorDao.updatePassword(OfflineAuthenticatorDao.java:645)
    log9: at com.gm.gwm.common.service.OfflineAuthenticatorService.updatePassword(OfflineAuthenticatorService.java:141)
    log9: at main.jspService(_main.java:156)
    log9: at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    log9: at oracle.lite.web.JupServlet.service(Unknown Source)
    log9: at oracle.lite.web.JspRunner.service(Unknown Source)
    log9: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    log9: at oracle.lite.web.JupServlet.service(Unknown Source)
    log9: at oracle.lite.web.MimeServletHandler.handle(Unknown Source)
    log9: at oracle.lite.web.JupApplication.handle(Unknown Source)
    log9: at oracle.lite.web.JupApplication.service(Unknown Source)
    log9: at oracle.lite.web.JupHandler.handle(Unknown Source)
    log9: at oracle.lite.web.HTTPServer.process(Unknown Source)
    log9: at oracle.lite.web.HTTPServer.handleRequest(Unknown Source)
    log9: at oracle.lite.web.JupServer.handle(Unknown Source)
    log9: at oracle.lite.web.SocketListener.process(Unknown Source)
    log9: at oracle.lite.web.ClientListener.process(Unknown Source)
    log9: at oracle.lite.web.SocketListener$ReqHandler.run(Unknown Source)
    log9: Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    log9: at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
    log9: ... 21 more
    log9: Caused by: java.lang.IllegalStateException: Already connected
    log9: at java.net.URLConnection.setUseCaches(Unknown Source)
    log9: at sun.net.www.protocol.jar.JarURLConnection.setUseCaches(Unknown Source)
    log9: at javax.crypto.SunJCE_d.a(DashoA12275)
    log9: at javax.crypto.SunJCE_b.g(DashoA12275)
    log9: at javax.crypto.SunJCE_b.f(DashoA12275)
    log9: at javax.crypto.SunJCE_t.run(DashoA12275)
    log9: at java.security.AccessController.doPrivileged(Native Method)
    Not sure what we are doing wrong.
        public static String encrypt(String value) throws AesException {
              try {
                   SecretKeySpec secKeySpec = new SecretKeySpec(fromHexString(encyptKey), algorithm);
                   Provider provider = new SunJCE();
                  Security.addProvider(provider);
                Cipher cipher = Cipher.getInstance(algorithm, provider);
                   cipher.init(Cipher.ENCRYPT_MODE, secKeySpec);
                   byte[] encryptedBytes = cipher.doFinal(value.getBytes());
                   return toHexString(encryptedBytes);
              } catch (Exception e) {
                   throw new AesException(e);
         }

    I added that late just in case, for some strange reason, the provider wasn't getting picked up.
    Here is the list of available providers:
    log9: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore
    ; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores)
    log9: Sun JSSE provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
    log9: SUN's provider for RSA signatures
    log9: SunJCE Provider (implements DES, Triple DES, AES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    log9: Sun (Kerberos v5)
    log9: java.lang.ExceptionInInitializerError
    The minute I rollback to an older JVM this works.

  • How to set a default values on fields

    Hi !
    using Jdeveloper:11.1.1.4.0
    ADF Business Components     11.1.1.59.23
    Jsp page
    I want to set a default Date value in the field (in search form) How to do this ? Img priview [http://tinypic.com/r/zjhuf9/6]
    The default value need to be one week older that today priview Default value: 07.08.2012 (14.08.2012:Today)
    and a user cannot change that value
    I am newbie in ADF and Java so some usefull links can be posted to
    ID

    Hi,
    Adding default value for the attribute would work for the new rows that are created. If you want to have that in the search field, you need to set the default value for the bind variable which you are using in your View Criteria. The blog i've posted serves exact same usecase as yours.
    -Arun

  • IAM-3056160:Modify User Profile request cannot set or change attribute Job Code, since it is not defined in the corresponding data set.

    I am trying to modify the value of the field "Job Code" through API I am getting the following error.(OIM11gr2). I do not get this error when updating the other fields. There is a field by the name USR_JOB_CODE in the database. When I poked around I found that there is no Job Code field in the User Form. Any ideas?
    IAM-3056160:Modify User Profile request cannot set or change attribute Job Code, since it is not defined in the corresponding data set.:Modify User Profile:Job Code
    oracle.iam.identity.exception.ValidationFailedException: IAM-3056160:Modify User Profile request cannot set or change attribute Job Code, since it is not defined in the corresponding data set.:Modify User Profile:Job Code
           at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
           at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
           at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
           at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_1036_WLStub.modifyx(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
           at $Proxy2.modifyx(Unknown Source)
           at oracle.iam.identity.usermgmt.api.UserManagerDelegate.modify(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke

    THanks for your reply. Here is the snippet from User.xml that contains info about job code.
    <entity-attribute>Job Code</entity-attribute>
    <target-field>usr_job_code</target-field>
    <field name="usr_job_code">
    <type>string</type>
    <required>false</required>
    </field>
    <attribute name="Job Code">
    <type>string</type>
    <required>false</required>
    <searchable>true</searchable>
    <multi-valued>false</multi-valued>
    <MLS>false</MLS>
    <multi-represented>false</multi-represented>
    <attribute-group>Basic</attribute-group>
    <metadata-attachment>
    <metadata>
    <name>multi-valued</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>user-searchable</name>
    <value>true</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>category</name>
    <value>Preferences</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>bulk-updatable</name>
    <value>true</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>read-only</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>visible</name>
    <value>true</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>encryption</name>
    <value>CLEAR</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>display-type</name>
    <value>TEXT</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>system-controlled</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>max-size</name>
    <value>512</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>custom</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    </metadata-attachment>
    </attribute>
    I am able to retrieve the value of the Job Code attribute without any problem with the following code.
    System.out.println("JOB Code: "+user.getAttribute("Job Code"));

Maybe you are looking for

  • Thunar : mounting USB drive in multi-seat environment

    I recently bought a WD usb hard drive. When I login under my account I can see in thunar the partitions I defined on this drive and I can mount and access them. When I logout (no reboot) and login under another account on that PC, I cannot see those

  • Need help for a friend with setting up their bb email

    I have a bb bold and never had any trouble setting up my email. But, my friend is having trouble with her's.  She is on Verizon and was able to set up the email so that she could receive emails but, she's not able to send out going messages to everyo

  • Apache: error while loading shared libraries

    linux:/opt/tarantella/bin # ./tarantella security start - linux.site: Enabled secure connections. linux:/opt/tarantella/bin # linux:/opt/tarantella/bin # ./tarantella webserver restart --ssl Stopping Tomcat servlet container... Using CLASSPATH: /opt/

  • Exceptions while generating reports

    Hi, We are facing a problem while exporting the reports in PDF/RTF format. find below the errors messages displayed Error   Can't connect to CRXI window server using 'WNCSUSHCLIN0110.ncsbe.eu.jnj.com:0.0 as the value of the DISPLAY variable' and for

  • Firefox doesn't detect that an update is available.

    On a particular PC I am using (Windows 7), I have Firefox 34.0 installed. The About Mozilla Firefox dialog shows that I have version "34.0" installed, and indicates that "Firefox is up to date." However, on another PC, also running Windows 7, I have