HELP! trying to assign values to lists

project: is to make a java program that allows the a user (student) to drag and drop classes into a scheduler maker for fall or spring semesters. need to assign a value somehow to each class that is added to a semester so we can limit the student to say 12 hours total (each class has a value of 3 hours)
Need help knowing how to assign each class a value of 3 and how to limit them to 12 hours for each semester?
i'll put part of the the code below:
                    //---- tree1 ----
                    tree1.setModel(new DefaultTreeModel(
                         new DefaultMutableTreeNode("Information Science Requirements") {
                                   DefaultMutableTreeNode node1 = new DefaultMutableTreeNode("Core");
                                        node1.add(new DefaultMutableTreeNode("English Composition"));
                                        node1.add(new DefaultMutableTreeNode("Fine Arts/Humanities"));
                                        node1.add(new DefaultMutableTreeNode("Social Sciences"));
                                        node1.add(new DefaultMutableTreeNode("Technical Writing"));
                                        node1.add(new DefaultMutableTreeNode("History"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("IFSC");
                                        node1.add(new DefaultMutableTreeNode("1110"));
                                        node1.add(new DefaultMutableTreeNode("1201"));
                                        node1.add(new DefaultMutableTreeNode("1202"));
                                        node1.add(new DefaultMutableTreeNode("1305"));
                                        node1.add(new DefaultMutableTreeNode("1310"));
                                        node1.add(new DefaultMutableTreeNode("2300"));
                                        node1.add(new DefaultMutableTreeNode("2305"));
                                        node1.add(new DefaultMutableTreeNode("2315"));
                                        node1.add(new DefaultMutableTreeNode("2340"));
                                        node1.add(new DefaultMutableTreeNode("3305"));
                                        node1.add(new DefaultMutableTreeNode("3315"));
                                        node1.add(new DefaultMutableTreeNode("3320"));
                                        node1.add(new DefaultMutableTreeNode("3330"));
                                        node1.add(new DefaultMutableTreeNode("3360"));
                                        node1.add(new DefaultMutableTreeNode("4210"));
                                        node1.add(new DefaultMutableTreeNode("4310"));
                                        node1.add(new DefaultMutableTreeNode("4396"));
                                        node1.add(new DefaultMutableTreeNode("4398"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("MATH");
                                        node1.add(new DefaultMutableTreeNode("1451"));
                                        node1.add(new DefaultMutableTreeNode("1452"));
                                        node1.add(new DefaultMutableTreeNode("2310"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("STAT");
                                        node1.add(new DefaultMutableTreeNode("3352"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("PHYS");
                                        node1.add(new DefaultMutableTreeNode("2321"));
                                        node1.add(new DefaultMutableTreeNode("2121"));
                                        node1.add(new DefaultMutableTreeNode("2322"));
                                        node1.add(new DefaultMutableTreeNode("2122"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("ACCT");
                                        node1.add(new DefaultMutableTreeNode("2310"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("MKGT");
                                        node1.add(new DefaultMutableTreeNode("3350"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("MGMT");
                                        node1.add(new DefaultMutableTreeNode("3300"));
                                        node1.add(new DefaultMutableTreeNode("4331"));
                                        node1.add(new DefaultMutableTreeNode("4361"));
                                   add(node1);
                    tree1.setVisibleRowCount(5);
                    scrollPane1.setViewportView(tree1);
               class_scheduler.add(scrollPane1, new GridBagConstraints(1, 5, 9, 10, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));
               //---- label6 ----
               label6.setText("Available Courses");
               label6.setFont(label6.getFont().deriveFont(label6.getFont().getStyle() | Font.ITALIC));
               class_scheduler.add(label6, new GridBagConstraints(11, 5, 5, 1, 0.0, 0.0,
                    GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
                    new Insets(0, 0, 5, 5), 0, 0));
               //======== scrollPane3 ========
                    scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
                    scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    //---- list2 ----
DefaultListModel listModel2 = new DefaultListModel();
listModel2.addElement("IFSC 1110");
listModel2.addElement("IFSC 1201");
listModel2.addElement("IFSC 1202");
listModel2.addElement("IFSC 1305");
listModel2.addElement("IFSC 1310");
listModel2.addElement("IFSC 2300");
listModel2.addElement("IFSC 2305");
listModel2.addElement("IFSC 2315");
listModel2.addElement("IFSC 2340");
listModel2.addElement("IFSC 3305");
listModel2.addElement("IFSC 3315");
listModel2.addElement("IFSC 3320");
listModel2.addElement("IFSC 3330");
listModel2.addElement("IFSC 3360");
listModel2.addElement("IFSC 4210");
listModel2.addElement("IFSC 4310");
listModel2.addElement("IFSC 4396");
listModel2.addElement("IFSC 4398");
listModel2.addElement("MATH 1451");
listModel2.addElement("MATH 1452");
listModel2.addElement("MATH 2310");
listModel2.addElement("STAT 3352");
listModel2.addElement("PHYS 2321");
listModel2.addElement("PHYS 2121");
listModel2.addElement("PHYS 2322");
listModel2.addElement("PHYS 2122");
listModel2.addElement("ACCT 2310");
listModel2.addElement("MKGT 3350");
listModel2.addElement("MGMT 3300");
listModel2.addElement("MGMT 4331");
listModel2.addElement("MGMT 4361");
list2 = new JList(listModel2);
list2.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
list2.setDragEnabled(true);
list2.setTransferHandler(new ListTransferHandler());
list2.setDropMode(DropMode.INSERT);
                    scrollPane3.setViewportView(list2);
               class_scheduler.add(scrollPane3, new GridBagConstraints(11, 6, 17, 4, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

project: is to make a java program that allows the a user (student) to drag and drop classes into a scheduler maker for fall or spring semesters. need to assign a value somehow to each class that is added to a semester so we can limit the student to say 12 hours total (each class has a value of 3 hours)
Need help knowing how to assign each class a value of 3 and how to limit them to 12 hours for each semester?
i'll put part of the the code below:
                    //---- tree1 ----
                    tree1.setModel(new DefaultTreeModel(
                         new DefaultMutableTreeNode("Information Science Requirements") {
                                   DefaultMutableTreeNode node1 = new DefaultMutableTreeNode("Core");
                                        node1.add(new DefaultMutableTreeNode("English Composition"));
                                        node1.add(new DefaultMutableTreeNode("Fine Arts/Humanities"));
                                        node1.add(new DefaultMutableTreeNode("Social Sciences"));
                                        node1.add(new DefaultMutableTreeNode("Technical Writing"));
                                        node1.add(new DefaultMutableTreeNode("History"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("IFSC");
                                        node1.add(new DefaultMutableTreeNode("1110"));
                                        node1.add(new DefaultMutableTreeNode("1201"));
                                        node1.add(new DefaultMutableTreeNode("1202"));
                                        node1.add(new DefaultMutableTreeNode("1305"));
                                        node1.add(new DefaultMutableTreeNode("1310"));
                                        node1.add(new DefaultMutableTreeNode("2300"));
                                        node1.add(new DefaultMutableTreeNode("2305"));
                                        node1.add(new DefaultMutableTreeNode("2315"));
                                        node1.add(new DefaultMutableTreeNode("2340"));
                                        node1.add(new DefaultMutableTreeNode("3305"));
                                        node1.add(new DefaultMutableTreeNode("3315"));
                                        node1.add(new DefaultMutableTreeNode("3320"));
                                        node1.add(new DefaultMutableTreeNode("3330"));
                                        node1.add(new DefaultMutableTreeNode("3360"));
                                        node1.add(new DefaultMutableTreeNode("4210"));
                                        node1.add(new DefaultMutableTreeNode("4310"));
                                        node1.add(new DefaultMutableTreeNode("4396"));
                                        node1.add(new DefaultMutableTreeNode("4398"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("MATH");
                                        node1.add(new DefaultMutableTreeNode("1451"));
                                        node1.add(new DefaultMutableTreeNode("1452"));
                                        node1.add(new DefaultMutableTreeNode("2310"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("STAT");
                                        node1.add(new DefaultMutableTreeNode("3352"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("PHYS");
                                        node1.add(new DefaultMutableTreeNode("2321"));
                                        node1.add(new DefaultMutableTreeNode("2121"));
                                        node1.add(new DefaultMutableTreeNode("2322"));
                                        node1.add(new DefaultMutableTreeNode("2122"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("ACCT");
                                        node1.add(new DefaultMutableTreeNode("2310"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("MKGT");
                                        node1.add(new DefaultMutableTreeNode("3350"));
                                   add(node1);
                                   node1 = new DefaultMutableTreeNode("MGMT");
                                        node1.add(new DefaultMutableTreeNode("3300"));
                                        node1.add(new DefaultMutableTreeNode("4331"));
                                        node1.add(new DefaultMutableTreeNode("4361"));
                                   add(node1);
                    tree1.setVisibleRowCount(5);
                    scrollPane1.setViewportView(tree1);
               class_scheduler.add(scrollPane1, new GridBagConstraints(1, 5, 9, 10, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));
               //---- label6 ----
               label6.setText("Available Courses");
               label6.setFont(label6.getFont().deriveFont(label6.getFont().getStyle() | Font.ITALIC));
               class_scheduler.add(label6, new GridBagConstraints(11, 5, 5, 1, 0.0, 0.0,
                    GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
                    new Insets(0, 0, 5, 5), 0, 0));
               //======== scrollPane3 ========
                    scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
                    scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    //---- list2 ----
DefaultListModel listModel2 = new DefaultListModel();
listModel2.addElement("IFSC 1110");
listModel2.addElement("IFSC 1201");
listModel2.addElement("IFSC 1202");
listModel2.addElement("IFSC 1305");
listModel2.addElement("IFSC 1310");
listModel2.addElement("IFSC 2300");
listModel2.addElement("IFSC 2305");
listModel2.addElement("IFSC 2315");
listModel2.addElement("IFSC 2340");
listModel2.addElement("IFSC 3305");
listModel2.addElement("IFSC 3315");
listModel2.addElement("IFSC 3320");
listModel2.addElement("IFSC 3330");
listModel2.addElement("IFSC 3360");
listModel2.addElement("IFSC 4210");
listModel2.addElement("IFSC 4310");
listModel2.addElement("IFSC 4396");
listModel2.addElement("IFSC 4398");
listModel2.addElement("MATH 1451");
listModel2.addElement("MATH 1452");
listModel2.addElement("MATH 2310");
listModel2.addElement("STAT 3352");
listModel2.addElement("PHYS 2321");
listModel2.addElement("PHYS 2121");
listModel2.addElement("PHYS 2322");
listModel2.addElement("PHYS 2122");
listModel2.addElement("ACCT 2310");
listModel2.addElement("MKGT 3350");
listModel2.addElement("MGMT 3300");
listModel2.addElement("MGMT 4331");
listModel2.addElement("MGMT 4361");
list2 = new JList(listModel2);
list2.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
list2.setDragEnabled(true);
list2.setTransferHandler(new ListTransferHandler());
list2.setDropMode(DropMode.INSERT);
                    scrollPane3.setViewportView(list2);
               class_scheduler.add(scrollPane3, new GridBagConstraints(11, 6, 17, 4, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

Similar Messages

  • How to add anchor tag dynamically on infopath (OOTB task form of workflow .xsn) by jquery -dynamically as i did by below script on newform.aspx where I will read Help title and URL value from list

    on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
    but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
    Configuration List has 2 columns Title and URLValue
    Title                                    UrlValue
    HelpNewPage                    
    http://url1
    HelpEditPage                      http://url2
    so script should read Title and display "Help"--->1st part on NewForm.aspx/EditForm
    Script should read UrlValue column and on click of help-(display link) the respective url should be open in new window.-->second part
    Please let me know reference code for adding anchor tag dynamically by reading from list
    Help/Reference 
    http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=5
    I can see hyperlink near cancel button-
    //This block is just placing help link near cancel button- 
    $(document).ready(function() {
        GetHelpLinkFromConfigList();
    var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    var HelpLinkhtml ='<a href="#" text="Help" onclick="GetHelpLinkFromConfigList();">Help</a>'; 
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    var HelpLinkimageButton ='<IMG SRC="../../Style Library/Help.bmp" style="width:35px;"/>'; 
    var position1 =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkimageButton );
    //Rest script
    function GetHelpLinkFromConfigList()
     //The Web Service method we are calling, to read list items we use 'GetListItems'
     var method = "GetListItems";
     //The display name of the list we are reading data from
     var list = "configurationList";
     //We need to identify the fields we want to return. In this instance, we want the Title,Value fields
     //from the Configuration List. You can see here that we are using the internal field names.
     var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
     //comment
     var query = "<Query>" +
                            "<Where>" +
                                "<Neq>" +
                                    "<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
    +
                                "</Neq>" +
                            "</Where>" +
                            "<OrderBy>" +
                                "<FieldRef Name='Title'/>" +
                            "</OrderBy>" +
                        "</Query>";
     $().SPServices(
     operation: method,
        async: false,
        listName: list,
        CAMLViewFields: fieldsToRead,
        CAMLQuery: query,
        completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
        var displayname = ($(this).attr("ows_Title"));
        var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
        AddRowToSharepointTable(displayname,UrlValue)
    function AddRowToSharepointTable(displayname,UrlValue)
        $("#NDRTable").append("<tr align='Middle'>" +
                                    "<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
    +
                                   "</tr>");
    <table id="NDRTable"></table>
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    From your description, you want to add a help link(read data from other list) into new form page.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
    function AddHelpLink() {
    var context = new SP.ClientContext.get_current();
    var list= context.get_web().get_lists().getByTitle("configurationList");
    var camlQuery= new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
    this.listItems = list.getItems(camlQuery);
    context.load(this.listItems,'Include(Title,URL)');
    context.executeQueryAsync(function(){
    var ListEnumerator = listItems.getEnumerator();
    while(ListEnumerator.moveNext())
    var currentItem = ListEnumerator.get_current();
    var title=currentItem.get_item("Title");
    var url=currentItem.get_item("URL").get_url();
    var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
    $("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    },function(sender,args){
    alert(args.get_message());
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Assigning value to a two dimensional array

    Hi,
    I am trying to assign value to a two dimesional array the following way.
    String [ ] [ ] d2D = new String [10] [ ];
    for (int i = 0; i<obj.length; i++){
    d2D = { "hello " + i, "here" , "we go" };
    but it gives me the error "illegal start of expression " pointing to the line in the loop assigning values to d2D[i].
    Any help would be deeply appreciated.

    You need to use the syntax for creating an anonymous array: new String[] {..., ...}
    String [ ] [ ] d2D = new String [10] [ ];
    for (int i = 0; i<obj.length; i++){
        d2D[ i ] = new String[] { "hello " + i, "here" , "we go" };
    }

  • Assignment of task list after the inspection lot status is released

    Hi,
    I have applied a user status with  which i am able to release the inspection lot.After that i am going to assign a task list. But it is not getting assigned.
    please help me.
    Regards
    Vivek Deshpande

    Hi,
    Key date is same. I have checked for it.
    What i am saying is , i have manually updated inspection lot status to release state by applying user status. And after that i am trying to assign inspection task list to the inspection lot.But i am unable to do so.
    Can i do this ? Please help
    Vivek Deshpande

  • After form loads assigned values to textbox

    Hi experts,
    I am developing through SAP B1 studio for Microsoft visual studio.  Usually, in the menu event/form load, we show the docnum,docdate fields values.Trying to assign values to textbox after form opens.So, in Form_LoadAfter, I am trying.But, this event calls even before form is shown. i.e,it is called immediately after clicking Menu to open the form.So, assigning values to textbox is showing error.Any inputs regarding this will be helpful...
    Thanks in Advance,
    Parvatha Solai.N

    Hi Parvatha,
    For User Form, when the Form Load event is triggered, the form does not contains anything yet,
    Thus you cannot put a default value in this event.
    Instead, in B1Studio, each form is a class.
    In the default class constructor, there is a code where the form and the items are drawn.
    After this block of code, you can place your default value here.
    If you are not sure, just place it just before the closing of this constructor.
    Regards
    Edy

  • Assigning value bands to calculated numbers

    Hello again,
    I have an extension question to my earlier thread "Assigning value bands to numbers". I'm now trying to assign value bands to a calculated field REV_NET_PER_SITE. Here is my SQL statement by I'm getting an error "JOIN expression not supported".
    SELECT REV_BY_ACCT.GLSeq, Count(REV_BY_SITE.SITE_ADDR_ID) AS NUM_SITES, REV_BY_ACCT.SGMNT1, REV_BY_ACCT.SGMNT2, REV_BY_ACCT.PERIOD, REV_BY_ACCT.RECUR, REV_BY_ACCT.PROMOTED, IIf(NUM_SITES > 0, REV_BY_ACCT.SumOfREV_GRS/NUM_SITES, REV_BY_ACCT.SumOfREV_GRS)
    AS REV_GRS_PER_SITE, IIf(NUM_SITES > 0, REV_BY_ACCT.SumOfREV_NET/NUM_SITES, REV_BY_ACCT.SumOfREV_NET) AS REV_NET_PER_SITE, LOOKUP_VALUE_BAND.ALIAS
    FROM (REV_BY_ACCT INNER JOIN REV_BY_SITE
    ON REV_BY_SITE.GLSeq = REV_BY_ACCT.GLSeq
    AND REV_BY_SITE.PERIOD = REV_BY_ACCT.PERIOD
    AND REV_BY_SITE.LOB = REV_BY_ACCT.LOB)
    INNER JOIN LOOKUP_VALUE_BAND
    ON REV_NET_PER_SITE >= LOOKUP_VALUE_BAND.LB
    AND REV_NET_PER_SITE <= LOOKUP_VALUE_BAND.UB
    WHERE (REV_BY_ACCT.SGMNT1="Small" 
    Or REV_BY_ACCT.SGMNT1="Medium")
    AND REV_BY_ACCT.PERIOD>#12/31/2013#
    AND REV_BY_ACCT.RECUR=Yes
    AND REV_BY_ACCT.PROMOTED=Yes
    AND REV_BY_ACCT.SumOfREV_NET<>0
    GROUP BY REV_BY_ACCT.GLSeq, REV_BY_ACCT.SGMNT1, REV_BY_ACCT.SGMNT2, 
    REV_BY_ACCT.PERIOD, REV_BY_ACCT.RECUR, REV_BY_ACCT.PROMOTED, 
    REV_BY_ACCT.SumOfREV_GRS, REV_BY_ACCT.SumOfREV_NET, LOOKUP_VALUE_BAND.ALIAS;
    "REV_BY_ACCT" is a query that aggregates revenue by account. NUM_SITE is numbers of sites per account (i.e., "GLSeq" field) calculated from "REV_BY_SITE" query that has revenue by SITE.
    In the query above, I've calculated REV_NET_PER_SITE as "REV_BY_ACCTagg.SumOfREV_NET/NUM_SITES".
    Appreciate for the help getting this query right.
    Regards,
    Asif

    Hi Asif,
    To reproduce your problem easily, I recommend that you upload your sample database in
    OneDrive.
    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.

  • When trying to assign IP reservation in IPAM, Domain does not appear in Forward lookup zone drop-down list

    I am trying to assign reserved IP Addresses through IPAM that is installed on a Server 2012 OS.  Here is the procedure I have been following:
    Login to IPAM server
    Open Server Manager
    In left-hand column select IPAM
    In left-center column expand IP ADDRESS SPACE
    Select IP Address Range Groups
    Right-click the appropriate address range and select Find and Allocate Available IP Address
    In new window, scroll down to Basic Configurations
    I can input the basic configurations with no problem.  DHCP Reservation Synchronizations look good too.  But when I get down to DNS Record Synchronization, I can't do anything with the Forward lookup zones because nothing appears in the drop-down
    lists and I cannot manually enter the zone name.  Here is a screen shot of what I see at this point:
    Without completing this information, I cannot complete the Address Reservation.
    Any help or insight will be greatly appreciated.
    Thanks!
    Tom LaLumiere

    Hi Tom,
    This happens if your DNS servers that are managed by IPAM are not authoritative and primary for any zones, if they are not authoritative for the appropriate zones, or if there are not any DNS servers managed by IPAM.
    See the examples below. Here my DNS server is authoritative for 4 forward zones and 2 reverse zones. I can choose any of the forward zones but assuming I pick a range such as 10.0.1.0, I would be unable to choose the 168.192.in-addr.arpa zone because the
    IP addresses do not match.
    -Greg

  • Dynamically assign value to a column in ALV LIST Display

    Hi all,
    How can I dynamically assign value to a column in ALV LIST Display without using classes and methods?
    Thanks,
    Ridhima

    Hi Vikranth,
    I am displaying one ALV list say with columns A and B.
    I have value in A but not in B. Now at runtime user selects one row, clicks on push button in application toolbar, then i have to display value in column B in the already displayed list.
    I searched and came to know it can be done with oops concept. but i am not using classes and methods.
    so how can i do this?
    Thanks,
    Ridhima.

  • Error while trying to assign an empty value

    Hi ,
    In my bpel process i get an error while trying to assign an empty output to a variable. It occurs in assign activity copy operation. What can i do? How can i skip this? Sometimes there may be null /empty values ...below is the error message
    Error in evaluate <from> expression at line "146". The result is empty for the XPath expression : "/ns5:getAccessSwitchResponse/SwitchPortInfo/SwitchID
    Thanks in advance
    Edited by: Turkmen Mustafa on 27.Haz.2011 04:08

    Hi,
    No it is not possible. However this issue is resolved in SOA Suite 11g PS3. Where it uses BPEL WS 2.0 standards.
    Edited by: user9285225 on Jun 27, 2011 4:42 AM

  • I bought an apps "Latitude". when i tried to see my friends list its showing error - "nsurlerrordomain error 999". Please help what should i do??

    I bought an apps "Latitude". when i tried to see my friends list its showing error - "nsurlerrordomain error 999". Please help what should i do??

    Google 'nsurlerrordomain error 999' and see the hits there!

  • Need help assigning values to an array of Strings

    why do i get an error message saying this isn't a statement?
    String customer[z] = {"::" + s1 + ":" + s2 + ":" + s3};
    what is the correct syntax for assigning values to an array of strings?

    help helpArrays in Java are static, meaning their size cannot change once they've been created. Somewhere in your code you need to declare the String array like this,
    String[] costumer = new String[10];Now customer has 10 elements (room for 10 strings) and you can do for example this,
    int z = 0;
    costumer[z] = "string1" + "string2";This means the two strings are added and assigned to element 0 of the array.
    If you can't take it from here you need to step back for a while and carefully study a beginners textbook on Java.

  • Itunes 10.2.2 won't install on my computer. I have tried everything in the support list already, please help

    itunes 10.2.2 won't install on my computer. I have tried everything in the support list already, removed all apple files, quicktime, itunes(older version) from the software lists. re-starterd computer, new installations, nothing will help. I have an ipad and an ipod but I can't use it anylonger because my computer refused to install itunes 10.2.2. Please help

    This procedure might work or might not work:
    Uninstall iTunes according to Apple's directions here
    http://support.apple.com/kb/HT1925
    Download the free Ccleaner and repair your Registry
    http://www.piriform.com/ccleaner/download/standard
    Then download/install iTunes again from the Apple website
    http://www.apple.com/itunes/
    Your iTunes content will not be removed,
    Please regularly backup your iTunes content to external medium (hard drive, cd/dvd's) using the File>Backup Library in iTunes. Apple will not reissue new copies of content.
    (Notice: this post is a copy/paste in a hope that a uninstall/reinstall and repair of your Registry may solve your particular issue, Windows issues are particular difficult to resolve due to multiple factors, so my advice is to be taken into advisement with others recommendations which may be more specific or experienced in resolving your issue. If it or others recommendations solve your issue, please respond back with a "Correct" or "Helpful" or not resolved responses so we can further refine our efforts in trying to successfully assist others. I receive no compensation for product mention.)

  • BP Transaction : Assign values to fields upon selection of BP role ?

    Hi All,
    I want to assign values to Grouping and Account Group fields in BP transaction in CRM.
    Is there any BADI or Userexit to achive the same. If possible kindly explain the steps to be implemented to use the BADI.
    Thanks & Regards,
    Navneeth K.

    Hi Navneeth,
    There are 2 ways to approach this :
    1. You can create an application transaction for the standard transaction BP. This will open the transaction in whichever role you require, default a groupng, and allow you to control some other initializaittion parameters. This is very similar the transaction variant mentioned above by Adil.
    You can explore 'Application Transactions' through SPRO->Cross Application>SAP Business Partner-> Business Partner> BAsic Settings>Business Partner Roles>Define Application Transactions.
    2. To default grouping , you can use BADI BUPA_NUMBER_GROUP. THe BADI will receive the list of groupings that will be shown in the dropdown .Write the implementation so as to remove unwanted groupins and keep only the number groupig you wish to default.
    Hope this helps.
    Cheers,
    Rishu.

  • Cannot assign value to a Variable of Complex Type beyond index 1

    Hello:
    I have a variable defined as a complex type as followed. I tried to assign a value to each of the two elements but it only allows me to assign to the 'element#1.
    This statement that tries to assign a value into element#2 will not work, if I assign with '[1]' for the first element it will work:
    <copy> <---- THIS WORKS
    <from expression="'John'"/>
    <to variable="My_Variable"
    part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item[1]/ns9:pname"/>
    </copy>
    <copy> <---- THIS DOES NOT WORK
    <from expression="'John'"/>
    <to variable="My_Variable"
    part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item[2]/ns9:pname"/>
    </copy>
    Is there something wrong with my definition below that allows only element#1 to be refererenced but not element#2???? Am I missing some kind of initialization that is needed to initialize both elements????
    Here are my message and Complex Type definitions:
    <variable name="My_Variable" messageType="ns8:args_out_msg"/>
    <message name="args_out_msg">
    <part name="My_Collection" element="db:My_Collection"/>
    </message>
    <element name="My_Collection">
    <complexType>
    <sequence>
    <element name="Collection" type="db:Collection_Type" db:index="2" db:type="Array" minOccurs="0" nillable="true"/>
    <element name="Ret" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="Collection_Type">
    <sequence>
    <element name="Collection_Item" type="db:Collection_Type_Struct" db:type="Struct" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="Collection_Type_Struct">
    <sequence>
    <element name="pname" db:type="VARCHAR2" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="25"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    The error msg it gives me is as followed:
    [2010/09/04 00:47:59] Error in <assign> expression: <to> value is empty at line "254". The XPath expression : "" returns zero node, when applied to document shown below:less
    oracle.xml.parser.v2.XMLElement@1fa7874
    [2010/09/04 00:47:59] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    -<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    -<part name="summary">
    <summary>
    XPath query string returns zero node.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity &lt;to&gt; part query should not return zero node.
    Please check the BPEL source at line number "254" and verify the &lt;to&gt; part xpath query.
    </summary>
    </part>
    </selectionFailure>
    Thanks
    Newbie

    Hello:
    Base on the suggestion to use 'append' instead of 'copy', I tried to define a 'singleNode' which is of type 'Collection_Type_Struct' so I can append this individual 'struct' into my array (i.e. as the 2nd. element of my array "/ns9:My_Collection/ns9:Collection/ns9:Collection_Item"), but I am getting an error in defining this variable as:
    <variable name="singleNode" element="Collection_Type_Struct"/> <--- error
    Can someone tell me how should I define "singleNode" so I can put a value in it and then append this 'singleNode' into the array:
    <variable name="singleNode" element=" how to define this????"/>
    <assign>
    <copy>
    <frem expression="'Element2Value'"/>
    <to variable="singleNode"
    part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item/ns9:pname"/>
    </copy>
    </assign>
    <bpelx:assign>
    <bpelx:append>
    <from variable="singleNode" query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item"/>
    <to variable="My_Variable"
    "part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection"/>
    </bpelx:append>
    </bpelx:assign>
    Again here is my definition in my .xsd file:
    <element name="My_Collection">
    <complexType>
    <sequence>
    <element name="Collection" type="db:Collection_Type" db:index="2" db:type="Array" minOccurs="0" nillable="true"/>
    <element name="Ret" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="Collection_Type">
    <sequence>
    <element name="Collection_Item" type="db:Collection_Type_Struct" db:type="Struct" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="Collection_Type_Struct">
    <sequence>
    <element name="pname" db:type="VARCHAR2" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="25"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    Thanks for any help!!!!

  • Assigning values to element part of a variable

    Hello,
    I have a BPEL process which has a variable declared thusly:
        <variable name="myMessageVariable" element="ns1:MyMessage"/>The MyMessage type is declared by an XSD file which is used as part of a WSDL definition which an adapter then uses to connect to an external service:
        <xsd:element name="MyMessage" type="tns:MyMessageType" />
        <xsd:complexType name="MyMessageType">
            <xsd:sequence>
                <xsd:element name="ErrorString" type="xsd:string" />
                <xsd:element name="ErrorReason" type="xsd:string" />
            </xsd:sequence>
        </xsd:complexType>I am trying to assign a value to one of the element parts of the variable via an assignment:
            <assign name="Assign1">
              <copy>
                <from>ora:getFaultAsString()</from>
                <to>$myMessageVariable.ErrorString</to>
              </copy>
            </assign>... but I am getting the following error:
    Error(81): Variable "myMessageVariable"  must not specify part "ErrorString" because its type is not a WSDL messageCan anyone indicate the correct syntax for doing so, please?
    Many thanks in advance for any assistance.
    Edited by: ZeroZeroZeroOne on Apr 25, 2013 9:22 PM

    Looks like your wsdl is not defining the message properly for the operation. I have pasted you an example of wsdl and xsd here.
    WSDL File:
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<wsdl:definitions name="BPELDVM"+
    targetNamespace="http://xmlns.oracle.com/PIMtoRPASAmendment/BPELDVM/BPELDVM"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/PIMtoRPASAmendment/BPELDVM/BPELDVM"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    +     <wsdl:types>+
    +          <schema xmlns="http://www.w3.org/2001/XMLSchema">+
    +               <import namespace="http://xmlns.oracle.com/PIMtoRPASAmendment/BPELDVM/BPELDVM" schemaLocation="xsd/BPELDVM.xsd" />+
    +          </schema>+
    +     </wsdl:types>+
    +     <wsdl:message name="BPELDVMRequestMessage">+
    +     <wsdl:part name="payload" element="client:process"/>+
    +     </wsdl:message>+
    +     <wsdl:message name="BPELDVMResponseMessage">+
    +          <wsdl:part name="payload" element="client:processResponse"/>+
    +     </wsdl:message>+
    +     +
    +     <!-- portType implemented by the BPELDVM BPEL process -->+
    +     <wsdl:portType name="BPELDVM">+
    +          <wsdl:operation name="process">+
    +               <wsdl:input message="client:BPELDVMRequestMessage" />+
    +               <wsdl:output message="client:BPELDVMResponseMessage"/>+
    +          </wsdl:operation>+
    +     </wsdl:portType>+
    +     <plnk:partnerLinkType name="BPELDVM">+
    +     <plnk:role name="BPELDVMProvider">+
    +               <plnk:portType name="client:BPELDVM"/>+
    +          </plnk:role>+
    +     </plnk:partnerLinkType>+
    +</wsdl:definitions>+
    XSD File:
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<schema attributeFormDefault="unqualified"+
    +     elementFormDefault="qualified"+
    +     targetNamespace="http://xmlns.oracle.com/PIMtoRPASAmendment/BPELDVM/BPELDVM"+
    +     xmlns="http://www.w3.org/2001/XMLSchema">+
    +     <element name="process">+
    +          <complexType>+
    +               <sequence>+
    +                    <element name="input" type="string"/>+
    +               </sequence>+
    +          </complexType>+
    +     </element>+
    +     <element name="processResponse">+
    +          <complexType>+
    +               <sequence>+
    +                    <element name="result" type="string"/>+
    +               </sequence>+
    +          </complexType>+
    +     </element>+
    +</schema>+
    Let us know if you still having problem with that. Otherwise you can share your wsdl and schema file here.
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.
    Thanks,
    Vijay

Maybe you are looking for

  • Error Operation could not be completed movie rental

    I Rented a movie and when I press "Watch" it asks if I want to play it, Press OK and I get the message"The operation could not be completed".  Home sharing is on, mirroring is on...It briefly shows the remote control screen then the Rented Movie scre

  • Photoshop CC 2014 not responding and cannot uninstall

    PS CC 2014 installed on Mac.  Recent update stopped at 74% days ago.  Tried to stop update and now it says "finishing" for the last 2 days.  PS CC 2014 won't open at all.  Tried to uninstall it and Adobe Creative Cloud but I keep getting a message th

  • DW CS3 rewrites and destroys characters

    DW CS3 rewrites characters wrongly in the text in the HTML when a image is placed into the document by Fireworks. I have tested it on a correctly formatted document with all important UTF-8 and doctype stuff. On a blank document containing only the i

  • Delete log and temp files

    Hi. i want to delete files in folders appltmp and logs, because they both are using 4GB in my HDD. is it posible to delete the files into those folders.?? thaks

  • New version of Java Developer Certification

    Hi! I' ve done the NW04 Dev Consultant Java Certification and am now wondering - as NW7.1 with Java EE 5.0 gets into Ramp-Up - when a new version (with a delta certification?) will be available for this educational path. Additionally I would like to