How to Make SelectedItem be a Dynamic Variable?

Hi,
My client wanted me to create something that allows certain
DataGrid to display to allow users to edit and update the database
records. The only dilemma I am having here is how to actually
create something from Flex's end to allow users update several rows
of the database at once. Since everything in my HTTPService is in
DataGrid, how can I get Flex to recognize each of the updated
variables while I update the database? I tried using dg.
.id in my code, but I kept getting errors that say it is not
defined. Is there some way where I can make selectedItem be a
dynamic variable?
Thanks in advance.
Alice
This is the current code I have:
Attach Code:
<mx:HTTPService id="save_scenario" method="POST" url="
http://localhost/save_scenario.php"
useProxy="false">
<mx:request xmlns="">
<scenario_name>{scenario_name}</scenario_name>
<id_no>{dg.selectedItem.id}</id_no>
<region_name>{dg.selectedItem.region_name}</region_name>
<population>{dg.selectedItem.population}</population>
<market>{dg.selectedItem.market}</market>
</mx:request>
</mx:HTTPService>

"alice_data" <[email protected]> wrote in
message
news:ggen1o$a3c$[email protected]..
> Hi,
>
> My client wanted me to create something that allows
certain DataGrid to
> display to allow users to edit and update the database
records. The only
> dilemma I am having here is how to actually create
something from Flex's
> end to
> allow users update several rows of the database at once.
Since everything
> in my
> datagrid would be defined as selectedItem whenever a
user accesses the
> entry,
> how can I get Flex to recognize each of the updated
variables while I
> update
> the database?
Add like an updated property to each item in the collection.
Then set it
when the user has changed something. Then filter the
collection to items
that have been updated and send them to the server.

