Referencing tableSection[n].row.textfield from a funtion as text source for button toolTip

I have a global variable: lossPayees
I have a function that is called by the "click" event of a button:
payeeButton.clickIncrement(this);
This funtion is intended to perform 2 tasks:
     1) change the caption on the button
     2) change the toolTip on the button
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        function clickIncrement(oButton)    {
         var capTxt     = "";
         var txtIndex   = 0;
         var ttTxt        = "";   
       if    (oButton.caption.value.text.value < lossPayees.value)    {              
             capTxt = String(1 + parseInt(oButton.caption.value.text.value));
             oButton.caption.value.text = capTxt;                              }
// so far, so good--everything works perfectly--more hoops to jump thru than you might expect--but the button caption changes/increments perfectly
// but now is where the trouble begins--I want to continue with this funtion and have it change the button's toolTip
// 3 line of code are added:
     if    (oButton.caption.value.text.value  < lossPayees.value)    {
              capTxt = String(1 +  parseInt(oButton.caption.value.text.value));
              oButton.caption.value.text = capTxt;
             txtIndex = parseInt(capTxt, 10) - 1;         //create an index
             ttTxt = String(txtIndex);                         //convert the index into a string
             oButton.assist.toolTip.value = ttTxt;     //feed it to the toolTip
//now this works--but it is not the goal--you can actually assign any string to the variable ttTxt and it works
//however--I want to fill the toolTip with text from a text field (using reference syntax):
        function clickIncrement(oButton)    {
          var capTxt     = "";
          var txtIndex   = 0;
          var ttTxt        = "";   
     if    (oButton.caption.value.text.value  < lossPayees.value)    {
              capTxt = String(1 +  parseInt(oButton.caption.value.text.value));
              oButton.caption.value.text = capTxt;
             txtIndex =  parseInt(capTxt, 10) - 1;                                                                                                                    //create an index
              ttTxt = xfa.resolveNode("Page1.SubformLP.TableLP.TableSectionLP[txtIndex]").Row1.TxtLP.rawValue;  //use the index       
          oButton.assist.toolTip.value = ttTxt;                           }                                                                                         //feed to toolTip
    else                                                        {
        oButton.caption.value.text = "0";
        oButton.assist.toolTip.value = "None";     }
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I don't get any errors--the toolTip acts like that part of the script doesn't exist. The button shows the new caption and the tooTip also shows the new caption (which is the default, I believe),  instead of the text from the text field. Normally you'd expect an error from JavaScript saying it can't find the referenced object--but I don't get anything like that. BTW: using Designer ES2 9.0
Maybe the toolTip part of the script should be separated from the caption part (creat an additional function) and perhaps on a different event? Like I said, It works if I feed it a string--just won't work with reference syntax? I don't get it.
Any insight? Thanks in advance!
Stephen

All the code above isn't rendering on my browser--although I see it in the HTML source! What a mess. Try this:
function clickIncrement(oButton){
    var capTxt    = "";
    var txtIndex    = 0;
    var ttTxt    = "";  
if    (oButton.caption.value.text.value < lossPayees.value)    {
    capTxt = String(1 + parseInt(oButton.caption.value.text.value));
    oButton.caption.value.text = capTxt; 
    txtIndex = parseInt(capTxt, 10) - 1; 
    ttTxt = xfa.resolveNode("Page1.SubformLP.TableLP.TableSectionLP[txtIndex]").Row1.TxtLP.rawValue; 
    oButton.assist.toolTip.value = ttTxt;            } 
Else                        { 
    oButton.caption.value.text = "0"; 
    oButton.assist.toolTip.value = "None";    } 

Similar Messages

  • How to move a selected row data from one grid to another grid using button click handler in flex4

    hi friends,
    i am doing flex4 mxml web application,
    i am struck in this concept please help some one.
    i am using two seperated forms and each form having one data grid.
    In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in  the second datagrid.
    i dont want drag and drop method, i want this process only using button click handler.
    how to do this?
    any suggession or snippet code are welcome.
    Thanks,
    B.venkatesan.

    Hi,
    You can get an idea from foolowing code and also from the link which i am providing.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.binding.utils.BindingUtils;
    [Bindable]
    private var allGames:ArrayCollection;
    [Bindable]
    private var selectedGames:ArrayCollection;
    private function initDGAllGames():void
    allGames = new ArrayCollection();
    allGames.addItem({name: "World of Warcraft",
    creator: "Blizzard", publisher: "Blizzard"});
    allGames.addItem({name: "Halo",
    creator: "Bungie", publisher: "Microsoft"});
    allGames.addItem({name: "Gears of War",
    creator: "Epic", publisher: "Microsoft"});
    allGames.addItem({name: "City of Heroes",
    creator: "Cryptic Studios", publisher: "NCSoft"});
    allGames.addItem({name: "Doom",
    creator: "id Software", publisher: "id Software"});
    protected function button1_clickHandler(event:MouseEvent):void
    BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
    ]]>
    </mx:Script>
    <mx:Label x="11" y="67" text="All our data"/>
    <mx:Label x="10" y="353" text="Selected Data"/>
    <mx:Form x="144" y="10" height="277">
    <mx:DataGrid id="dgAllGames" width="417" height="173"
    creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:FormItem label="Label">
    <mx:Button label="Move" click="button1_clickHandler(event)"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Form x="120" y="333">
    <mx:DataGrid id="dgSelectedGames" width="417" height="110" >
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Form>
    </mx:Application>
    Link:
    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • Do not Extract from PSA but Access Data Source (for Small Amounts of Data)

    Hi Experts,
    In the DTP, the above option is available for Full Loads for certain extractors but not for others, particularly, certain HR extractors?
    Is there a way to make it available for HR extractors?  Is there a setting that needs to be updated in ECC or in BI?
    Thank you for your help!

    Hi,
    There is no special setting for this, Please see the detail description:
    Data is not extracted from the PSA for the DataSource; it is requested from the data source directly at DTP runtime.
    Use
    You use this mode for small data sets and full uploads, for example, small sets of master data. With file source systems, note that the file has to be available on the application server.
    Dependencies
    You do not have to create an InfoPackage in order to extract data from the source.
    Data in the data source is accessed in "direct access mode". This has certain consequences, especially if you are extracting data from SAPI systems:
    Data is extracted synchronously. This places a particular demand on the main memory, especially in remote systems.
    The SAPI extractors may respond differently than during asynchronous load since they receive information by direct access.
    SAPI customer enhancements are not processed. Fields that have been added using the append technology of the DataSource remain empty. The exits RSAP0001, exit_saplrsap_001, exit_saplrsap_002, exit_saplrsap_004 do not run.
    If errors occur during processing in BI, you have to extract the data again since the PSA is not available as a buffer. This means that deltas are not possible.
    In the DTP, the filter only contains fields that the DataSource allows as selection fields. With an intermediary PSA, you can filter in the DTP by any field.
    Regards,
    Kams

  • Prepopulate multiple records from a tab delimited text database for distribution, completion, return

    I am using Acrobat 8 Pro and am trying to prepopulate a form about 900 times for distribution, each with its own unique data. I can only get Acrobat to populate form at a time. I can't get LiveCycle to read the data, even as .xml so I have to do this through Acrobat only. Does anyone know how to batch read and print?

    This forum is for the Adobe FormsCentral (formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask PDF related form questions in the Acrobat forums: http://forums.adobe.com/community/acrobat/acrobat_windows
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • Donot extract from PSA. Access datasource directly (for small amts of data)

    Hi Experts,
    I am facing issue in DTP screen. I dont see File extraction selection path in DTP screen.
    My requirement is to load the csv file directly into DSO.  Here I dont use PSA /Infopackage.  I want to do this by DTP selection.  But in DTP selection I dont see File extraction options.
    In DTP screen I dont see Check Box which says " Donot extract from PSA. Access datasource directly (for small amts of data) "
    Last week we have upgrade/applied support packs.  So I am assuming that is this issue occured due to upgrade activity or it is something other way which iam missing.
    Appreciate your early response.
    Many thanks for your help.
    Regards,
    Saji

    Saji
    What is the location of your CSV file? Your Local machine or Application server ?
    I believe it has to be application server to have this settings.
    If you think this problem got created due to upgrade , you can try to create a FULL DTP for any of the master data/text DataSource and check if the option is coming there. If yes, then upgrade did not create any problem and you are sure this is a settings problem.
    Please check this thread....Do not Extract from PSA but Access Data Source (for Small Amounts of Data)
    Regards
    Anindya
    Edited by: Anindya Bose on Mar 10, 2012 10:23 AM
    Edited by: Anindya Bose on Mar 10, 2012 10:38 AM
    Edited by: Anindya Bose on Mar 10, 2012 10:38 AM

  • Is there dynamic rows fetch from EXCEL sheet

    I had problem i am using a code which fetches the records from EXCEL sheet and puts into a structure called ALSMEX_TABLINE and i am using the FM ALSM_EXCEL_TO_INTERNAL_TABLE in that i have to pass the parameters i_begin_row and i_end_row that is static one , how to avoid that it takes records to the end of last row .

    Hi Vikranth,
    If you want to delete the last row..then there is one way...
    after grtting data from this Funtion Module....just get the number lines...
    code like this:
    describe int_excel lines ws_line.
    delete table int_excel index ws_line.
    Hope it will solve ur problem.
    Regards
    Krishnendu

  • Row Status from Client

    Is there a way to check a Rows status on the client side in an ADF Swing application in JDeveloper 10.1.2? I see that you can check it in the custom EntityImpl, but that doesn't help me on the client side. In our scenario, we have a JDatePicker component that we need to restrict the available dates after the users change the year value in a bound TextField. We only want to do this on a new row, however. So once the year field is changed on a new row, we want to call a client side method that restricts the available dates. Unfortunately, the date selection model of the date picker isn't bound, so we don't see a way to handle this scenario since we can't restrict it from the EntityImpl and we can't get the Row status from the client.
    Any suggestions would be appreciated.
    Thanks
    Erik

    Ok. So there doesn't appear to be a clean way of doing this in ADF. I can pecemeal something that seems to work using a PanelRowSetListener and some flags, but it isn't a very clean solution. This is something that an Oracle Forms developer would probably do in most projects. It's kind of hard for you guys to lure Oracle Forms developers to ADF if it's missing common functionality such as this. May we request an enhancement to the Row interface to allow it to actually return it's status in some future JDeveloper release?
    Thanks
    Erik

  • How to Customize the Message "No Row Returned" from a Report

    Hi,
    I've been trying to customize the Message "No Row Returned" from a Report.
    First i followed the instructions in Note:183131.1 -
    How to Customize the Message "No Row Returned" from a Report
    But of course the OWA_UTIL.REDIRECT_URL in this solution did not work (in a portlet) and i found the metalink document 228620.1 which described how to fix it.
    So i followed the "fix" in the document above and now my output is,..
    "Portlet 38,70711 responded with content-type text/plain when the client was requesting content-type text/html"
    So i search in Metalink for the above and come up with,...
    Bug 3548276 PORTLET X,Y RESPONDED WITH CONTENT-TYPE TEXT/PLAIN INSTEAD OF TEXT/HTML
    And i've read it and read it and read it and read it and can't make heads or tails of what it's saying.
    Every "solution" seems to cause another problem that i have to fix. And all i want to do is customize the Message "No Row Returned" from a Report. Please,...does anyone know how to do this?

    My guess is that it only shows the number of rows it has retrieved. I believe the defailt is for it to only retrieve 50 rows and as you page through your report it retrieves more. So this would just tell you how many rows was retireved, but probably not how many rows the report would contain if you pages to the end. Oracle doesn't really have a notion of total number of rows until the whole result set has been materialized.

  • Get selected row values from Table view control

    Hi ,
    I am using transaction ME23N, would like to access row values from item table for selected row. I have written a script as in screen shot and its giving me error at java script step two. I want to get the PR number from item table for selected row.
    With Regards
    Vishal Lokapur

    H Vishal,
    Can you please share how you were able to resolve the issue regarding the selected row
    in case of a table control .
    Regards

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

  • How to pass the selected table row data from popup to source view

    Hi ,
    I have requirement of passing the data from popup view to source. , searching some data in  popup view and displaying in table,
    Like i am passing some input and click search button will display the data in table, when select any of the row in the table and click on the another button , i should be able to pass the select row to the source view and also should close the popup.
    When i implement , In the popup windiw, when i enter the customer no, and click on search button, it is closing the popup itslef. not able to see the data in popup.
    Can u tell me what is that soultion.
    Regards
    Vijay

    Hi Harsimran
    Thanks for the reply,
    1) Source view
    In  "Source View" i have input field called Customer_no. But,  the end user will not have any idea , what customer no to enter. so i am searching the customer no in the popup view.
    1) Customer_no( This is an inputfiled , to get the customer no from the popup view)
    2) Get Customer NO( This is a button to call the popup view)
    "Get Customer NO" This button action will open the popup view.
    In this popup, i have
    1) Input field (To enter the search term)
    2) Search (To seach the customer no based on the search term)
    3) Table ( To display the search data)
    4) Button in Table tool bar called "Select" .( To close the popup view after selected the required data in the table to pass it back to the source view).
    so in the popup view what happening is, when i click on the search button itself , it is closing the popupview  by transfering the first row of the tbale ,with out select the required row in the table.
    i need to close the window after click on the "Select" button in the toolbar , after selected the required row data to trasfer in the table.
    Can u pelase tell me what are the modifcations i need to do it.
    Regards
    Vijay

  • How to move multi select rows(records)from one datagrid to another datagrid completelly in flex4

    hi friends,
    I  am doing mxml flex 4 wep application i am using 2 forms, each form i am using datagrid,i am struck in this place,
    my proplem is, in first form i am having a grid with 10rows and columns,i am having 10 records and one move button. Next form also having a datagrid,
    need:
    IF i am doing multi select(2records) from the first datagrid and click move button means that records will show in the second datagrid and will also delete
    from the first data grid again it wont show the records in same datagrid.
    how to do this?
    any useful suggession or snippet code.
    thanks in advance,
    Cheers,
    B.venkatesan.

    One solution could be:
    Source to data grid is an Array collection
    1.> In first data grid extraxct the rows using, grid.selecteditem
    2.>Add it to the arraycollection attached to next grid, use arraycollection addItemat api if rows needed to ve added at particular index
    3.>Use removeitemat api to remove the items from arraycollection attached to first datagrid
    4.>call invalidate on bothe of the datagrids

  • Inserting static text in between rows returned from a pivot table

    Is there a way to type static text (eg. “Note that the data for Land has an accuracy of 98%”) in between rows returned from the dataset in the rtf template. The alternative would be to break the BI analysis report (which is the source of the template data) into 2 parts and then insert each part into the template one below the other with the text typed in between.

    Oracle support has confirmed that this requirement is not possible to implement

  • GetRowIndex of richTable returns different row num from what is defined in the generated page

    Hi,
    I am using jdev 11.1.2.4...
    I have a binding to a RichTable. When I use dataTable.getRowIndex() I get the right row numbers, from 0.
    When I look at the source of the page in the browser, after pressing execute query - the row num in the page increases by the total number of rows in the table.
    So when I need to get the inputText clientid (to open a popup next to it) I can't get the right client id.
    for example:
    For the first time the page is entered the id is: pt1:weekTab:2:inTime1
    after pressing execute query the same field is called like this: pt1:weekTab:13:inTime1
    Does this may have something to do with that I use contextual event to run the "execute query" (the dates are on a fragment inside the page )?
    Some other definitions of the table?
    Thank you,
    Nina

    Hi,
    no it has to do with the fact that tables are stamped and the components in the table cells are no object instances. Do you launch the popup programmatically ?
    Frank

  • Is it possible to count the rows returned from a query?

    Hello,
    When using JDBC is there anyway of finding out the number of
    rows returned from a query before actually getting each row?
    In Forms 4.5 you can use the count_query function, does anyone
    know of an equivalent function or work around in JDBC and/or
    SQLJ?
    Thanks.
    null

    Pasi Hmlinen (guest) wrote:
    : Try
    : SELECT COUNT(*) FROM the_table WHERE <conditions>;
    : Hope this helps,
    : Pasi
    Thanks for the advice, I'm currently using SELECT COUNT(*) but
    I'm looking for a more efficient way of doing it. If I SELECT
    COUNT each time then I have to prepare and execute a SQL
    statement each time. What I want to do it execute a single SQL
    statement to return my results and somehow find out the number
    of rows in the resultset without having to go back to the
    database.
    Gethin.
    null

