Choice Group Problems

aft I add the items to the choice group.. When I use isSelected(0) == true --> to delete the particular item but it will prompt me indexarrayoutofbound.. wat happen?
else if(c == confirm  && s == purForm)
      if(cgp.isSelected(0) == true)
       confirmForm.append("1st item on the purchase list: " + 1);
      if(cgp.isSelected(1) == true)
        confirmForm.append("2nd item on the purchase list: " + cgp.getSelectedIndex());
      if(cgp.getSelectedIndex() == 2)
        cgp.delete(2);
      if(cgp.getSelectedIndex() == 3)
        cgp.delete(3);
      if(cgp.getSelectedIndex() == 4)
        cgp.delete(4);
      if(cgp.getSelectedIndex() == 5)
        cgp.delete(5);
      if(cgp.getSelectedIndex() == 6)
        cgp.delete(6);
      if(cgp.getSelectedIndex() == 7)
        cgp.delete(7);
      if(cgp.getSelectedIndex() == 8)
        cgp.delete(8);
      if(cgp.getSelectedIndex() == 9)
        cgp.delete(9);
      if(cgp.getSelectedIndex() == 10)
        cgp.delete(10);
      if(cgp.getSelectedIndex() == 11)
        cgp.delete(11);
      if(cgp.getSelectedIndex() == 12)
        cgp.delete(12);
      createConfirmForm();
      display.setCurrent(confirmForm);
    }can someone help me please... Thankz alot...

aft I add the items to the choice group.. When I use isSelected(0) == true --> to delete the particular item but it will prompt me indexarrayoutofbound.. wat happen?
else if(c == confirm  && s == purForm)
      if(cgp.isSelected(0) == true)
       confirmForm.append("1st item on the purchase list: " + 1);
      if(cgp.isSelected(1) == true)
        confirmForm.append("2nd item on the purchase list: " + cgp.getSelectedIndex());
      if(cgp.getSelectedIndex() == 2)
        cgp.delete(2);
      if(cgp.getSelectedIndex() == 3)
        cgp.delete(3);
      if(cgp.getSelectedIndex() == 4)
        cgp.delete(4);
      if(cgp.getSelectedIndex() == 5)
        cgp.delete(5);
      if(cgp.getSelectedIndex() == 6)
        cgp.delete(6);
      if(cgp.getSelectedIndex() == 7)
        cgp.delete(7);
      if(cgp.getSelectedIndex() == 8)
        cgp.delete(8);
      if(cgp.getSelectedIndex() == 9)
        cgp.delete(9);
      if(cgp.getSelectedIndex() == 10)
        cgp.delete(10);
      if(cgp.getSelectedIndex() == 11)
        cgp.delete(11);
      if(cgp.getSelectedIndex() == 12)
        cgp.delete(12);
      createConfirmForm();
      display.setCurrent(confirmForm);
    }can someone help me please... Thankz alot...

