Using JSP, how to add new items to Fuego Business Object "Group" ?

Given the classic Fuego Business Object (FBO) example of an Order, which has a few attributes (orderNumber, customerName, Order Date) and a GROUP attribute called OrderItems (ItemName, ItemPrice, etc.), I want to use a JSP to allow user to submit order. My JSP has a form and uses the Fuego Tag Library. There are FORM INPUT elements for Order.orderNumber, Order.customerName, Order.OrderDate, and a table using dynamic HTML to add rows and INPUT elements for new items to add to the GROUP attribute OrderItems - ItemName, ItemPrice, etc.)
But when the user wants to add "OrderItems" to the order, I don't know how to get Fuego to create OrderItem Objects to add to the array (aka GROUP).
Thx in advance.

###### below is the response I response I received from a BEA Engineer. From looking at the html source of fuego presentations that implement desired functionality, it appears as though they handle it using the first suggested workaround below ######
Hi,
The short answer to your question is that there is no out of the box feature to support directly what you are asking for.
The problem is that JSPs receives a Fuego Object that is accessed at rendering time (JSP compilation/ HTML rendering). And then all the updated values are sent back to the engine in a new request when you hit the submit button of a FOR tag that has the postResult tag in the action attribute. At this point all these values are automatically taken from the request and the Fuego Object instance variable in the screenflow is updated.
After saying this you will notice that it doesn’t make sense to update the Fuego Object instance on the JSP. Because you only could do this ate rendering time and because this instance is not going back to the engine (just the values).
Fuego Object tag Library was designed basically to be able to show Fuego Object data and invoke runs-on-server FO methods.
I see 3 different approaches to solve the problem you have:
1)Use JavaScript to call a runs-on-server method that recive the required arguments to extend the group and set the values. You should use the new tag called invokeUrl that allows you to use AjaX, in this way you could update the page with partial rendering.
2)Use JavaScritp to submit the form when the user click the add row button. And have a loop in the Screenflow with an automatic activity that will extend the group and the go back to the component activity that now will show the page again but with one more row. The drawback is that each time the user wants to add a row, it will require the entire page to be refresh.
3)Handle the table and values using JavaScritp and DHTML, and put all the new values in the request (input element), then in the Screenflow use an automatic activity to set this values to the Fuego Object.
Look at the Samples of using Fuego Tag Lib and AJaX
albpm5.7\studio\samples\Integration\Portlets\PFoodDelivery.fpr
albpm5.7\studio\samples\Integration\ThirdParty\AJaX.fpr

