[SOLVED]How to edit a row when VO uses executeWithParams ?

Hi,
I have a table based on a View Object that uses a bind parameter in its where clause.
This parameter is getting set via an ExecuteWithParams action I have in the page. This works fine.
Now I want to be able to edit a row in this result set via a selectOneChoice and the Edit button. I created an edit page and dropped the same iterator onto it and linked to the page in the edit buttons action.
The problem I am having is when the edit page tries to render I get this error :
javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: Attempt to coerce a value of type "oracle.jbo.domain.Number" to type "java.lang.Long"
I don't understand why I'm getting this. Is it because I have not set up an ExecuteWithParams on my Edit page as well ? (the bind variable is a Number). I thought I would only have to set up the executeWithParams on the first page - or do I need to set this up each time I use this View Object becase it uses a bind variable ?
cheers

Once again Duncan Mills comes to the rescue !
It was my EL expression for my JSF page title - exact problem and resolution is here :
http://groundside.com/blog/DuncanMills.php?m=200511

Similar Messages

  • How to edit selected rows in a datagrid?

    Hi all,
    I am new to flex and I would like to know how to edit
    selected rows( through check boxes) in a data grid. As of now the
    whole data grid becomes editable.
    Regards
    Saran.

    This is not simple in Flex 2.0.
    You will need to use a custom itemRenderer.
    Search the net, perhaps someone has a component or sample
    close to what you want.
    Tracy

  • How to close parent window when we use call method l_window_manager- create

    hi...
    how to close parent window when we use call method l_window_manager->create_external_window
    thank you.

    hi
    good
    go through this link,hope this ll help you to solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011
    thanks
    mrutyun^

  • I accidentally quit my CC on my Macbook pro and now the cloud icon is grayed out and every time I hover over it with the mouse I get the spinning beach ball of death on the icon. I have no idea how to open it because when I use spotlight search to open it

    I accidentally quit my CC on my Macbook pro and now the cloud icon is grayed out and every time I hover over it with the mouse I get the spinning beach ball of death on the icon. I have no idea how to open it because when I use spotlight search to open it it gives me a message saying "Creative Cloud is not open anymore" help!

    Since you didn't include any pertinent info such as the Mac model and OS version you are running, here is some general information:
    Mac OS X: Gray screen appears during startup
    Depending on which OS yours came with originally - and which OS you are now running - you would either need your original install disks - you can call Apple for replacements by giving them your serial number. Or you may be able to reinstall the OS by using recovery (again, depends on which model/which OS).

  • How to disabled mutli desktop when I using Full Screen?

    How to disabled mutli desktop when I using Full Screen?
    Some app have a preferences option to do this which like iTerm2
    In Lion-Style FullScreen windows, I can't use command + tab to  quickly switch between in the apps, I must switch to the  app own desktop which is using fullscreen, It's so trouble. I even think this is a flaw in Apple's design.
    So, How can I have use this  feature in others apps such as Google Chrome, Mail, Safari and so on.
    Please Help me!  Thanks! Thanks! Thanks!

    nobody can help me ?

  • How you can find out when someone using your icloud account

    how you can find out when someone using your icloud account

    Someone on a different device only needs to sign with your iCloud ID and password in order to access your account, they don't need to answer any security questions if they have your credentials.  If you think this happened, you should change your iCloud password as explained here: iCloud: Change your iCloud password.  After you change the password, you will need to change it on your devices by going to Settings>iCloud>Account and entering the new password.
    If you want to inquire further about this, contact the Apple account security team: Apple ID: Contacting Apple for help with Apple ID account security.

  • How can i record call when i use handfree

    How can i record call when i use handfree

    Define hands-free, are you using a headset/Bluetooth?
    To note, Recording is not a natively supported function of the iPhone. There are laws regarding this... and in America, both parties have to be notified/in-knowledge of being recorded.
    Where are you from? If outside the USA, Google Voice won't work.
    Have you looked into a VoIP provider that supports what you wish to do?

  • How to Edit selected row in ALV

    Hi Experts,
                    I new to webdynpro ABAP. How to Edit the entire selected row in ALV. Please suggest?
    Thanks in advance.

    Hi,
    I guess you have created the node as dynamic and also set this to the ALV..
    1.  Have you created READ_ONLY attribute of type wdy_boolean inside the node to which the ALV is bound..If not create it first and set the default value for this readonly as abap_true...ie X.
    2.  Got the contents in the internal table.
    bind the table to the node..
    3.Instantiate the ALV.
    4. Now get teh column refrences of this ALV using the cl_salv_wd_config_table..and for columns
    use the cell editor type as cl_salv_wd_uie_input_field...
    loop through the column references and for all refrences create an object of type Input field and inside this class
    use the method set_read_only_field_name ( 'READ_ONLY' ).
    For the table settings if_salv_wd_table_settings of cl_salv_wd-config_table.. set the read only mode as abap_false..
    5 create the custom button in the ALV using the cl_salv_wd_fe_button..
    6 In this go for the events ON_FUCNTION and inside this method..do the coding
    7 .Initially the table will  be set to non editable..
    In the button handler....
    Get the refernece of this node to which the ALV is bound.....
    lr_node = wd_context->get_child_node( 'VBAK' ).  "dynamic node name
    lv_index  = lr_node->get_lead_selection_index ( ).
    loop at it_table into ls_table.
    if sy-tabix eq lv_index.
    ls_table-read_only = abap_false.  "editable
    else.
    ls_table-read_only = abap_true. "non editable
    endif.
    modify table
    endloop.
    lr_node->bind_table( lt_table ).
    If you have any doutbs just refer the previous thread posted on the same..
    You can follow the above steps to acheive thjs..
    Regards,
    Lekha.
    Edited by: Lekha on Dec 17, 2009 6:10 PM

  • Hi experts   it is urgent,  how to read current row when f4 is pressed

    hi all
    i have a field xyz which is input/output enabled.  this field is attached with f4 help. 
    my requirement is to get or read the row when user press f4 on that field so that restrict value should come in f4 help.
    right now f4 is showing all data, but i want data with respect to the row.
    so how to get or read the row when user press f4 i.e user will choose any row and this out is on alv grid and there are multiple records.
    i  hope u understood the query.
    thanx
    rocky

    Hi,
    Use function module DYNP_VALUES_READ and then read the Tables parameter of this function module to get the value of the field. for demo program see this report 'DEMO_DYNPRO_F4_HELP_MODULE'.
    Thanks and regards.
    Tanweer

  • How to edit in ACR when ICC profile not recognised?

    Hi everyone,
    I am getting some of my photographic images made into a book by a large and reputable printer in HK.  They have just sent me their ICC profile and I've figured out how to do soft proofing in photoshop using the profile.
    However, I do 99% of my images adjustments in camera raw, then only open the image in photoshop if I need to do something else camera raw can't do (rarely).
    Is it correct that I won't be able to see how my photo will look when printed until I open the image in photoshop, after I've already done of my adjustments in camera raw, and meaning that I might have to do another round of changes in photoshop??
    Is there any way for camera raw to load the ICC profile so I can see what it's going to look like while I'm making the adjustments in camera raw, not after they're already done??
    HELP!
    Thanks,
    Poppy

    As I asked in the Photoshop Windows forum, what profile(s) have they sent you, along with what instruction?  A printer profile?  A document profile?  Both?
    It may be that you'll want to work on your images in one of the standard document profiles (ProPhoto RGB, Adobe RGB, sRGB) then when you're ready to deliver images to the publisher you'll want to do a Convert to Profile operation.
    But that's getting ahead of things.  You really haven't given quite enough information just yet.
    -Noel

  • How to select multiple row of table using check box?

    hi,
             i am having table on view having first field as checkbox. what i want, when i click on checkboxes in multiple rows, and i click on any button i need to use those content to next view...
              my problem is if i select only one row , i can use onlead select property of table..but when i select multiple rows  through check box how should i read contents of table....?
    Plz solve it.
    Thanks,
    Saurin Shah

    Hello Saurin,
    You are right using LeadSelection you can select only 1 row at a time. You will have to make use of Selection for achieving this. First you will have to change the selection mode of the table to multiple & also change the selection property for the related context to 0..n . Please find a code extract which might help you. (However this facility is only available from SP 14.) The main part is using the set_selected method of if_wd_context_node.
    data: node_zcourse_details type ref to if_wd_context_node,
             node_course_assign type ref to if_wd_context_node,
             elem_course_assign type ref to if_wd_context_element,
             stru_course_assign type if_v_details=>element_course_assign ,
             item_popin_selected like stru_course_assign-popin_selected.
    "     navigate from <CONTEXT> to <ZCOURSE_DETAILS> via lead selection
    node_zcourse_details = wd_context->get_child_node( name = if_v_details=>wdctx_zcourse_details ).
    "     navigate from <ZCOURSE_DETAILS> to <COURSE_ASSIGN> via lead selection
    node_course_assign = node_zcourse_details->get_child_node( name = if_v_details=>wdctx_course_assign ).
    "     @TODO handle not set lead selection
    if ( node_course_assign is initial ).
    exit.
    endif.
    data elem_set type wdr_context_element_set.
    field-symbols <wa_elem> like line of elem_set.
    elem_set = node_course_assign->get_elements( ).
    loop at elem_set assigning <wa_elem>.
       <wa_elem>->set_selected( TRUE OR FALSE ). " Supply either TRUE/FALSE in here
    endloop.

  • How we will get parameters when we uses EMBED tags

    hi ,
    how we will get parameter from applet in netscape. When my swing applet using OBJECT tag, runs in IE it works fine.
    And im able to getting parameter. But in the case of Netscape (that means when i used EMBED tag) im not able to getting the parameter.
    How we will give <param tag in the case of EMBED tag. Im sending my snippet which is for only netscape.
    <EMBED type="application/x-java-applet;version=1.2.2"
    width="800" height="1200" code="myclass.class" codebase='mycodebase'
    pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">
    <NOEMBED>
    </COMMENT>
    No JDK 1.2 support for APPLET--please download the plugin.
    </NOEMBED>
    <param name='parameter' value='value'>
    </EMBED>
    If anybody helps, very much thankful to them
    thanks in advance

    Parameters should be inside the EMBED tag, like this :
    <EMBED type="application/x-java-applet;jpi-version=1.3.1" CODE = "Editor.class" WIDTH = 350 HEIGHT = 200 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html"
    TOOLBAR="true"
    TOOLBAR.FLOAT="true"
    TOOLBAR.ALIGN="east"
    >
    Matthieu

  • How to lock a row before update using UPDATE statement ?

    I want to lock a row before updating using the UPDATE statement! is there any "reserved word" that I can append to an update statement so, that the row get locked!, also, will the lock gets released automatically once the update is done or do I have to explicitly release the lock?
    how can I do this ?
    any help is greatly appreciated.
    Thanks,
    Srini.

    For detail information, see http://otn.oracle.com/doc/server.815/a67779/ch4l.htm#10900
    The lock will be released by "commit".
    FOR UPDATE Examples
    The following statement locks rows in the EMP table with clerks located in New York and locks rows in the DEPT table with departments in New York that have clerks:
    SELECT empno, sal, comm
    FROM emp, dept
    WHERE job = 'CLERK'
    AND emp.deptno = dept.deptno
    AND loc = 'NEW YORK'
    FOR UPDATE;
    The following statement locks only those rows in the EMP table with clerks located in New York. No rows are locked in the DEPT table:
    SELECT empno, sal, comm
    FROM emp, dept
    WHERE job = 'CLERK'
    AND emp.deptno = dept.deptno
    AND loc = 'NEW YORK'
    FOR UPDATE OF emp.sal;

  • How to access database module when i use forms builder 9.02

    hello all:
    i'm migration forms 6i application to 9ias r2.
    My application use a module saved in database and it was referenced by all other forms ,when i use forms builder 9.02,i can't access it .Online help hint :
    open form builder,select edit--preference--access tab,select ask,but i can't find it .Who can help me ?

    Forms modules in the database are not supported in 9i - you will have to extract the module in 6i to the file system and adjust the reference before upgrading the form.
    See the following document on OTN for useful information when upgrading.
    http://otn.oracle.com/products/forms/pdf/forms_upgrade_reference.pdf

  • How does time machine work when being used with a mac pro?

    How does time machine work when backing up a mac pro?
    Considering the fact that the mac pro can hold 8TB and a external (non NAS) hard drive can hold only 2TB does time machine only backup the OS disk.

    macnewcomer22 wrote:
    Considering the fact that the mac pro can hold 8TB and a external (non NAS) hard drive can hold only 2TB does time machine only backup the OS disk.
    Time Machine will backup everything by default, on every disk in your Mac.
    Choose System Preferences > Options to exclude items. You could exclude everything except your OS...but I'd think it is your data that's more important to you, if you have to make choices.
    See...
    http://discussions.apple.com/thread.jspa?threadID=1964018
    While it's true you can store almost 8TB, how much do you think you'll actually store? If you have 1TB of data you want to store then a 2TB drive can do it. Also when your TM drive begins to get full it will begin deleting the oldest backups to make room.
    You could also get a Drobo with 8 bays...
    http://www.drobo.com/products/index.php
    -mj

Maybe you are looking for

  • How to get it working?

    my adobe ID which is needed to read an e-book, purchased and downloaded from ubreader, not working inspite of following strictly the instruction, and writting propper user name and pass ward, but stilll I am getting this maasage repeatedly(Uknown err

  • Help! Nokia Lumia 822 Amber Update Question

    I just changed over to a Windows phone from Android. I purchased a Nokia Lumia 822 and installed the Amber Update yesterday. However, I don't have any of the features from the update available on my phone. My OS version is 8.0.10327.77 and my Firmwar

  • Ootb 2010 approval workflow question

    I have been trying to resolve a custom ootb approval email issue (in another thread) and have not gotten a solution - but I have come across a general question that could be realated but I dont know the answer and have not been able to find this in t

  • Databases link name required without  global_name

    Hi, My global_name is "ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM" when i create any database link the name create like "U_NET_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM" How i eliminate global_name without edit my initora file using SQL . Regards Faheem

  • Not gettinn anay out put on IE and Mozila..??

    Hi Frndz, Am executing a basic WDP ABAP application which is not giving any out put on IE and Mozila, but working fine on Chrome but not all the functions, at least getting the UI eles. On IE itz showing the following errors,java script Message: Inva