Forms 10g only one item allowed to have a value

Hi all,
I was wondering. What is the best way to make sure that only one of my items has a value? I have a couple of textboxes with different meaning but want to restrict the user to only be available to fill in one of them.
I suppose the best thing would be to disable the other items as soon as he starts to write in one of them.
Are there any builtins for this behaviour or should I add some clever code to every items event (which one?)
Regards
Stefan

You can enable/disable or set update allowed properties of other fields on WHEN-VALIDATE-ITEM trigger. If user enters anything in the the field, then disable other fields otherwise enable.
If you have many items which needs this kind of behaviour work then you might consider (with caution) of putting the trigger on block level, otherwise you have to code it on all items.
WHEN-VALIDATE-ITEM trigger on BLOCK3.TEXT_ITEM4
IF :BLOCK3.TEXT_ITEM4 IS NOT NULL THEN
  SET_ITEM_PROPERTY('BLOCK3.TEXT_ITEM5', ENABLED, PROPERTY_FALSE);
ELSE
  SET_ITEM_PROPERTY('BLOCK3.TEXT_ITEM5', ENABLED, PROPERTY_TRUE);
END IF;

Similar Messages

  • Need validation that ensures only one item has a value.

    Hello,
    I need a validation that ensures that only one item has a value. I want to allow a person entering information into a form to have the option to either select from a drop-down or enter something into a text box but not both.
    I have found some information about validation of this type but I'm not sure how to use it. Here is what I found:
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This validation ensures that only one item (ITEM_1, ITEM_2) has a value.
    Example 5:
    Assume a function similar to the following exists:
    create or replace function sampleValidation (p_arg in varchar2) return boolean
    as
    begin
    if p_arg= '1' then
    return true;
    else
    return false;
    end if;
    end;
    A validation of type PL/SQL Expression could then reference this function returning a boolean using the following syntax:
    sampleValidation(v('MY_ITEM'))
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Please let me know how to implement this or give me another way to validate.
    Thanks
    Linda

    Linda,
    The best is to use a Validation of type PL/SQL Function Returning Error Text like this:
    BEGIN
       IF :p1_item_1 IS NULL AND :p1_item_2 IS NULL
       THEN
          RETURN 'One of the items must have a value.';
       ELSIF :p1_item_1 IS NOT NULL AND :p1_item_2 IS NOT NULL
       THEN
          RETURN 'Only one of the items must have a value.';
       END IF;
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Display in "Oracle Forms 10g" a BLOB item

    Hey, anybody know if there was any java component or a way to display in "Oracle Forms 10g" a BLOB item, which contains no images, but files of type PDF, DOC, TXT ....
    Thank you

    <p>The Enhanced HTML browser bean allows showing amost everything in its window. See this screen shot</p>
    So you could download your stored document onto the AS or the client with the Webutil FILE_TRANSFERT package, or you could envisage top develop
    a nice PL/SQL procedure that would send the content via the UTL_HTTP package.
    Francois

  • 9506, Only one operation allowed at any instance

    Device manager
    Make any chances to a port IE enable, label, etc.., click on Admin, Click on save configuration, Prompt-Really save running to startup configuration? Select yes, receive a message, snmpd: another copy operation in progress. Only one operation allowed at any instance - IP address ccCopyEntryRowStatus.183228284. It only gives you the option to cancel. I select cancel, when I try to exit device manager, it prompts me to save again, I click cancel, when I return to the Device manager, the setting are correct, in other words, if I enabled a port and says its failed on saving, it did save it as enabled. I have two SAN switches, this only happens with one every time, the same one. How do I fix this?

    Sh Cfs Lock, nothing
    Zone Merge Analysis
    MONMDS01 is VSAN100, MONMDS02 VSAN101
    Results
    VSAN 1 Active Zoneset Merge Report for MONMDS01 and MONMDS02
    MONMDS01 has no active zoneset on VSAN 1
    VSAN 100 Active Zoneset Merge Report for MONMDS01 and MONMDS02
    MONMDS02 has no active zoneset on VSAN 100
    VSAN 101 Active Zoneset Merge Report for MONMDS01 and MONMDS02
    MONMDS01 has no active zoneset on VSAN 101
    VSAN 1 Active Zoneset Merge Report for MONMDS02 and MONMDS01
    MONMDS02 has no active zoneset on VSAN 1
    VSAN 100 Active Zoneset Merge Report for MONMDS02 and MONMDS01
    MONMDS02 has no active zoneset on VSAN 100
    VSAN 101 Active Zoneset Merge Report for MONMDS02 and MONMDS01
    MONMDS01 has no active zoneset on VSAN 101

  • Delivery group 000 consists of only one item

    Hi All,
    I've the following issue(s):
    Customer Master is set with "Complete delivery required by law" flag.
    Partial Delivery per item = B.
    Max. Partial deliveries = 1.
    However, when I create an SO for this customer: then in the SO, the complete delivery flag is not set.
    Also, i get the msg: "Delivery group 000 consists of only one item".
    I checked the item category in VOV7, no delivery grp flag set.
    Please help me with both issues.
    Regards,
    Raghu.

    Dear,
    For complete deliver select - C  (Only complete delivery allowed),in customer master,
    Then in sales order it will appear with tick mark, and when you creating delivery & if you change delivery quantity then system will popup dialog box, saying complete delivery required.
    Delivery group (items are delivered together)
    A combination of items that should be delivered together.
    Use
    The system uses delivery groups to check the availability of items that should be delivered together. The delivery date of the latest schedule line in the delivery group is taken as the general date for the whole group.
    Procedure
    During sales order processing, you can enter a number (up to three digits) that identifies a delivery group. The number is freely definable.
    Regards,
    kapil
    Edited by: Kapildev Farakte on Nov 18, 2009 11:33 AM

  • Selecting from Combobox with only one item

    I'm populating Comboboxes based on selections from other
    comboboxes. I pick up the selection with the 'change' trigger,
    however when you select the top item or if there is only one item,
    the change route doesn't work. So I tried to use the 'click' and
    even the 'close' triggers instead, but they give me an errors when
    I try to access the companion ArrayCollections which hold the IDs
    for the items in the list (as commented in the code). Any ideas how
    to get this to update with just one selection?
    <!-- The first three comboboxes populate the next one in
    the list in a 'drilldown' approach -->
    <mx:ComboBox minWidth="130" maxWidth="130" id="selectSys"
    dataProvider="{sysOps.lastResult.system.data}"
    change="fillComboBox(selectSys, selectSub, 'subsystem',
    subOps, sysIDs, 1)" rowCount="10" />
    <mx:ComboBox minWidth="130" maxWidth="130" id="selectSub"
    dataProvider="{subOps.lastResult.system.data}"
    change="fillComboBox(selectSub, selectDev, 'devices',
    devOps, subIDs, 2)"/>
    <mx:HTTPService id="sysOps" useProxy="false" method="GET"
    result="sysIDs = sysOps.lastResult.system.id as
    ArrayCollection;"
    fault="mx.core.Application.application.handleFault(event);"
    url="
    http://localhost:8080/TomCustodes/rocket"/>
    <mx:HTTPService id="subOps" useProxy="false" method="GET"
    result="subIDs = subOps.lastResult.system.id as
    ArrayCollection;"
    fault="mx.core.Application.application.handleFault(event);"
    url="
    http://localhost:8080/TomCustodes/rocket"/>
    // fill destination combobox based on selection from src
    combobox
    public function fillComboBox(src:ComboBox, dest:ComboBox,
    type:String,
    serv:HTTPService, idArray:ArrayCollection, element:int) :
    void {
    // choose ID from the associated ID array with the same
    selecetedIndex
    // error occurs as the idArray ArrayCollection comes up as
    null
    var selectedID:String = idArray.getItemAt(src.selectedIndex)
    as String;
    var params:Object = {};
    params[type] = type;
    var arg:String = "arg";
    var argList:Array = new Array();
    if (element > 1) {
    var ind:int = selectSys.selectedIndex;
    var sysName:String = sysIDs.getItemAt(ind) as String;
    argList.push(sysName);
    if (element > 2) {
    ind = selectSub.selectedIndex;
    var subName:String = subIDs.getItemAt(ind) as String;
    argList.push(subName);
    argList.push(selectedID);
    params[arg] = argList;
    serv.send(params);
    Thanks!

    I think the way I would go about that is having a result
    function for the HTTPServices and set your array collections how
    you are. Then after they are set I would check to see if the length
    == 1 and if it does then recall your fillComboBox method for the
    next combo box since there isn't a way for the user to change the
    combo box they might as well have the next one already filled out.
    The other approach you could take is after you set your array
    collection to your result add dummy items via
    myAC.addItemAt({label:"Choose one"}, 0); This will ensure the user
    always has an item to change to.

  • Calendar Invitation - Only one organizer allowed in scheduling object resource

    Hello everybody,
    Server is Mac OS 10.8.5 with Server.app 2.2.2
    One User is creating an event and is inviting other colleagues and is setting the Place to "xyz".
    When the users are getting the invitation in iCal a error message "CalDAVWriteEntityQueueableOperation" is coming up, with "ignoring", "back to server" etc ...
    When having a look at the Client Error log this shows up:
    07.11.13 10:06:32,219 CalendarAgent[197]: [com.apple.calendar.store.log.caldav.queue] [Operation [<CalDAVWriteEntityQueueableOperation: 0x7fe7194dd450; Sequence: 1522>] was forbidden, server reason: [[<CoreDAVErrorItem: 0x7fe7190e20e0>]: DAV:error]
    <?xml version="1.0" encoding="UTF-8"?>
    <A:error xmlns:A="DAV:">
    <B:single-organizer xmlns:B="urn:ietf:params:xml:ns:caldav"/>
    <F:error-description xmlns:F="http://twistedmatrix.com/xml_namespace/dav/">Only one organizer allowed in scheduling object resource</F:error-description>
    </A:error>
    Someone an idea why it says "Only one organizer allowed in scheduling object resource" ? The place for the meeting isn't a resource that's created in the Server.app, instead it's a free word.
    The attendees shouldn't get that error about a resource or am I missunderstand something?

    Hi Sascha,
    From your description, I would like to verify if you grant users some permissions (such as Editor, Owner) some days or weeks ago when they can directly book resource meeting in OWA. If yes, please check whether these permissions are there after Exchange
    upgrading.
    I have some tests in my environment using Exchange 2010 with Outlook 2010. If I don't grant amy01 any permission to room mailbox's calendar, I can book resource meeting directly on Outlook but not in OWA.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Need programming help: Three Items selected, only one item displays.

    All the code is below.
    My client has a beach-wear website. It is VERY simple with three pages: Index, Order, and Invoice Page. If customers select the checkbox in front of three items, only one item is displayed on the invoice page. Why aren't all three displayed? I am new to programming:
    //INDEX PAGE:
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <form name="form1" method="get" action="jserv/Search.jsp">
    <table width="52%" border="1">
    <tr>
    <td width="20%">Enter Color:</td>
    <td width="80%">
    <input type="text" name="txtColor" size="30" maxlength="20">
    </td>
    </tr>
    </table>
    <p>
    <input type="submit" name="Submit" value="Color">
    </p>
    </form>
    <p> </p>
    //SEARCH PAGE:
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varColor = "%";
    if (request.getParameter ("txtColor") !=null) {rsBeachwear__varColor = (String)request.getParameter ("txtColor");}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    PreparedStatement StatementrsBeachwear = ConnrsBeachwear.prepareStatement("SELECT ID, Item, Color, Size FROM Beachwear WHERE Color LIKE '%" + rsBeachwear__varColor + "%';");
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    boolean rsBeachwear_isEmpty = !rsBeachwear.next();
    boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
    Object rsBeachwear_data;
    int rsBeachwear_numRows = 0;
    %>
    <%
    int Repeat1__numRows = 10;
    int Repeat1__index = 0;
    rsBeachwear_numRows += Repeat1__numRows;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> 
    <form name="form2" method="post" action="Invoice.jsp">
    <table width="75%" border="1">
    <% while ((rsBeachwear_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <tr>
    <td width="18%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="20%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="21%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="5%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="16%">
    <input type="checkbox" name="valueCheckbox" value="<%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%>">
    </td>
    </tr>
    <%
    Repeat1__index++;
    rsBeachwear_hasData = rsBeachwear.next();
    %>
    </table>
    <p>
    <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>
    //INVOICE PAGE:
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varCheckbox = "1";
    if (request.getParameter ("valueCheckbox") !=null) {rsBeachwear__varCheckbox = (String)request.getParameter ("valueCheckbox")   ;}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    PreparedStatement StatementrsBeachwear = ConnrsBeachwear.prepareStatement("SELECT ID, Item, Color, Size FROM Beachwear WHERE ID IN (" + rsBeachwear__varCheckbox + ")");
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    boolean rsBeachwear_isEmpty = !rsBeachwear.next();
    boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
    Object rsBeachwear_data;
    int rsBeachwear_numRows = 0;
    %>
    <%
    int Repeat1__numRows = 10;
    int Repeat1__index = 0;
    rsBeachwear_numRows += Repeat1__numRows;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> 
    <p><br>
    INVOICE<br>
    <br>
    </p>
    <table width="75%" border="1">
    <% while ((rsBeachwear_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <tr>
    <td width="18%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="20%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="21%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="5%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <%
    Repeat1__index++;
    rsBeachwear_hasData = rsBeachwear.next();
    %>
    </table>
    <p>  </p>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>

    Hi, Brad,
    I appreciate your help! I am a beginning Java student, so this code is more complex than what I can handle alone.
    A copy of the compilation error is at the very bottom of this message.
    I added " int chkValues[]; " to the beginning of your code, and then inserted the whole code snippet to the detail (Invoice) page as shown:
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varCheckbox = "1";
    if (request.getParameter ("valueCheckbox") !=null) {rsBeachwear__varCheckbox = (String)request.getParameter ("valueCheckbox")   ;}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    int chkValues[];
    StringBuffer prepStr=new StringBuffer("SELECT ID, Item, Color, Size FROM Beachwear WHERE ID=");
    for(int x=0;x<chkValues.length;++x){
    prepStr.append( chkValues[x] );//using an x instead of an i
    if((x+1)<chkValues.length){//another iteration
    prepStr.append(" OR ID=");
    }//end if
    }//end for loop
    PreparedStatement StatementrsBeachwear = ConnrsBeachwear.preparedStatement(prepStr);
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    boolean rsBeachwear_isEmpty = !rsBeachwear.next();
    boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
    Object rsBeachwear_data;
    int rsBeachwear_numRows = 0;
    %>
    <%
    int Repeat1__numRows = -1;
    int Repeat1__index = 0;
    rsBeachwear_numRows += Repeat1__numRows;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> 
    <form name="form1" method="post" action="">
    <p><br>
    INVOICE<br>
    <br>
    </p>
    <% while ((rsBeachwear_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <table width="75%" border="1">
    <tr>
    <td width="13%">ID:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">ITEM:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">COLOR:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">SIZE:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    </table>
    <%
    Repeat1__index++;
    rsBeachwear_hasData = rsBeachwear.next();
    %>
    <p>  </p>
    </form>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>
    ERROR:
    500 Internal Server Error
    /jserv/Invoice.jsp:
    Compilation error occured:
    Found 1 errors in JSP file:
    C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice.jsp:27: Error: No method named "preparedStatement" was found in type "java/sql/Connection".
    allaire.jrun.scripting.DefaultCFE:
    Errors reported by compiler:C:/Program Files/Allaire/JRun/servers/default/default-app/WEB-INF/jsp/jrun__jserv__Invoice2ejsp12.java:82:42:82:83: Error: No method named "preparedStatement" was found in type "java/sql/Connection".
         at allaire.jrun.scripting.JavaCompilerService.compile(../scripting/JavaCompilerService.java:96)

  • Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail acct? I don't want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts on my gmail as I'll only use it as a back-up 4 my IPhone contacts.

    Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail account? I do not want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts & 0 calendar events on my gmail account. I opened the Gmail account specifically to for the Google Sync and wil only be using this account as a back-up for my IPhone contacts. Please Help!!

    You do realize that the SIM only contains account information for your wireless account.
    Moving the SIM from phone to phone does not cause any of your iTunes content, contacts, email, etc to magically appear on the device.

  • PR created by MRP only one item each PR

    Hi Gurus,
    I ran MRP using T-Code MD01. Running succesful. But when I check PR created only had one material each PR, so too many PR Created in the system.
    The requirement is How can we run MRP then PR created in lot (each PR has many items) ? I've set in configuration (T-code: OMI8) to specify items in each PR created. But still only one items material each PR created.
    Any suggestion ?
    Regards,
    Tri W

    Hi Tri,
    This is standard SAP behaviour and you cannot change it as per my best knowledge.
    When you create PO you can convert several PR into one PO. You can even convert several PR into one PO item (as separate schedlue lines provided vendor, material, etc are the same).
    (PR is only for internal use,)
    Regards,
    Csaba

  • I just scyned my music and lost half of it....only new items seem to have remained...What did I do?

    I just scyned my music and lost half of it....only new items seem to have remained...What did I do?

    Connect the device to iTunes.
    Select the content desired to be on the device.
    Sync.

  • TableSelectMany selects only and only one item !!!

    this is my table source ...
    i select multiple items.but in back_bean code .set return only one item.
    <af:table value="#{bindings.GenfunctionsView1.collectionModel}"
    var="row" rows="#{bindings.GenfunctionsView1.rangeSize}"
    first="#{bindings.GenfunctionsView1.rangeStart}"
    emptyText="#{bindings.GenfunctionsView1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    binding="#{backing_ManySelection.table1}" id="table1"
    banding="none">
    <af:column sortProperty="Id" sortable="false"
    headerText="#{bindings.GenfunctionsView1.labels.Id}"
    binding="#{backing_ManySelection.column1}" id="column1">
    <af:inputText value="#{row.Id}"
    required="#{bindings.GenfunctionsView1.attrDefs.Id.mandatory}"
    columns="#{bindings.GenfunctionsView1.attrHints.Id.displayWidth}"
    binding="#{backing_ManySelection.inputText1}"
    id="inputText1">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.GenfunctionsView1.formats.Id}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="Functionname" sortable="false"
    headerText="#{bindings.GenfunctionsView1.labels.Functionname}"
    binding="#{backing_ManySelection.column2}" id="column2">
    <af:inputText value="#{row.Functionname}" simple="true"
    required="#{bindings.GenfunctionsView1.attrDefs.Functionname.mandatory}"
    columns="#{bindings.GenfunctionsView1.attrHints.Functionname.displayWidth}"
    binding="#{backing_ManySelection.inputText2}"
    id="inputText2"/>
    </af:column>
    <af:column sortProperty="Functionformula" sortable="false"
    headerText="#{bindings.GenfunctionsView1.labels.Functionformula}"
    binding="#{backing_ManySelection.column3}" id="column3">
    <af:inputText value="#{row.Functionformula}" simple="true"
    required="#{bindings.GenfunctionsView1.attrDefs.Functionformula.mandatory}"
    columns="#{bindings.GenfunctionsView1.attrHints.Functionformula.displayWidth}"
    binding="#{backing_ManySelection.inputText3}"
    id="inputText3"/>
    </af:column>
    <f:facet name="selection">
    <af:tableSelectMany text="Select items and ..."
    binding="#{backing_ManySelection.tableSelectMany1}"
    id="tableSelectMany1" required="true">
    <af:commandButton text="commandButton 1"
    binding="#{backing_ManySelection.commandButton1}"
    id="commandButton1"
    action="#{backing_ManySelection.commandButton1_action}"
    immediate="true" partialSubmit="true"/>
    </af:tableSelectMany>
    </f:facet>
    </af:table>
    public String commandButton1_action() {
    // Add event code here...
    Set KeySet=null;
    KeySet=getTable1().getSelectionState().getKeySet();
    System.out.println("KeySet Rows="+KeySet.size());
    return null;
    plz help me!

    Hi,
    create a SelectionListener on the table to pint to the following method in a managed bean
    public void SelectionLister(SelectionEvent selectionEvent) {
    int selectedKeysSize = selectionEvent.getSelectedKeys().getSize();
    Frank

  • The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.

    Hello. I added custom http response headers to my SP site web config file as follows: 
    <httpProtocol>
          <customHeaders>
                 <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
          <add name="Access-Control-Allow-Origin" value="*" />
          <add name="Access-Control-Allow-Headers" value="Content-Type,Authorization" />
          </customHeaders>
        </httpProtocol>
    When I try to call any web service, i get these headers two times each: 
    HTTP/1.1 200 OK
    Cache-Control: private, max-age=0
    Transfer-Encoding: chunked
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    Expires: Sat, 01 Mar 2014 19:11:37 GMT
    Last-Modified: Sun, 16 Mar 2014 19:11:37 GMT
    ETag: "3"
    X-SharePointHealthScore: 0
    SPClientServiceRequestDuration: 20
    SPRequestGuid: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    request-id: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    X-FRAME-OPTIONS: SAMEORIGIN
    Persistent-Auth: true
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    MicrosoftSharePointTeamServices: 15.0.0.4569
    Date: Sun, 16 Mar 2014 19:11:37 GMT
    and that gives me error from ajax: The 'Access-Control-Allow-Origin'
    header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.
    The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
     Origin 'null' is therefore not allowed access.
    Any idea???

    Hi Ann,
    Please check whether there are duplicate custom headers in your code.
    Similar issue for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/b79b75f4-b46b-46ae-ae29-17a352b6b90b/custom-http-response-headers-for-sp-2013-shown-2-times?forum=sharepointdevelopment 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • I have only one ID, but I have different passwords for my iPhone and iPad. How to fix that?

    I have only one ID, but I have different passwords for my iPhone and iPad. How to fix that?

    Hi Cristigil,
    Are you talking about your lock screen passcode? If so, go into Settings>General>Passcode Lock, and Change one of your Passcodes to match the other.
    Hope this helps!
    Cheers,
    GB

  • How to query on a single row form using only one page

    Hi APEX experts, I am just a beginner in apex and I face several problems on development. Despite that the forum helps me a lot and your answers to other people are valuable , I have stacked into something. Could you please someone tell me : if there is a way to define a single row form page based on table in which I could query and update without using a tabular page (to call the single row form). I want only to use only one page. Does APEX has this functionality? Thank you very much?

    I haven't tried it, but I am going to guess that yes it's possible (or if I were going to do this, this is what I'd try and I suspect it will work).
    If you take a moment and step back and look at what the wizard does when building a "form on a table with report", all it does is build two pages with page 1 (report overview with drill-down Edit button or link usually) calling page 2 (form) and setting the PK field on the page 2 form with an automated row fetch process and built-in DML processes. It's not that hard.
    Page 2 really doesn't care what the calling page was in order to query a single row; it just cares that ANY caller sets the primary key value for the ARF process to fetch a row. So I would just make page 2 call itself. This is what I'd do (and you might have to fine-tune little things that I might not have forseen but I think this will work).
    For the sake of example, let's say our table is PARTS and in it is a PART_ID, PART_NUMBER, PART_DESCRIPTION, PART_COST, etc. Assume PART_ID is the primary key and sequentially assigned by the DB in a trigger and is functionally meaningless to the user and is for PK purposes only. Let's assume PART_NUMBER is a unique key (although not the PK) by which the user will "know" a unique row (since the PK of PART_ID is more internal and not meaningful to the user). Assume PART_DESCRIPTION, PART_COST, etc. are just attributes.
    1. Use the wizard and build a "form on a table with report". This is just to get the handy dandy ARF process and DML processes, validations, etc. all generated for you. Let's assume the report page is Page 1 and the form is Page 2.
    2. When done, delete the report page entirely (so delete page 1).
    3. Edit the form page (page 2) and change any branch references from the nonexistent page 1 to now be page 2.
    Now here's the part where something has to set the internal P2_PART_ID field when page 2 is run. So why not set it from itself from something the user will uniquely enter?
    4. Create a P2_PART_NUMBER_FETCH item (text item is fine or if you want a LOV or whatever that's good too....whatever works. For clarity, you might even want to create a separate "search" or "query" region separate and above your existing form region to set this field apart visually so users know it's a search field. Source for this field should be "only when current value in session state is null".
    5. Created some sort of "GO" button to go along with the P2_PART_NUMBER_FETCH field.
    6. Make sure none of your existing post-submit processes fire when GO is pressed (edit all of the computations and validations and processes and ensure that they have conditions such that they do not fire when the submit value is "GO", so like a PL/SQL expression and set to v('REQUEST')<> 'GO').
    7. Add a new validation to your page that only fires when GO is pressed. Have it validate only when GO is pressed. Have it validate that P2_PART_NUMBER_FETCH is not null.
    8. Add a new PL/SQL process to your post-submit processing that only fires when GO is pressed. Have it look up to the database based on P2_PART_NUMBER_FETCH and get the PART_ID that corresponds to the part number the user entered and set the part number, something like this (even better for style and reusability if you embed this in a DB package function and call it):
    SELECT part_id
    INTO :P2_PART_ID
    FROM PARTS
    WHERE PART_NUMBER = :P2_PART_NUMBER_FETCH;
    9. Not sure if the branches that were generated will suffice for this (might need to add a new one...review what you have and see) but the bottom line is that the page should branch to itself (page 2) and not clear the cache.
    10. When the page repaints, since :P2_PART_ID is now populated in session state (again, page 2 should not care how it got populated...only should care that it did get populated by anything (including itself)), the automated row fetch (ARF) should fire and query up the row from the database for editing.

Maybe you are looking for

  • Using a tv as a mirror display

    I have an 09 Imac , no thunderbolt display port , I,ve set up an HDMI cable to my new tv. I can mirror my desk top but I can't get the upper tool bar to show up how do I fix this .I also have black lines on the left and right sides of the tv can I st

  • Content 6.1 and edk 5.2

    Hi all, I've got several questions : 1/ I've upgraded Content server from version 6.0 to version 6.1. I use some templates which publish content in jsp files, with some java imports. It used to work before but now it doesn't. My error message is"Pack

  • Batch program in PCUI Portal

    Hello All, We have a requirement to build up a batch program that will display the unapproved opportunities to the user in a list. Each line in this list shall be a URL, clicking on which will open up the opportunity details. The user will have an op

  • Iphone keeps repeating the same track

    the iphone keeps repeating the same track,  have checked all the settings but can't seem to find any thing thats not set correct.

  • Elements11

    Is there a way to shut off or move the confirm reject button in elements 11 when adding text? The Icon gets in the way when adding text to the bottom of a photo.