Similar Messages

  • How to add new item in more options dialog box

    Hi all,
    Can anyone tell me how to add new item in more options dialog box(site actions -> more options). I want to add new item there to the new page layout which I created but I didn't find any way to do it. can anyone assist me for this.

    Good point, in order to add a Page into that area, you will need to define a Custom Action. You can learn more about creating Custom Actions here:
    http://msdn.microsoft.com/en-us/library/hh500259(v=office.14).aspx
    As an example, Microsoft uses the following Custom Action to add the "Publishing Page" to that Create Silverlight control when enabling the Publishing features:
    <CustomAction
    Id="CreatePublishingPage"
    GroupId="WebPages"
    Location="Microsoft.SharePoint.Create"
    Sequence="100"
    Title="$Resources:cmscore,Create_WebPages_PublishedPage;"
    Description="$Resources:cmscore,Create_WebPages_PublishedPage_Description;"
    ImageUrl="/_layouts/images/ltpp.png">
    <UrlAction Url="_Layouts/CreatePage.aspx" />
    </CustomAction>
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to add new item-descriptors in ATG Merchandising 10.0.3 Browse-find tab

    Hi,
    We are using ATG 10.0.3 and Weblogic5.
    And in my project we have lots of new item descriptors in customCatalog.xml.
    We are managing Catalog using ATG BCC and it populates only ATG OOTB item descriptors. So I am finding hard to configure other item descriptors in BCC to forward my work.
    We configured item descriptors in CatalogBrowseTabConfiguration.properties file as well as taskConfiguration.xml. But its not working as expoected. Anybody have any idea how can we configure it in ATg10.0.3 mainly? The Configuration in ATg9 is not working in ATG 10.0.3, that is what I noticed.
    Thanks
    Mini

    If you're trying to modify the Merchandising view and you have custom item types in customCatalog.xml that don't extend the out of the box types (Category, Product, etc.), you may find the two links below to be helpful.
    Customizing the "Browse" view:
    [http://blog.credera.com/topic/technology-solutions/java/atg-10-merchandising-customizing-the-browse-view/|http://blog.credera.com/topic/technology-solutions/java/atg-10-merchandising-customizing-the-browse-view/]
    Customizing the "Find" view, i.e. search.
    [http://blog.credera.com/topic/technology-solutions/java/atg-10-merchandising-customizing-the-find-view/|http://blog.credera.com/topic/technology-solutions/java/atg-10-merchandising-customizing-the-find-view/]

  • How to add new item in XFCE menu?

    I just build the Lazarus IDE (not using the one from repo), and would like it to be available under Development menu.
    I made this lazarus.desktop:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Lazarus
    Comment=Delphi-like IDE for FreePascal
    Icon=
    Exec=/usr/bin/startlazarus
    Path=
    Terminal=false
    Categories=Development;IDE;GTK;
    StartupNotify=false
    Then I did this:
    sudo install -m755 Lazarus.desktop /usr/share/applications/
    Lazarus didn't show up on the development. Tried reboot, still didn't work.
    Any idea?

    If you are the only user, why not just create the desktop file in ~/.local/share/applications.
    Also, try removing the path key, rather than leave it blank.
    But I am guessing your problem lies with the blank icon key. According to the desktop file spec on freedesktop.org, this key is required. Xfce being an xdg compliant DE will require this key, otherwise the entry will be ignored as invalid.
    Cheers.
    Last edited by Padfoot (2012-03-03 07:36:01)

  • Unable to insert/add new item in LEGEND visual object

    I'm currently working in Solution manager and I tried to add a legend into one of my view of my web dynpro application.
    Unfortunatly, the Option 'INSERT ITEM' in the context menu is not visible/ not available.
    Is it because of Solution manager or is there any blocking "thing" that avoid me to do that ?
    Thanks for your help.
    Regards
    Stephan

    No help ?

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • How to add Service item in  PR Document using BAPI_PR_CHANGE

    Hi Folks,
    I am using BAPI_PR_CHANGE to change existing purchase requisition document. By using this FM, i am able to add new item in PR document.
    Now my requirement is to add services and limits at item level details.
    But when i saw the parameter list of this FM, i am not able to find any parameter where service details or limits can be passed.
    So does it mean that, its not possible to edit service details at item level of PR by using  FM BAPI_PR_CHANGE?
    Or if yes then how can we do it.
    If No, then what could be the alternative to change the service details of the item.
    Regards
    PG
    Edited by: PG on Aug 30, 2010 6:32 PM

    Hi,
    I just realised that, this question can be asked in specific forum of MM.
    Regards
    PG

  • How to add new xml item(BAPI requset)?

    Hello
    i want to create bom to ERP from mii
    how to add new xml item(BAPI requset)?
    i use bapi CAD_CREATE_BOM_WITH_SUB_ITEMS
    this bapi's format is
    <table>
    <item>
        <col1>1111</col1>
        <col2>bbbb</col2>
    </item>
    </table>
    i want to add <item>
    like this
    <table>
    <item>
        <col1>1111</col1>
        <col2>bbbb</col2>
    </item>
    <item>
        <col1>22222</col1>
        <col2>bbbb</col2>
    </item>
    </table>
    how to set trx?
    i tryed
    SAP_JCo_Interface_0.Request{/CAD_CREATE_BOM_WITH_SUB_ITEMS/TABLES/BOM_ITEM/item[2]/SORTF}
    when error occured
    use MII12.0
    Edited by: Atsushi Iwasaki on May 18, 2010 6:22 AM

    Hi,
    You can try this alternative
    Step 1) Create XML Document with required structure which you want to pass it to BAPI request.
    Step 2) Populate the XML Row with required contents and map it to above created XML document
    Step 3) Map above created XML Document to BAPI request (use assign XML option dfrom link editor rather tha assign value)
    This will help to map dynamic contents to your BAPI request.
    Regards,
    Shalaka

  • How to change the url of "Add New Item" of a particular list in SharePoint 2013???

    Hi Guys,
    How to change the url of "Add New Item" of a particular list in SharePoint 2013???
    I need to redirect it into the page where I have created my Visual web part.
    Please suggest
    Warm Regards,
    Tony Joy

    Hi,
         There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
    Hope it helps!!!
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • Add new Item in VL02n using idocs - delivery returns

    Hello Experts,
    I am using idoc type DELVRY03. I need to add a new line item while changing the outbound delivery (vl02n) "USING the IDOCs only"  and not by adding it manually in the outbound delivery change (vl02n).This item does not prexist in sales order. Instead, after triggering the idoc type DELVRY03, i need to see this new item in vl02n.
    I am unable to get proper qualifier to "ADD" new item in any segments of DELVRY03.
    Any help would be appreciated by rewarding points.
    thanks
    Harikumar Ganti

    Hi.
    Could u solve this problem?
    Im trying the same with idoc DELVRY03 message type WHSCON and I can't add a new item in the delivery.
    Thanks a lot!!!
    Regards

  • How to add new group entry in Cisco Vpn using powershell

    I am working on a powershell script to connect cisco vpn using powershell, I am able to connect to vpn but not sure how to add new group to vpn. I am using the following script$vpn_profile = 'Test'
    $username = 'TestUser'
    $userPassword = ConvertTo-SecureString -String "Password" -AsPlainText -Force
    $credentials = new-object -typename System.Management.Automation.PSCredential -argumentlist
    $username,$userPassword
    $password = $credentials.GetNetworkCredential().Password
    Set-Location 'c:\Program Files (x86)\Cisco Systems\VPN Client'
    .\vpnclient.exe connect $vpn_profile user $username pwd $password
    Write-Host "You Are Connected"
    cd "C:\"

    Have you entered .\vpnclient.exe /? to see if it will return information about other switches you can use with this executable? Other than connect, I was able to track down a few without actually having the executable (http://www.scribd.com/doc/40108893/Cisco-VPN-Client-Command-Line).
    That said, I do not believe that there is a switch that will help you create a connection. These are either done manually through the GUI, or can be likely be added by supplying a properly formatted file in the proper place.
    If you're using the version of the Cisco VPN client I think you are, then your connection settings, or profiles, are stored in individual .pcf files somewhere on your computer (likely in the Cisco directory). These are simple, text-based files. Find one
    on your computer, save it with another name, and then modify it manually. If you really want to use PowerShell, then use this opportunity to learn how to create and edit basic text files using PowerShell. If you have a standard connection file, then you can
    put that file onto remote computers any number of ways. If a .pcf file exists in the proper place when the VPN client is opened, then it likely will not prompt for a new connection.
    Update: Added more info; clarified

  • How to add new tab after reason for rejection tab using tcode va01

    Hello,
    how to add new tab after reason for rejection tab using tcode va01.

    Hi,
    You can check this link...
    Hope it will be helpful to you.
    [https://forums.sdn.sap.com/click.jspa?searchID=23016273&messageID=6825861]
    [http://www.sapdevelopment.co.uk/enhance/fexits.htm]
    -Maharshi
    Edited by: Maharshi Vyas on Mar 3, 2009 12:45 PM

  • How to disable Add New Item in SharePoint 2013

    Hi,
    I want to disable the Add New Item button after the user created one item in SharePoint 2013.
    Is it possible to disable?
    Please reply
    Thank you

    I'd do it creating a custom web part that would mimic the list web part, and have logic in there that makes sure to hide the button once an entry by the current user has been made in the list. You could also create a workflow that would remove the user's
    permission to add a new item on the list upon creating an item.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

  • How to add new attribute in product catalog?

    Hi All,
    Can anyone tell me how to add new field/attribute in product catalog?
    The requirement is to display product's new attribute on product catalog screen.
    Do I need to create any custom java class?
    Need suggestion!!
    Thanks.
    Regards,
    Rupali

    Hello Rupali,
    I am assuming a CRM E-Commerce scenario for my help here.
    Can anyone tell me how to add new field/attribute in product catalog?
    You must start from defining the new Attribute in an exisiting or new Set Type. Use transaction code COMM_ATTRSET. Once you have the attribute / attribute set defined, you can assign this to your catalog - in the header data as the Basic characteristic List.
    to display product's new attribute on product catalog screen
    See catalog/ProductDetailISA.jsp for tips - search for catalog.isa.attribute. The catalog item WebCatItem has all the details available already.
    com.sapmarkets.isa.catalog.webcatalog.WebCatItem currentItem = webCatItem;
    If you want to show the details of attributes in the catalog page - say - catalog/ProductsISA.jsp, the instance of WebCatItem is already available. In this page look for
      <isa:iterate id="item"
                   name="itemPage"
                   type="com.sapmarkets.isa.catalog.webcatalog.WebCatItem">
    You can see that item is an instance of the WebCatItem and follow the code in the <isa:iterate> loop. Using the following code
    Iterator itemAttribute = item.getCatalogItemAttributes();
    will give you the attribute list. You can iterate over the list of attributes and do what you want.
    Easwar Ram
    http://www.parxlns.com

  • Change value of a control in a list item new or edit form depending on the page level view Add New Item being clicked.

    I have a list which has a underlying infopath form for insert and edit a record.
    The list has various views spread across different pages .
    Now depending on different pages "New Item", a value for the form will have a corresponding value.
    If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
    How do i achieve that?
    Thanks...

    Hi,
    According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
    form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
    By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
    which requires custom code can be like this:
    After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
    using jQuery.
    About how to
    get URL parameters of current page using jQuery:
    http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
    About
    adding jQuery into InfoPath form:
    http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • Not able to sync

    Itunes deleted all the songs on my ipod (nano generation-2), and i can't re-sync it. ..Everytime i try to, the message "Songs on the ipod cannot be synced because all the playlists selected for syncing no longer exist." comes up ...can someone please

  • Need help with LSMW for ME23N

    Hey Guys, I have this problem where i need to do a recording for LSMW for ME23N. This are the steps i took: 1. Enter ME23N 2. Click on the Change Button (i can't enter me22n directly to edit when its running a batch) 3. Click on the Drop down List 4.

  • Is there something wrong with my connection

    Im synched at nearly 17mb but speed test show me getting 0.017 download websites take an hour to load. My internet just dropped yesterday and when it came back it was like this stats below. Connection Information Line state: Connected Connection time

  • Installing ps cs6 via cloud over cs6 installed as a purchase

    I purchased CS6 when it was released last year. Today I subscribed to the creative cloud and when I tried to download CS6, which I assume is the extended version, it said that cs6 was up to date. Do I have to uninstall my current copy of regular cs6

  • Are there any corrections to be made on the Reset Angular Position Encoder VI ?

    Are there any changes to be made for the Reset angular position encoder vi diagram?