Maybe you are looking for

  • Fed Up with FiOS DVR 7216 - Convince Me NOT to Buy a TIVO

    My network:  Mid Tier Internet, MultiRoom DVR on Std Def TV, HD STB (to share DVR), 2 basic STBs. I can't tell if it's the DVR itself or if it's the way the programming comes into the house (i.e. bouncing around the internal network), but too often I

  • A pop-up window requiring a response does not close after being responded to.

    A club membership database uses pop-up windows to request preferences for displaying information on the database. The window should close after the preference is saved. This closing occurs with Internet Explorer, but not with Firefox. The requested i

  • Flex 2 charting trial watermark appears when building via Ant

    The trial watermark appears when building with the flex Ant tasks, but not via Flex Builder 2. I believe the Ant tasks set up the compiler options with the same arguments in FB, and the build library path is also the same, but the trial watermark sti

  • How to create background

    How can I go about creating an adjustable background like in the following site http://www.polyalto.com/produits.asp I presume the width of the background changes depending on the resolution of each monitors. Thanks guys

  • Hierarchy in obiee 11g

    Hi All, we have a to create a hierarchy for the below type. H1-->H2-->H3-->H5 -->H4 H1 | H2 | | H3 H4 | H5 How to create this type of hierarchy..? When we click on H1, H2 will display, when we click on H2, H3 and H4 should display, then clicking on H