Tables - How to get cell value? How to get/set UI controls properties?

Hi,
I want to get a the cell's value of row x and col y.
The table is not bounded so I cannot use:
Table1.Items(key).DataSourceRow.DataItem("ColID")
Another question:
How to I set the properties of a table column which contains UI elemtents that I create dynamically?
for exmpale:
c1 is a TableBodyCell
tr is a tableRow
c1 = New TableBodyCell(Table1, tr, 0)
c1.TableCellContent = New InputField
tr.Cells.Add(c1)
How do I set/get the properties of the InputField?
Thanks,
Omri

Thanks Reshef,
My Table's scheme:
Column 0 - TextView
Column 1 - InputField
I was able to get a cell value of type TextView by using what you suggested:
Write(CType(Table1.Items(0).Cells(0).TableCellContent,TextView).Text)
However, when I tried to do the exact thing to InputField I didn't get any value (nor error)
Write(CType(Table1.Items(0).Cells(1).TableCellContent, InputField).Value)
I fill the Input Field and then push "Execute" button which supposed to write the value.
About my second question:
By using the cast (CType) I can access the properties I need (like Width) so it kind of solve my problem.
for example:
CType(Table1.Items(1).Cells(1).TableCellContent, InputField).Width = "15px"

Similar Messages

  • Get cell value from Woodstock table

    Hello,
    I am using a Woodstock Basic Table from the NB palette.
    One of the columns is editable and I need to get the updated values upon a button click event.
    How do I get the value of a specific cell from the table?
    Thanks

    Hi Rajashekar ,
    here is the code :
    // Get a handle to the table footer bean
    OATableBean tableBean = ...;
    OATableFooterBean tableFooterBean = tableBean.getFooter();
    if (tableFooterBean != null)
    // Get a handle to the total row bean
    OATotalRowBean totalRowBean = tableFooterBean.getTotal();
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Get cell value in Planning Data form and using it in a business rule

    Hi Everybody,
    if i set the data type of an Account Member as text, is there a way to get the value inserted by the user in a dataform, turning it as dimensional member and using it in a business rule?
    So, if the user insert the value "USA" in a cell, can i use any functions to tell essbase that "USA" is a dimensional member and then using it in a business rule, for example in a cross-dimension like Period1->FY12->USA?
    I tried to use the function @Member and it doesn't work, but i'm wondering if there is a way that can let me get the value inserted and use it just like a dimensional member. What are the ways that can let user input value that can be used in a business rule? I think one is by using SmartList, is there any other ways? Maybe using variables?? As an alternative i tried to use Prompt Variable but there are too many members on which the rule must run.
    Please help me, i wanna know if i can or not let the user input the member on which the rule must run...
    Thank all guys
    Bye
    Maurizio

    Thanks EW for your answer,
    YesI could use SmartList even if i think it's very tough to handle. My experience on using SmartList in caclc script is not so good. I try to enter in details of my requirement:
    I have 500 account members.
    For each one, I have to calculate the monthly budget by sharing the amount among the months. The user wants to calculate it on the basis of the actual flow(over the months) of an unspecified account of the prior year. The unspecified account must be inserted in a data form.
    So, i could use a Smart List but it colud be of 500 elements and then i should make a rule with as many IF as how many are the accounts. Or im wrong? The only way to use smart list dynamically in a business rule is by referring its values in a IF condition. Or i'm wrong.
    I tried to use execution variable ma it seems don't work. In this case the user must pay attention to write the account correctly, otherwise as you say the rule doesn't work.
    The value in PD0A020 is "PD0A000" (that is a dimensional member). The value in PD0A000 is "hello". In PD0A040 the rule returns "PD0A000" and not "hello" as i would. The function @Member appears to be not able to catch the dimensional member by the value in PD0A000.
    {Example}="test"->"Input"->"Scenario_test"->"FY12"->"PD0A020";
    Fix("test1","Input","Scenario_test","FY12")
    "PD0A040"=@Member({Example});
    endfix
    So, my doubt is: is it possible for Essbase/Planning to use the value inserted in a data form and to turn it in a dimensional member? What are the practicable ways to let the user input/choose the member on which makes the rule run?
    Thank you Ew, thank you guys
    Maurizio

  • How to pass querystring value to swfobject and set it in adobe flash

    Hi,
    I must tell that I have not much knowledge about flash.
    I have a flash slideshow on my homepage which displays news by a xml file under http://bit.ly/q48UmE and I am using slideshowpro for it. That slideshow xml file path must be set within adobe flash program.
    Xml file path is under http://bit.ly/pBeaUX if you would add ?lang=en, it would output english version.
    What I need in here, when a language is changed from language selector at header, News must be set as selected language respectively. My question is how to get querystring value and pass it to adobe flash so it is changed and set according to the selected language.
          var flashvars = {
          var params = {
            bgcolor: "#000000",  
            allowfullscreen: "true",
            wmode:"transparent",
          var attributes = {}
              swfobject.embedSWF("swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false, flashvars, params, attributes);
              //attributes.addVariable("dil", "<%=request.querystring("lang")%>");
    Any help much appreciated

    Since there are only two languages to choose from, you could simply use a Javascript document.write() function to write out the alternate object and embed section of that page when/if the user selects English. In any case, you don't want to use Flash vars(). There is no way to get the Flash movie to read a new value after the movie has loaded. You could store the language value change in a Javascript variable and then read that variables value from the Flash movie.
    If you are changing out the entire movie when the language is changed, I would use the first method: Javascript document.write(). If you have both the Turkish and English language content in the same movie then I would use the second method and have Flash read a variable from the language selector. You can use the ExternalInterface class for that.

  • Touble getting cell values from jTable

    Hi everybody, I need some hepl to understand this problem.
    I have jtable and I�m trying to get the values from the cells (first in the jOption panel then to jLabel and to jTextFields).
    All cell values are shown perfectly in the JOptionPanel.
    But I can�t get any values to the jLabel from the first column(0) no matter what row I press from the firts column.
    It gives me this error
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.Integer
         at taulukko3.FTaulukko3.jTable1_mouseClicked(FTaulukko3.java:163)Here is my code where I think the problem is:
    public void jTable1_mouseClicked(MouseEvent e) {
       JOptionPane.showMessageDialog(this,jTable1.getValueAt(jTable1.getSelectedRow(),jTable1.getSelectedColumn()));
          try{
          int valittusarake = jTable1.getSelectedColumn();
           String tulos= "";
           if (valittusarake == 0) {
             tulos = (String) jTable1.getValueAt(jTable1.getSelectedRow(),
                                                      jTable1.getSelectedColumn());
            jLabel1.setText(tulos);
           if (valittusarake == 1) {
             tulos = (String) jTable1.getValueAt(jTable1.getSelectedRow(),
                                                       jTable1.getSelectedColumn());
             jTextField1.setText(tulos);
           if (valittusarake == 2) {
             tulos = (String) jTable1.getValueAt(jTable1.getSelectedRow(),
                                                       jTable1.getSelectedColumn());
             jTextField2.setText(tulos);
    }

    Hi everybody
    I got it workin by making this change to my code:
          if (valittusarake == 0) {
             Object tulos1 = jTable1.getValueAt(jTable1.getSelectedRow(),jTable1.getSelectedColumn());
             jLabel1.setText(tulos1.toString());
          }

  • Can anyone tell me how to Format cell values in numbers? I am wanting to make any negative numbers in brackets.

    Anyone able to help?

    You might want to post questions like this over on the Numbers community since it's more likely you'll find expertise there.
    However, this one I can help with.  If not already showing, you need to turn on the Inspector in Numbers.  You do that by clicking on the Inspector icon in the upper right, showing the inspector box highlighted in red below:
    Now select the cell(s) you want to format and click on the fourth tab (the one with the "42" in a box).  If want no currency sign, select number as your format, while if you want a currency symbol select currency as the format.
    Next to the "Decimals" option is the box in which you can select your "negative" format--you have four options for showing negative numbers, two of which will place negative numbers in parenthesis.
    Note that the inspector box controls a number of options and settings in Numbers. 
    If you used to working with Excel you have to understand that Numbers works entirely differently and will have more than a bit of a learning curve. 
    Generally I find Numbers is the weakest of the iWork offerings.  It is a useful program if you need a heaviliy formatted presentation of pure spreadsheet data, though if you want formatted spreadsheets in a mainly text report the Word/Excel combination works better.
    The program also falls short in a number of areas vs. Excel if your spreadsheet needs go beyond the basic.  It certainly isn't the most efficent at dealing with a large spreadsheet (and, in fact, the fact the default templates all have only a few rows is a good hint that this might not be the product for that megasheet :-) ).
    But if you just have basic spreadsheet needs it certainly can do the job.

  • Moving controls about on a VI's front panel. How do you get a reference to a 'grouped' set of controls?

    Basic problem (annoying, if not disasterous - but common - at least for me):
    When you are trying to sktick two different VIs together and you copy the block diagram of one to the other, it sticks all the controls in the middle of nowhere.  THen you have to spend about 10 mins dragging the controls screen by screen from one end of the diagram to the other - sometimes over 15 screens.  Surely there has to be a better way?
    ** Incidentally you might think that labview would have these sort of settings in the 'properties' of the control on the right click menu - but no joy.
    I guess the obvious thing is that you can write a VI which will get a reference for a particular control and then say set it's position (x,y) to zero.  Only thing is that generally there will be a selection of controls, and often they will be organised nicely - after getting them to zero you don't want to have to reorganise them again.  I tried grouping the controls, but then the problem is - how do you get a reference to a group of controls.  If you move one of them it doesn't keep the spatial arrangement.  At this point i have got lost - and easily spent more time than it is worth fixing this problem.
    Any thoughts?
    Solved!
    Go to Solution.

    If I understand you correctly, when you copy the block diagram from the second VI to the first, the controls of the second VI end up in far left field on the front panel of the first, correct?  I think these added controls will maintain their relative locations among themselves so you should be able to find them all as a group out in left field. Then it's simply a matter of how to get them to enmasse join the rest of the controls on the front panel. There are a couple of easy ways to do this. There is a button on the toolbar at the top of the front panel window that allows you to reorder/group/ungroup front panel objects. You can select all controls/indicators out in left field and "group" them together. (As an alternative, you can also drop them all onto a tab control which will act as container for them). Then you select this group and with it selected scroll back over to the existing front panel and find and ALSO select (hold down shift key) a control/indicator from the existing group too. Then with BOTH the existing control selected and the new group (or tab control with the new group) selected you use the ALIGN buttons to quickly bring a corner of the new group into alignment with the old control. At that point you can ungroup the new stuff and move it where it needs to be. 

  • How can i set/alter control properties programmaticaly in manage bean?

    Hi,
    i want to enable a selectonechoice on click of a button in adf.how can i do this using code in managebean.
    my jdev version is 11.1.1.5.0

    Let say you have binding <af:inputText label="World" binding="#{backing_bean.id1}" id="id1"/>
    and button <af:commandButton text="Press Me!" binding="#{backing_test1.cb1}" id="cb1" actionListener="#{backing_test1.toggleInputText}"/>
    public void toggleInputText() {
    if (id1.isDisabled()) {
            id1.setDisabled(false);
    }

  • How to separate single iView to several and setting its' access properties?

    Hello again!
    Well now I create a single iView from my Web Dynpro application and it's work properly. My app based on CarRentalTutor but cities and vehicles for bookings saved in its' own tables.
    View structure of my app for single view:
    window:
    |----view with only TabStrip
    |--|--1st tab has a ViewContainerUIElement:
    |--||--view with bookings list
    |--||--view wich represents form for add/edit one booking
    |--|--2nd tab has a ViewContainerUIElement:
    |--||--view with cities list
    |--||--view wich represents form for add/edit one city
    |--|--3rd tab exactly like 2nd but for vehicles
    Tasks:
    1) I need create 2 iViews: one for booking list and form for add/edit and second with TabStrip with 2 tabs (for cities and vehicles).
    2) create different roles for diff users - for example, one user can be only view a list of cities & vehicles; second can edit this data; 3-rd can adding bookings and so on. The question is: where I can make an appropriate settings?
    For 1-st task I tried to do follow:
    Create new structure:
    window:
    |----view with only TabStrip
    |--|--1nd tab has a ViewContainerUIElement:
    |--||--view with cities list
    |--||--view wich represents form for add/edit one city
    |--|--2rd tab exactly like 2nd but for vehicles
    |----view with only ViewContainerUIElement (marked as default):
    |--|--view with bookings list
    |--|--view wich represents form for add/edit one booking
    Doing step 6 from http://help.sap.com/saphelp_nw04s/helpdata/en/44/a765695df67037e10000000a422035/frameset.htm
    Of course redeploy the app.
    Creating new iView in portal, choose Create one iView from each application view, select my app and have no views to add
    What was be wrong?
    Regards,
    Lev

    Hello, Sharadha
    Yes, I have noticed about it. But I run my app inside the portal and need to have a multiple iViews.
    Well let's try to do it with easy example: I have 2 views (call it "content views") contains only labels (for simplicity) and want to create 2 iViews - one for every of content views (hope this was clear)
    Steps, wich I made:
    1) create another 2 views (call it "root views"), wich have only ViewControllerUIElement containers
    2) embed content views in these containers - one view per container. So I've got followed structure: root view #1 with embedded content view #1 and root view #2 with content view #2. One of the root views is default
    3) set application property sap.canBeSplitInIViews to true
    4) deploy app
    5) in the portal go new iView->Web Dynpro Java application->Create one iView from each application view. Next I select my app, expand it and see only one view wich have default property set to true, but want to see all views...
    (if I set default property to false for all root views then I see anything in the last step)
    Please check this list for mistakes... I'm going crazy with it

  • How to get TableView cell values

    Hi All,
    I'm new to PDK.
    I have a TableView which set to Single Selection (the table has a column of radio buttons).
    When the user selects a row I want to get the cells' values of the row from the client side.
    I can get the row's number by using the following code:
    tvModel.setOnClientRowSelection("generateNumber(htmlbevent)");
    function generateNumber(myEvent) {
    alert(myEvent.obj.clickedRow.toString());
    Is there a function like getValueAt(row,col)?
    How can I solve this?
    Thanks,
    Omri

    Hi
    There is a function getValueAt(row,col) to get a value at particular row and column.
    Please go through the followin forum thread which is related to your problem:
    Using OnCellClick with TableView to get cell value
    Hope this helps you.
    Regards
    Victoria

  • How to find  dynamic value(screen value) in table control for current row .

    hi to all,
    i used table control in my screen. for column no 2 field i was used serrch help. and for column number 3 i used a dynamic help.
    in change mode you can change any row for table control.
    when i was using search help for a row which was already entered in column no 3 i cannot get any value.
    how i can get value of row no 3 and column no 2 value.
    thanks

    Try using like index for the serarch the TC-current_line

  • How to get the value in a hashmap with a key of expression "123-456"?

    Hi all,
    I new to java and having a problem with getting values from a hashmap.here is the code which i wrote
    Map map = new HashMap();
    int m = 123;
    int n = 456;
    String key = String.valueOf(m) + "-" + String.valueOf(n);
        map.put(key, true);
        Now i am trying to get the value and i get an exception
    boolean b = map.get(String.valueOf(m) + "-" + String.valueOf(n));Can someone help me how to pass this expression as key in the hashamp

    Hi corlettk,
    Thanks for your reply. I have defined my map as Map<String, Boolean> selectedIds = new HashMap<String, Boolean>();
                selectedIds.put("123-456", true);           
                int m=123; int n=456;
                                     selectedIds.put(String.valueOf(m) + "-" + String.valueOf(n),true);
                boolean viv = selectedIds.get("String.valueOf(m)-String.valueOf(n)");
                System.out.println(viv);
                My problem is the hashmap key must be set dynamically ("123-456" is just an example) and when i get the value i should be able to pass those varibales in an expression correctly. Please let me know how can i pass an expression like the one above as a hashmap key. Please advise.

  • How to get Session value in Custom OAF page

    Hi,
    Already existing Custom oaf page is there in that they seted  session value using the following API
    String s = (String)oapagecontext.getSessionValueDirect("page");
    here s is getting null value how can i get the session value is there any another method to get the session value in custom page
    please  anybody help me ASAP.
    Thanks,
    Krishna Mannala

    Hi,
    Is that value set anytime before you are trying to get that?
    Please provide relevant details and code here.
    Regards,
    Sandeep M.

  • How to get multiple value on html chart with apex

    Hi All,
    I'm looking for a way to compare 2 value on a html chart with apex (ex. Budget with expense).
    Some one know how I could make a chart with 2 value ( a kind of histogram with the bar Budget and expenses side to side with only one title)
    Thanks all !
    Edited by: 844999 on 2011-04-05 07:59

    sims wrote:
    Hi Anil,
    Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
    Thnx for ur suggestion
    SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • How to get sequence value on click of button in OAF Page

    Hi all,
    I have a requirement to get a field called Bankrefernece number populated with sequence value on click of apply button ; i mean inserting new record in database for new transaction.
    Sequence Value should be something like this:
    Example
    No     Transfer Date     Bank Reference Number
    (DDMMYY_999)
    1     24-Oct-2010     241010_001
    2     24-Oct-2010     241010_002
    3     25-Oct-2010     251010_001
    means every day sequence should start with the date initials.
    Kindly give your valuable input.
    Thanks
    Sims
    Edited by: sims on Jan 4, 2011 11:22 PM

    sims wrote:
    Hi Anil,
    Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
    Thnx for ur suggestion
    SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
    Thanks
    --Anil
    http://oracleanil.blogspot.com

Maybe you are looking for

  • Clip name in Event vs Timeline

    I am getting organized, and changed the names of the clips in the Event Browser after making the Projects. Is there any way to change the name of the clips in the Timeline to reflect the updated clip names in the Browser? Thanks, Sonny

  • Problems with DynamicSQL.executeQuery in Windows 7

    Hello. Recently I change the version of BPM Studio from 10.3.1.0 to 10.3.3 and run it in Windows 7. Now when I execute an ScreenFlow and find a DynamicSQL.executeQuery show the follow error: automatica:12:45: the method 'executeQuery' from DynamicSQL

  • Plugging my guitar into my interface, i have huge latency problem en gb 08, mac laptop os5.8

    please help, when I plug my guitar directly into my  tascam us 144 interface the latency problem makes it  almost impossible to record a decent track. I am using  GB 08 on a mac laptop with  OS 5.8

  • Search for  BAPI to access it throw Java pro gramme

    dear all Iam search for a BAPI to be used in search for particular customer using one of its attribute wich is stored in kna1 table and also search in its details stored in ADRC taple if possible. and also BAPI for search for equipment using one of i

  • New installation: signature is invalid

    I did a search for 'signature' in topic titles and didn't find the answer to this. I installed the new 7.15 archlinux onto a SD card, and booted, reached this line from the instructions: pacstrap /mnt base base-devel signature from such and such is i