Similar Messages

  • Choice group problem

    Aft i add 25 items in the choice group..
    when i need to delete them, it will give me indexarrayoutofbounds.. How can i solve it? and wat is the max. size of the choice group?

    You can't use the ChoiceGroup on a Canvas. You'll have to make your own menu widget.
    Another option would be to display first the question on a form with a Command "Answers" and then when the Command is pressed you switch to a List (with List.IMPLICIT set as the type).
    shmoove

  • Problem using choice group

    I am developing a project on quiz.
    I have to show question and 4 options in one screen.also I want that the radio buttons(choice group)for the options should be selected by up down keys only.For using up down keys I have to extend canvas.if I extend canvas then how can I place my question and radio buttons?

    You can't use the ChoiceGroup on a Canvas. You'll have to make your own menu widget.
    Another option would be to display first the question on a form with a Command "Answers" and then when the Command is pressed you switch to a List (with List.IMPLICIT set as the type).
    shmoove

  • Report design Grouping problem

    I'm currently designing a report, something like an invoice. The invoice number is usually on the page header. But now i want to create a report to list down all the invoice numbers in the 'details' but when i drag the 'invoice number' data to 'details'
    it only show 1 row of numbers, wheareas the data has few rows of it. How can i make it view all my numbers? 

    Hi Eugene,
    Thank you for posting in MSDN forum.
    Since this forum is discuss the VS test issue, so
    I’m afraid that it is not the correct forum for this issue.
    As you said that the report design grouping problem, I suggest you could try to consult this issue directly to the VS Report Controls forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsreportcontrols , maybe you will get better support.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • UME Roles/Groups problem

    UME Roles/Groups problem
    I have installed an ABAP +J2EE instance with the view of using it for Adobe Document Services.
    While following the Adobe Document Services configuration guide, Step 3.2.1.1:
    I'm creating a role in the ABAP engine, creating a user (ADSUser); creating and assigning the role (ADSCallers) to it.
    When I start visual admin, i expect the user to be shown under the 'group': ADSCallers.
    While I can see the user in visual admin, I'm unable to see the group (role in ABAP instance)
    I'm on SP19 NW2004. Any views???

    There is a delay before roles show up as groups on the Java side. The delay runs about 30 minutes. See http://help.sap.com/saphelp_nw04s/helpdata/en/45/af3ac012d32e78e10000000a155369/frameset.htm
    -Michael

  • Cos-nonambig in xsd:choice group 'Unique Particle Attribution'

    Hello forum.
    I've following XSD specification:
    <?xml version="1.0" encoding="utf-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="data">
    <xsd:complexType>
    <xsd:choice>
    <xsd:group ref="elem1" />
    <xsd:group ref="elem2" />
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    <xsd:group name="elem1">
    <xsd:sequence>
    <xsd:element name="order_no" type="order_no_type" />
    <xsd:element name="someAttributeElem1">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1" />
    <xsd:pattern value="[^|=]*" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:group>
    <xsd:group name="elem2">
    <xsd:sequence>
    <xsd:element name="order_no" type="order_no_type" />
    <xsd:element name="someAttributeElem2" />
    </xsd:sequence>
    </xsd:group>
    <xsd:simpleType name="order_no_type">
    <xsd:restriction base="xsd:integer">
    <xsd:totalDigits value="8" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    on
    final SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    final Schema schema = factory.newSchema(xsd);
    i get the following exception
    org.xml.sax.SAXParseException: cos-nonambig: "":order_no and "":order_no (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.reportSchemaError(XSConstraints.java:315)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:463)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:530)
         at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:505)
    Possibly this is related to the following bug?
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4996456
    So from my point of view reading the W3C Spec, in a choice the group is
    distinct. So we should be able to use it like i did.
    Is the an solution or workaround provided by JAVA init self or can anybody
    tell me how to find an solution in an other JAVA library. I didn't work XML
    validation that often, but in the past I did use some of the Apache
    Frameworks. But as I can see in the error discription, Apache is already
    involved.
    Attention:
    The original XSD is more complicatated and shared by different programms
    in different Languages, C#, .Net, Navision. So, if there is no error in
    the XSD which will be handled by the other frameworks less strict or
    leniant, it will be complicated for to me to argue, that we have to change
    the XSD so that we can handle it in Java.
    TIA
    Holger

    Possibly this is related to the following bug?
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4996456
    Actually, as I read that bug (and I haven't gone back to the XSD spec to verify), it seems to say that the behavior you want is actually not valid -- the bug is that it would accept the choice with common first element and shouldn't have.
    This seems to be the sort of lookahead problem that affects most grammars: you can't differentiate between two productions without reading one or more following symbols. Parser generators usually have a way to let you say "lookahead N tokens for this next production," but I don't believe XSD has anything like that. And I can't imagine that it would, as the structure of XML would require an essentially infinite lookahead.
    But as I can see in the error discription, Apache is already involved.Yeah, the Sun JDK embeds Xerces and Xalan. To my knowledge, these two have pretty much taken over the Java parsing/transform space; there were some others (such as JDom), but they have pretty much been abandoned in terms of active development.
    The original XSD is more complicatated and shared by different programms
    in different Languages, C#, .Net, Navision. So, if there is no error in
    the XSD which will be handled by the other frameworks less strict or
    leniant, it will be complicated for to me to argue, that we have to change
    the XSD so that we can handle it in Java.Well, you could simply point out that this is a case of Don't Repeat Yourself: if you have multiple complexTypes that share the same elements, that those elements should be extracted out into a common containing type.
    But I think, if you read the spec carefully, you'll find that such structures are not permitted by XSD.

  • Need help in arranging choice group and textfield on screen

    Hi friends
    i want to display choice element (along with its text) and textfield(small one) in a single row.i want many such rows.
    i tried my best to do that.but couldent get as what i wished ,textfields comes down.
    Actually i want value inside textfield and name of the choice element when i click on any choice element,I did that functionality but only alignment is problem.
    if anyone has tried or any idea about how to get this alignment please let me know.

    you can achieve this fairly easily with group policy.
    create an OU and put your remote desktop servers in that OU.
    configure both user and computer policies in a group policy and link it to that ou.
    you need to enable loopback mode - you may want it in merge or replace depending on your other policies you have. Probably replace though I would guess. this is set in the computer configuration > admin templates > system / group policy section.
    now remove the policy you have currently setup for your users on the users OU containing the rdp users. If you want you can move these users back to your main users OU.
    when your users login to the RDP server the settings in the user section of the GPO linked to the RDP Servers OU will apply.
    when the user logs in to their own computer the policies from the user OU and computer OU will apply - but not the more restrictive RDP OU.
    hope that makes sense.
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

  • Ftp- and webserver setup, grouping problem

    Hello.
    I've got a server and installed cherokee and vsftpd as I thought it is a good choice to run a webserver with.
    I want to host a few domains and because of that I have to add certain ftp accounts so that they can upload stuff by themselves. Nothing new I am talking about.
    But my problem is how do I realize this best?
    cherokee runs as user `www` and group `www` as I read it is good to drop root previleges, which is basically even obvious.
    I created the needed users with a home directory in /home/www/$username because I thought this is a good place to keep the data files for the ftp account as well as the domain.
    But then a first problem occures. What if I grant more features to a certain user for example shell access. It would be nice if theres only one user name for each user and not user_ftp for ftp access, user_shell for shell access, etc. In order to archieve this I should put the files for ftp data into /home/username/ftp but vsftpd doesn't allow to change the ftp root directory to something other than the user's home directory or at least I don't know how to configure it.
    Is this solution not possible to realize in general or is it a problem of vsftpd (and I should run another ftp service) or is it just a lack of knowledge?
    Then further I noticed that every user can view other user's files because all files are owned by the group `users` and the chmod was something linke -rwxr-xr-x for the directories which isn't very secure. I thought: "Pah, easy to solve". Just change the chmod of each direcotory to -rwx------ as they're owned by the user. But then I realized that the webserver (www:www) cannot access the files anymore. "Bad luck", I thought, and changed the chmod of each file to -rw-r--- and made them being owned by the group `www`. "Very well", ran through my mind as all files and directories were owned by $user:www and have the "proper" chmod.
    But again vsftpd doesn't seem to like this. When I upload a file via ftp it creates a chmod like this:
    -rwx-------
    And the file is owned by $user:users. Pitty that this doesn't fit into my conecept. Well again there's the question if vsftpd causes the problem or I do.
    I mean, I'd like to set up a proper and secure web server but I don't know how to archieve it. Are my thoughts wrong or is vsftpd reaching its limits?
    I read through the vsftpd documentation but there was no solution to my problem.
    Is there a proper way to handle this or is it just a matter of opinion?
    What do you think is best?
    Thanks a lot.
    harlekin
    edit: I've already asked for help realting to a particluar problem of this post in this thread. I have to overread it or something. Sorry for that. : Is this the way to handle it or is it just a work-around. It seems to me as if it will run out of luck if my server becomes larger.

    I have also done port scans on my Airport Extreme N to ensure that the ports are open. They are.

  • Report based on a reord group - PROBLEM

    Using Reports Server / Forms/Reports 6i
    I am trying to run a report based on a record group on the web. It fails giving the error 'Cannot run report.'
    The report is called from a form and the record group is passed as a data parameter. It works fine in Client/Server.
    I have tried to remove the data parameter and run the report without it but, despite working in the Client/Server environment, it still fails on the Web.
    Does anyone have any suggestions?

    I have found the answer to my problem in the forms forum!
    Apparently, this type of report won't work on the web and I have to use temporary tables!

  • How do I resize pinned tabs/deal with tab group problems in Firefox 22?

    With the automatic update to Firefox 22, my pinned tabs have ballooned in size; not only does this look horrible, but it reduces the real estate available for other tabs. While NoSquint has sorted the issue with websites randomly resizing themselves, everything else (add-on menu, toolbar icons) has also increased in size, which affects what can be displayed.
    Another problem with 22 is that my tab groups are no longer behaving normally: I click on one group and another group moves around the screen, typically jumping behind the original group I clicked on. Any suggestions for how to improve these problems are much appreciated.

    hello, firefox 22 is now respecting the pixel density you've set on a system level in the windows control panel > appearance > display. more information about that is availbale at http://windows.microsoft.com/en-us/windows7/make-the-text-on-your-screen-larger-or-smaller
    if you want to set the text size/pixel density in firefox different from that of your system's settings like it was handled in prior versions, enter '''about:config''' into the firefox address bar (confirm the info message in case it shows up) & search for the preference named '''layout.css.devPixelsPerPx'''. double-click it and change its value to '''1.0''' (or any other zoom factor that fits your purpose; 0.8 equals 80%, 1.15 is 115% and so on..., -1.0 is the default value and will adhere to the system settings).

  • Detail Group Problem

    Hello All,
    I have a DB that uses intermediate tables a lot. An intermediate table is one that breaks up a many-to-many relationship between two tables; by putting a table between them that uses the primary keys from both tables.
    E.g. EMPLOYEE and PROJECT tables: Many Employees work on One Project; or One Employee works on Many Projects.
    Here's the JHeadstart problem (9.0.4, Struts/UIX): Using the XML Application Editor, I created a Group called EMPLOYEE (select-form) and added some Lookups to it. I then added a Detail Group called EMPLOYEE_PROJECT and set it up as a table on a separate page. The application compiles without errors, but when I bring up the application and click on the "Employee-Project" tab, I receive the following error:
    JBO-27122: SQL Error. "Select EMPPROJ.empid, EMPPROJ.projid, FROM EMPLOYEE_PROJECT empproj WHERE (EMPPROJ.empid =: 1) ORDER BY EMPPROJ.empid, EMPPROJ.projid"
    The error comes from the WHERE clause, specifically the "=:1" part. SQL Worksheet calls the error a bad bind variable when I run the query in it. What's funny, is that the Master Detail page had Employee Number 5 up; so the query should have had the employee ID of 5, not 1. No matter which employee I bring up on the master view, I still get the same WHERE clause with the "=:1" error.
    I tried adding other intermediate tables to the Master Employee detail group and get the same results.
    Anyone see this before?
    I suspect there's a JHeadstart setting somewhere related to the Master Detail, but I'm stumpred as to what it is.
    Any thoughts or opinions would be appreciated.

    Tracy-Paul,
    Are you using JDeveloper 9.0.3.3 or 9.0.3.4?
    If so, you are probably running into BC4J bug 3214032. In the JHeadstart 9.0.4.5 release notes the following info is included:
    3214032: JBO-27122: SQL error during statement preparation and ORA-1722 INVALID NUMBER IF PARENT VO ROW IN VIEW LINK REORDERS ATTRS. This bug can occur if you are using the BC4J libraries of JDeveloper 9.0.3.3 or 9.0.4.0 (or 9.0.5 Preview) and in one of your View Objects the Primary Key attribute(s) have a different index number than the Primary Key attribute(s) in the corresponding Entity Object. For example: in the Entity Object the primary key is the first attribute, but in the View Object the primary key is the last attribute. If this occurs, a workaround is to change the order of the View Object attributes.
    So, you can try to reorder your attributes, or to use the BC4J libraries of JDeveloper 9.0.3.2.
    We have been in close contact with BC4J product development about this bug, and they promised to publish a one-off patch for this bug on metalink as soon as possible. So keep your eye on metalink, you can also read the bug report there.
    Steven Davelaar,
    JHeadstart Team.

  • PO Release Group Problem

    Hi All
    This problem regarding Purchase Order Release Strategy.
    I have deleted the existing Release group : 02 and created New Release Group: 11 for Purchase Order Release Procedure.
    I deleted Release Group 02 and Release strategy in sequence.
    But still when I'm using ME29N transaction, system using release Group 02 not New group 11.
    I verified all Release Group related tables.
    T161E,S,G,F,
    T16FG,FH,FT,FC,FD,FK,FB,FE
    But there are no entires for Release group: 02.
    when i look into EKKO table, purchase order linking automatically to release group 02.
    from which table system pulling this?
    How to solve this problem
    Please suggest
    Thanks
    SUNIL KUMAR

    If these all the POs were created before you delete the release group and created new than system will not take new release group
    you have to put it the old one back and release all the POs which has old release group than you delete the release group
    you can keep the new one so the new POs created based on the new release group
    in sm30 check this both table
    V_T16FG_2 and
    v_T16FG
    should be clear

  • Generating a new table based on user choices - Code Problems

    A while ago someone posted on one of the Adobe forums the following code (sorry I do not remember the name / link). This code is meant to generate a second table (an Object list in this case) according to the user’s choices at another table (in this case a dropdown list):
    form1.TableA.TableTitles.Row1.DropDownList1::change - (JavaScript, client)
    var str_itemtext = xfa.event.newText;
    var olist2 = xfa.resolveNode("form1.TableA.TableTitles.Row2.ListBox2");
    var arrayADVS = new Array("Acad", "Disp", "Advs");
    var arrayCD = new Array("Proj-", "HRS");
    if (str_itemtext == "ADVS") {
    makelist(olist2, arrayADVS);
    olist2.presence = "visible";
    else if (str_itemtext == "CD"){
    makelist(olist2, arrayCD);
    olist2.presence = "visible";
    function makelist(olist, arrayitem) {
    var i = 0;
    olist.clearItems();
    for (i = 0; i < arrayitem.length; i ++){
    olist.addItem(arrayitem[i], arrayitem[i]);
    I made a couple of minor changes but generally preserved the original code and it seemed to work fine. The problem arises after the completed form is saved:- the “object list” (second table) disappears even though I set it as visible. I tried changing the Type (from user entered required to read only) but to no avail.
    Could someone please help me figure out what is wrong with this code? Why does this Object List object disappears after the form is saved?
    Thanks.

    If you could post the form or send a copy to [email protected] I would be happy to take a look, otherwise, it is hard to diagnose.
    Steve

  • Discover group problem with cross tab report

    Hi, I'm working on a cross tab report in discoverer 4i and I'm having a problem with two of the colums. I'm doing a count on one field but because they are called something different they are being shown as two seperate columns rather than 1.
    I have one called 101 -AVG and another called 101-AVG. My condition pulls every result back that starts with 101 in the table. So because in the table the values are different it breaks the count into totals for 101 -AVG and 101-AVG.
    Is there some way I can group these results together into one field?
    thanks,
    Ian

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Response Group problems

    For the past few weeks I have been struggling with launching response groups and I am hoping someone might be able to help.
    Little background on my config –
    2 – Frontend 2013 servers (5.0.8308.556)
    Sonus SBC1000 voice gateway, 1 PRI
    Stuff that works – Direct calling inbound to end users works great!
    So here is my problem.  I set up a response group with a direct dial number to the outside and assign my people to the group and everything is good. 
    For about 15mins response groups work great! After about 15mins response groups stop working and calls to response groups are no longer picked up. This also affects chat with response groups.
    When I turn on the logging software inside Lync I get these messages when the calls are dropped;
    TL_INFO(TF_COMPONENT) [1]3784.356C::04/14/2014-14:24:54.627.018e2f49 (RgsCommonLibrary,RgsLogMessage.ReportMessage:2111.idx(227))
    _rgs_message_begin_
    Direction: Incoming
    From: tel:+15555555555
    To: sip:[email protected]
    Message: CALLCONTROL: Call declined because CallControl is not started
    WorkflowId: 08d328a20de8419caad0dee898586051
    TL_ERROR(TF_COMPONENT) [1]3784.356C::04/14/2014-14:24:54.627.018e2f4a (RgsHostingFramework,CallControlManager.HandleAudioVideoCall:2049.idx(619))
    (0000000000C9D21E)Call is declined because Call Control is not started.
    I then simply restart response groups on one of the FE servers and they come back (for a short time) -
    Here some interesting events logged in the Lync Server event logs after Response Group Service is restarted –
    LS Response Group Service – 31028 - A WorkflowRuntime cannot be started.
    Lync Server 2013, Response Group Service Match Making could not find the Contact object used for subscribing to agents' presence. Cause: The application has not been properly activated or the Contact object was deleted. Resolution: Deactivate and then activate
    the application for this pool.
    I am willing to try just about anything to get this to work.  Any ideas out there? Thanks for all your help! 

    Please check if the application server is active(lync control panel--Topology--status--double click your FE SERVER--applicationserver).
    If the application server is not started, please start it. If it is started, restart it.
    If issue still exist, use following steps:
    use following command Get-CsApplicationEndpoint
    And check for messages in "Yellow"
    Locate the Identity in Active Directory using ADSIEdit
    And Delete the "CN" located at the end of the Identity String
    And try and add your Line URI or Response Group SIP Address.
    Also you can refer below link
    http://social.technet.microsoft.com/Forums/lync/en-US/cd25ddec-6e1e-4d58-9a9a-a530abfa82e3/response-groups-not-working
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical

Maybe you are looking for