Similar Messages

  • How to make use of the presentation variable in SQL result query

    I have 2 prompts in my dashboard.
    Prompt1 decides the values of Prompt2.
    I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
    To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
    SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
    the query is resulting into
    SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
    but the value in selected_comp is "ABC".
    Can anybody help in how to make use of the presentation variable in query to get the correct value
    thanks
    Shubha

    Just use constrain check box to filter your 2nd prompt values based on the 1st prompt.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Does anyone know how to make my following statement dynamic?

    hello experts,
    In my statement I am getting data for 3 months, however this is static It doesn't give business users the ability to pick the dates they want for the 3 months. So, I want to make it where if one picks a date, lets say Feb 12 to May 12, he will get the 3 months data or if he/she want datfor Feb 15 to May 15th then they can see that.. Below is my static statement, how do I tweak it to be dynamic
    FILTER("Fact - Project Cost"."Cost" USING ("GL Calendar"."Fiscal Date" >=timestampadd(SQL_TSI_MONTH, -3, current_date) and "GL Calendar"."Fiscal Date"<=current_date))
    many thanks as always
    Edited by: 994621 on May 15, 2013 2:07 PM

    Use this and also set "GL Calendar"."Fiscal Date" as Is Prompted
    FILTER("Fact - Project Cost"."Cost" USING ("GL Calendar"."Fiscal Date" <=timestampadd(SQL_TSI_MONTH, 3, "GL Calendar"."Fiscal Date") and "GL Calendar"."Fiscal Date">="GL Calendar"."Fiscal Date"))

  • How to make bookmark tree open dynamically when moving in the content?

    Intro: When viewing a PDF-file with a bookmark tree, I can unfold(open) nodes in the bookmark tree and make the view window jump to the corresponding destination.
    If the bookmark tree is open (unfolded) I can observe a selection mark moving downwards in the bookmark tree as I move down in the content.
    Question: Is it possible to make the folded bookmark (outline) tree open dynamically as I move down in the content? I would like to see the bookmark tree unfold automatically and move the highlight to the bookmark (outline) node for the bookmark position nearest to (above) the view point in the content window.

    Dave,
    thank you for quick and precise answer.
    Magne

  • How to make excel and Xcelsius dynamic?

    Hello,
    I have Xcelsius version 4.0.4.7.  I use it for creating our departments dashboard for metrics.  I have 6 departments to create metrics for.  I use Excel for the spread sheet.
    Data is displayed via bar charts showing different categories on how they perform over a one year period.  For example from October 2007 to October 2008.  The graphs look great.  However, I am the one updating the metrics and my boss would like to see it become all dynamic.  Where all the department managers could enter the data and have the charts automatically update.
    I am in charge of our departments' web site and would still have to update the SWF to the server.   Which is fine.
    My question is "can Xcelsuis 20080 be able to handle this request?".
    Regards,
    DJ

    Dynamic datasources for Xcelsius
    find this please
    good luck
    Amr

  • SRM 7 - How to make a custom field dynamically retrieved trigger a refresh?

    Hi all,
    we're working on a brand new installation of SRM 7.
    For contracts and purchase order, we created an enhancement on the webdynpro that manages header document data; in such view, custom fields are obtained dynamically and populate a Transparent container; by code, some tray group visually all the custom fields related to a specific section.
    Now, the task is quite general; some of these "dynamically retrieved" fields should refresh, when populated, the view.
    That is to say, in our context, that some custom field should automatically trigger the WDDOMODIFYVIEW method (which has been extended via overriding with an enhancement) when a value is inserted.
    This would be a simple task if the field is explictly visible in the layout screen, since I could easily associate an event to the field itself.
    But, since these custom field are automatically extracted in the WDDOMODIFYVIEW method, we don't know how to manage these field's behavior, e.g. after an input value has been inserted.
    Each dynamic custom field is a type ref to cl_wd_uielement; we wonder if we have a way to associate an event (e.g., onEnter) to such an element.
    Thanks in advance for any suggestion or help you will give us
    EDIT: I guess this could not be the best section for such a kind of question ... I'd gently ask moderators eventually to move the thread to the Webdynpro section, if necessary. Thanks in advance.
    Edited by: Matteo Montalto on Oct 7, 2010 6:01 PM

    Closed. I opened a thread on this topic in a more convenient section of SDN forums (Specifically, web dynpro abap). Thanks anyway:)

  • How to make my Flash content dynamic in HTML5 output?

    Hi,
    Recently I started to make my website dynamic. and experienced some issues while making my content - dynamic. here is link to my website (so you can see what I'm tryin to do) https://www.economycarbooking.com you can find section "Tutorial" with my flash content so this is what I'm tryn to do. At the moment it isn't dynamic.
    Please help!

    I'm not sure but if it can help you here is second website https://www.miravtoprokata.ru/ You can find same section as it is named "Инструкция бронирования",
    also try to view my HTML source code.

  • How to make a outer join dynamically

    I need to make a a dynamic join based on column values ie I want to do the following for ex. IF a.column1='A' and a.column2='B' then my where clause should be a.job_num=b.job_num(+) and a.po_num=b.po_num(+)
    ELSE my join caluse should be
    a.po_num=b.po_num(+).
    Has anyone ideas?.
    I do not want to check conditions and concatenate the string to make the appropriate sql

    It doesn't necessarily have to be dynamic SQL.
    begin
      select column1, column2 into var1, var2 from table1 ;
      if var1 = 'A' and var2 = 'B'
      then
        select more_columns into var_columns
        from table2 a, table 3 b
        where a.job_num=b.job_num(+) and a.po_num=b.po_num(+) ;
      else
        select more_columns into var_columns
        from table2 a, table 3 b
        where a.po_num = b.po_num(+). ;
    end ;

  • How to make Report to create dynamically from datamodel

    Hi All,
    I am able to make a report data, if the datamodel is create as sample data.
    I tried to map the datamodel which is doesn't contain any sample data and trying to map to report so that it can generate data dynamically. It always throws
    "Error: Data Model does not contain sample data. Please edit Data Model and save with sample data."
    I want to create a dynamic data so when ever I make a webservice call to runReport it must pick the data from datamodel and create the report.
    Thank's in advance.

    Sarada,
    1) After you create your data model then you next have to run it.
    Click on the XML icon on the right hand side:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bip/bip11g/gettingstarted/images/t30401.gif
    2) When you get to this page. Click on RUN
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bip/bip11g/gettingstarted/images/t30310.gif
    3) Finally, and this is perhaps the step you are missing. Click on Save as Sample Data:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bip/bip11g/gettingstarted/images/t30402.gif
    Cheers
    Jorge
    p.s If this answers your question then please grant the points and close the thread

  • How to make table control rows dynamic/unlimited using TC with Wizard

    Hi Friends ,
    I have designed a table control layout using table control with wizard.
    Now the problem is when we design a TC layout ,then we have to design it on the page . The page has upper & lower limits. so the maximum size & maximum rows in layout is limited. I have tried to create a TC layout with maximum size & maximum rows . Maximum rows created in Layout is 25.
    Now suppose if enduser wants 100 entries to enter by coping a file of 100 records in my TC present on entry screen , then ONLY 25 entries are displayed on entry scren before doing any user action or saving and after saving only these 25 entries are sved in DB. Means enrtries from 26 to 100 are not displayed on entry screen or saved in DB.
    So my requirement is to display all 100 entries at a time in entry screen before saving with scrolling up & down facility and these 100 entries should also get saved in DB after clicking save button. In short I want dynamic entry screen table control which can show/dieplay Any Number . of entries whatever the number may be entered by enduser .
    Plz note that I have used all 3 facilliteis i.e.
    1. Scrolling
    2. INSERT/DELETE
    3. SELECT/DESELECT
    while designing TC with wizard .
    Scrolling buttons like FIRST PAGE, PREV. PAGE, NEXT PAGE, LAST PAGE are displayed.
    BUT they are not functioning though there is system generated code present in both MPP and in PBO & PAI. After clicking any of them , data which is dislaying on entry screen ( Here it is 25 entries ) is getting cleared/disappeared from enry entry screen.
    Waiting for ur response & solutions.
    Thanks & Regards,
    Sudhir

    Hi Ashish ,
    Do one thing .
    At PAI of screen holding TC , there is module name tc_mark on request .
    in this module , there is work area declared g_tc_wa .
    Now go to tc_init module of pbo , where u have given your select command .
    select * from ........................................
    use this code .
    if g_tc_wa is initial .
       SELECT * FROm
       g_tc_wa = 'X'.
       REFRESH CONTROL 'TC' FROM SCREEN dynnr.
       ENDIF.
    Just do this , m sure all buttons, insert, delete , scroll bar.. everything will work .

  • How to make Inputfield read-only dynamically?

    Hello Experts,
    I used an input-field which the user can enter values through F4 help. After user selection, I want the input field to be read-only.
    And again if user wishes to change the value by F4 help, the input-field should be editable. Can we achieve this.
    Actually by using dropdown I can achieve this. But is it possible in WD4A as I stated above?
    Regards,
    Yugesh A.

    Hi,
    Is this SH a custom one. Or you getting values from the DOMAIN.In this case, MODIFYVIEW gets triggerd. Also can make use of context change log.
    Or
    It can be possible when you have a OVS or custom SH so that an event has attached to it whcih gets triggered.
    Regards,
    Lekha.

  • How to make Offline Interactive form Dynamic in nature?

    Hi,
    I am using SFP to create Interactive forms. In Form properties -> Defaults, I have set "Interactive Form" and "Dynamic Form" in Preview box... Data is read from XML and in the preview tab of SFP, form works just fine.
    In the function module call, I have set Fillable = 'X' and also Dynamic = 'X' for docparams.
    When I run the program and create the form, drop down list is not displayed properly.. when I had not set dynamic = 'X', I could not see any value at all in the drop-down field.. after setting dynamic = 'X', I just see one (first) value populated in the drop-down field, but the field does not show any drop-down to choose other values from..
    am i missing any setting or doing anything wrong?
    thanks.

    Hi,
    I am using SFP to create Interactive forms. In Form properties -> Defaults, I have set "Interactive Form" and "Dynamic Form" in Preview box... Data is read from XML and in the preview tab of SFP, form works just fine.
    In the function module call, I have set Fillable = 'X' and also Dynamic = 'X' for docparams.
    When I run the program and create the form, drop down list is not displayed properly.. when I had not set dynamic = 'X', I could not see any value at all in the drop-down field.. after setting dynamic = 'X', I just see one (first) value populated in the drop-down field, but the field does not show any drop-down to choose other values from..
    am i missing any setting or doing anything wrong?
    thanks.

  • How to make Path point from inputed variable

    Hi Im wandering how I can replicate the rectangle tool in Illustrator where by I can input sizes into a window and it shall draw an object for me. The problem I have is stating that a point should be a (variable1,variable2) instead of (X,Y)
    im using the java ExtendScript Toolkit. so im trying:
      var docRef = documents.add();
        var piRef = activeDocument.pathItems;
        var pathRef = piRef.add();
      pathRef.setEntirePath( new Array(
      new Array(0, 0),
      new Array((shapeWidth), (shapeHeight)) ) ) ;
    Although what im looking to do is more complex this is the part giving me trouble
    any help would be greatly appreciated

    Thank you for the response
    Yeah, I understand. I have to put the keyword first, the problem is sometimes I transfer almost around 800 photos at once. I haven't had much time to sort every photos and put the keyword on every Path photo. Beside so many photos in my library, and not well-organized. Also I have tried any possibilities of relevant criteria in smart album. But still zero result.
    So, before I actually take the time to organize my thousands of photos manually, I was thinking maybe there's another way, simple and smart one, with this smart album feature. Anyone?
    Ismail

  • How to make text fields grow dynamically without overlapping the text below it?

    Hi..I'm a newbie to Adobe Livecycle and I need a create a form that has a textfield that should grow dynamically and expand without overlapping the text below it. I tried using subforms, saving as Dyanmic PDF, checking expand to fit option but nothing seem to work! I really need help designing this form.

    Thanks for the reply. Yes I did but still didn't work out well. I'm trying to add my pdf form as an attachment here but I'm unable to do it! Where do I find add attachment option?

  • How to make a form Dynamic(Serious Issue)

    Hi,
    I have a problem.
    How to make an Interactive form Dynamic while saving it in NWDS(NetweaverDeveloperStudio).
    Helpful answer is highly rewarded and Highly Appreciated.

    Hello Sankar,
    Do the following:
    1) In your Adobe Livecycle Designer, Select, Edit > Form Properties, in the Default tab, set u201CPreview Typeu201D to u201CInteractive formu201D
    2)
    Assuming you are using Web Dynpro application, then do the following also:
    Place the following code in the wdDoModifyView method of the View where the form is placed.
              IWDInteractiveForm iForm1 = (IWDInteractiveForm) view.getElement("<name of your form here");
              iForm1.setDynamicPDF(true);
    Hope this helps,
    Harman

Maybe you are looking for