Not able to accesss Table Veiw Values

Hi All,
I have created a Tableview and the values are displayed perfectly. I have used vectors to populate the rows and columns.
Vector colName = new Vector();
colName.addElement("Description");
colName.addElement("Due");
colName.addElement("Expected");
colName.addElement("Completed");
Vector data = get_dates();
model = new DefaultTableViewModel(data, colName);
Im trying to retrieve values using
public IPageContext context = this.getPageContext();
loopcount = 0;
for (int i = firstrow; i <= lastrow_model; i++) {
loopcount = loopcount + 1;
AbstractDataType data_des=context.getDataForComponentId  
("titleTableView","Description",loopcount);
<b>But Im getting data_desc as null.</b>
Why is this happening and what wrong im doing. How can I get values from table. Im in process of adding new row to the table. Any help is appreciated.
Thanks,
Praveen

I've solved it on my own. Now I'm able to access values. But I have button called add and when I click on the add button I wanted to know the easiest way of adding a row to the existing model. Or do I have to re-create entire model.
Thanks,
Praveen

Similar Messages

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • Could not able to show a scalar value in Page Header/Group Header of the re

    Hi,
    I could not able to show a scalar value in Page Header/Group Header of the report which is returned from Sub-report. But I am able to display it in both Group Footer and Page Footer.
    I used shared variable in formula filed of both main and sub report and both are placed in the main and sub-report.
    Please do needful.
    Thanks & Regards,
    Mani G.S.

    You can only show Shared variables in main report in a location after the subreport has executed.
    If you want to show values in page header or group header you must place subreport in a section above these. This is unlikely to be possible so you will have to live with displaying results in Group/page footer.
    Alternatively you can execute subreport twice, once where subreport is hidden in a section above page/group header and pass summary figure you require and then again where you currently have subreport so you can see details as required.
    Ian

  • Not Able to get to the values from applet while designing from xml

    Hi All,
    I have a new problem, and i am new to this one.
    Like I have an XML file.Where in i am able to design the applet while getting the values from the xml and i am able to store also.
    But the problem comes over here.I have given out a type field in xml.By validating the type field i am able to get Label(),TextField(),etc.,( whatever it is).While displaying i am giving only one single TextField in the init method and i am looping it up.so that i can get the no of text fields ,labels,text areas,etc.,
    so problem comes here.I am not able to get the values from those text fields.(only i am getting the last value.Last value is overwriting the old values.Now i am able to get the last value that i am giving it lastly.)
    So please can anyone give me some idea.As it is urgent to me and i have to submit urgently.
    Please help me out.And Thanks In Advance.

    Here is the sample code while designing the applet:
    String type = (String) typeList.get(j);
                             String option = (String) optionList.get(j);                                   
                             if(type.equals("text")){
                                  txtdisp = new TextField(15);
                                  leadcomp.add(txtdisp);     
    //                              txtdisp.addMouseMotionListener(this);}

  • Not able to see tables while creating an EOo

    While I am trying to create and EO I am not able to see any table.
    I have tested my connection its working fine

    Did you checked the checkboxes given under Database Schema in EO Creation screen:
    Tables, Views, Synonyms and snapshots.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                           

  • I could not able move the table in physical diagram

    hi all
    i have installed obiee..
    there am trying to give physical joins .... there am facing problem that i could not able to move the tables
    wat is the problemmm...
    please help me out
    thanks

    are you opening a physical diagram to create joins? You mean drag and drop does not work while rearranging a table in physical layer?

  • Not able to pass table name as parameter in function

    Hi,
    i am not able to pass tablename as parameter. I am using below function.
    function count_test(tabname varchar2) return number is
    l_count number;
    begin
    select count(*) INTO l_count FROM tabname;
    RETURN l_count;
    END;

    You can't do it with static SQL.
    The only way is to do it with dynamic SQL:
    EXECUTE IMMEDIATE 'select count(*) FROM '|| tabname INTO l_count;
    Regards.
    Al
    Edited by: Alberto Faenza on May 10, 2012 1:44 AM
    Mispelling

  • Not able to import Attribute Text Values in Taxonomy table

    Hi Experts,
    I have an excel file with 54K records of Attribute text values need to import in to taxonomy table. my excel file has 3 fields like ID, Name, Text Values. While mapping the fields in feild mapping grid, I have mapped ID field with Attribute Alias, Name with Attribute name, Text Value with Text Value and clone field of Text Value with [Text Value Remote Key]. Based on the field mapping I was trying to map values for ID filed with Attribute Alias field. Here I found Attribute Alias field has values in destination grid which were imported before for Attribute Name ID's in to the Alias field for attribute names.
    Here I found these values are different when I tried to map these values and the Value map buttons(Automap/Map/Add) were disabled.
    in the same way I tried with out maping the values for Attribute value id and selected the Attribute Alias field as value mapping field. but here in the import actions tab the records are active and disabled the import action option.
    so I have executed the import process, but no attribute text values were imported in to Taxonomy table.
    I am using the MDM 7.1 with build version 7.1.01.46.
    Please let me know if anyone came across this situation.
    Thanks,
    RDNPrasad

    problem solved

  • SQL Developer: Not able to view tables

    I am new to sqldeveloper and oracle products. I've recently installed sqldeveloper onto my pc, i am able to connect to the database but when i try and expand the tables item in the treeview i dont get the tables displayed and the error Warning, unhandled exception:Closed connection is shown in the logging page at the bottom. I have uninstalled the oracle client, jdk but still i keep getting this problem.
    Current versions are
    Operating System= Windows 7 32bit
    SQLDeveloper=3.0.03
    JDK=1.6.0_21
    Oracle Client=11g

    It looks like it may be a privilege issue.
    I ran SQL Developer with 'IncludeConfFile sqldeveloper-debug.conf' in the 'sqldeveloper.conf' file. I got the following log output when I connected to XXAPI (which hangs) and XX (which works)
    For XXAPI, 'oracle.dbtools.db.DBUtil' generates
    Prepared:SELECT object_type type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, object_name, null column_name, null column_id, null data_type
    FROM user_objects
    WHERE object_type ='TABLE' and object_name not like 'BIN$%' and rownum <=50
    union all
    SELECT object_type type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, object_name, null column_name, null column_id, null data_type
    FROM user_objects
    WHERE      object_type ='VIEW' and object_name not like 'BIN$%' and rownum <=50
    and the following log message
    oracle.dbtools.raptor.controls.grid.RaptorGridPersistedSettings - Persisted settings for this table could not be loaded
    For XX, 'oracle.dbtools.db.DBUtil' generates
    Prepared:
    select * from (
    SELECT o.OBJECT_NAME, o.OBJECT_ID ,'' short_name, NULL partitioned,
    NULL iot_type,
    o.OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, NULL EXTERNAL
    FROM SYS.ALL_OBJECTS O
    WHERE O.OWNER = :SCHEMA
    AND O.OBJECT_TYPE = 'TABLE'
    union all
    SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME short_NAME, NULL partitioned,
    NULL iot_type,
    SYN.TABLE_OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, NULL EXTERNAL
    FROM SYS.ALL_OBJECTS O, sys.user_synonyms syn
    WHERE syn.table_owner = o.owner
    and syn.TABLE_NAME = o.object_NAME
    and o.object_type = 'TABLE'
    and :INCLUDE_SYNS = 1
    WHERE /**/OBJECT_NAME NOT IN (SELECT OBJECT_NAME FROM RECYCLEBIN)
    AND not object_name like 'BIN$%'
    which works
    -----

  • Not able to get the profile value set at Responsibility level

    Hi,
    I had set the value of a custom profile at Responsibility level and in CO i used the
    following code,
    String rLocation = pageContext.getProfile("XXTMG_PR_SCP_LOCATION");
    The above call returns NULL. But if i set the value of the profile at Site Level then the above code returns the correct value of the profile. I bounced the apache after the profile option was changed but no avail.
    I even tried using getOADBTransaction().getSpecificProfile() in the AM (which was
    called from CO) as below but could not get the value of the profile,
    Number lRespID = new Number(getOADBTransaction().getResponsibilityId());
    String retLoc1 = getOADBTransaction().getSpecificProfile("XXTMG_PR_SCP_LOCATION","","",
    lRespID.toString());
    Could any of you please let me know whether i have missed something in the code which results in not getting the correct value for the profile at the Responsibility level.
    Thanks, Suresh.

    Instead of passing null for the other parameters in call to getSpecificProfile, can you please set these params and try ?
    Also, please note that if a value is defined at site level, then even if a value is present at the resp level, the value at site will be returned when you use getProfile method.
    Thanks
    Tapash

  • NOt able to update business parameter value in albpm6.0.5

    My code snippet is :
    String now = (String) Time.now();
    processCorrelationArg = now;
    BusinessParameter.updateValue(name : "CEO_PROCESS_SERVICE_LAST_RUN", value : now);
    if I try to access this business param in other activity it won't receive updated value.
    Please Help.

    I'm not sure about your use case, but you might want to consider not using a business parameter for this. I'm a big fan of business parameters, but if I'm trying to expose a variable globally that all processes can read or update (guessing this is what you are doing) you might instead consider using a ServerSession value. It's done like this:
    // this gets the value currently stored that could have been updated by any process
    whenItWasLastRun as String
    whenItWasLastRun = ServerSession.retrieveValueFrom(name : "ceoProcessLastRun")To set the value, do this:
    myDate as Time
    myDate = 'now'
    myTimeString as String
    myTimeString = myDate.format("dd MMM yyyy")
    // set the value so it can be read by any process
    putValueIn ServerSession
            using name = "ceoProcessLastRun",
                  value = myTimeString In answer to your question though, here's logic that updates a business parameter. The input and display statements below are just in there so you can see something interactively happening when you are testing. Don't use the display or input statements in production.
    object as Object
    object = BusinessParameter.getValue(name : "CREDIT_SCORE")
    newVal as String
    newVal = String(object)
    input "Credit score is: " : newVal
    object = Object(newVal)
    updateValue BusinessParameter
        using name = "CREDIT_SCORE",
              value = object
    object = BusinessParameter.getValue(name : "CREDIT_SCORE")
    display "Credit score is: " + String(object)Dan

  • Not able to get the full value from request.getParameter()

    hi all,
    Iam giving a text input value as" Analysis and tracking" in one jsp form.
    while fetching and assigning the value to another variable using request.getparameter , iam getting only the text "Analysis" , the space after it were ignored andnt displaying it.
    Help me in solving this.
    thanx
    Balaji

    I think you are code is something like this
    <input name="xyz" type="text" value=<%=variable%>>
    HTML ignores spaces. Therefore you are only getting Analysis, the first word, when your browser encounters the first space it ignores whatever is present after that.
    One way of overcoming this is putting double quotes around the text value
    <input name="xyz" type="text" value=<% out.println("\"" + variable + "\""); %>
    Thanks.

  • Not able to see tables in third party connection

    Hello All,
    I am using Sql Developer early adopter release to migrate from SQL Server to Oracle Database.
    I have created the third party sql server connection in sql developer.
    Although the migration process is sucessfull,but i cannot see the tables under that connection(ie sql server connection),even though i have given priveliges to all the tables for the user through which I am connecting.
    Anything I am missing here,please help.
    Thanks & Regards
    Sulakshana

    Sulakshana ,
    firstly, you should use the production release 1.2 which is out now.
    Secondly, in sql server, make sure your user has read privs on the db you are testing. I know you have granted privs here, but make sure this is the case in the enterprise manager. The reason I say this is that we show only what you have explicit access to, nothing more.
    Try adding the datareader role to the user in sql server too, which should help you too
    Barry

  • Oracle CDC Not able Drop change table

    Hi ,
    we are trying to execute "DROP_CHANGE_TABLE" prcoedure inorder to drop the change table, However we are stuck with below error
    ORA-06550: line , column :
    ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 1014
    ORA-06512: at line 1
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    exec DBMS_CDC_PUBLISH.DROP_CHANGE_TABLE ('SCHEMA_NAME' , 'TABLE_NAME', 'Y');
    Can someone please let me know what could cause this issue?

    Some of the CDC settings were corrupted we had to delete the data from the dictionary tables and then create the change sets and change tables again.

  • Not able to create table in analysis services data source

    Hi All,
    I am creating a cube with Enterprise edition template when I try to generate the schema I am getting below error.
    All the services are in started state.
    Kindly help us to rectify

    Hi Khushi,
    Please check your user account or credential have sufficient permission to create objects in the underlying data source.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • Help on a C program....

    i'm trying to write an appendString function to stick two strings together, and I'm lost.... it's supposed to be a combination of a C & pascal string with values at the beginning to signify length & a terminating null typedef char* String; int length

  • Terrible feedback/noise using jamlab with macbook

    I don't know where else to post this. I'm sure it's a macbook issue, as I used the same jamlab with my mini. Whenever I use distortion (i've been playing guitar for over 15 years, so I know how much distortion is too much etc... in this case, anythin

  • Problem while sending mail to external mail ids

    Hi All, while trying to send mail to external mail ids through some custom program, i'm facing an error as "recipient not in address management". Can anyone giude me why this is occuring and actually what is this Address management? Thanks & Regards,

  • J2me API to make phone calls

    i want to know whether there is any API available in J2ME to make phone calls

  • How to set a signature field as 'Required' with selection of a Check Box

    I have a set of 3 check boxes and would like to set a unique combination of pre-existing signature fields as 'required' for each respective check box. Given Check Box names of Box1, Box2, Box3 and Signature Field names of Sig1, Sig2, Sig3, can someon