How to set one custom SQL to blank

I would like to manage the update of the objects of a given descriptor in the code of an "about to update" method (toplink event).
At the same time I would like the default update statement does not occur any more. I was thinking about setting the update sql query in my descriptor, using workbench (custom sql section). But what should I write down here.
Please advice,
Chris

This is fairly advanced; you could do it a few different ways:
1 - Set the custom update SQL to some no-op operation, i.e. "Delete from Dual where 1 = 2".
2 - Use a redirect UpdateObjectQuery for the descriptor's update operation.
3 - Use a custom query subclass for the descriptor's update operation.
i.e. something similar to,
descriptor.getQueryManager().setUpdateQuery(new UpdateObjectQuery() {
public void executeCommit() {
// custom update code here.
public void executeCommitWithChangeSet() {
executeCommit();
4 - Use a custom call on a descriptor's update operation.
What are you doing instead of the update?

Similar Messages

  • How to set a custom column in a workflow task.

    Hello,
    I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
    I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
    with Content Type 2, starts and has the same column Age, as Task1.
    How can I populate the Age column in Task2 with the content of the Age column in Task1?
    Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
    with the Content Type 2,  that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking. 
    The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    Is there a better approach? I use SharePoint Designer 2013 to design all this.
    Any assistance is appreciated.
    Thank you.

    Hello Sebastian,
    you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
    You can perform below steps to set Age column from Task 1 to Task 2.
    1.  Create Task 1 using Assign a task , wait till the task is completed.
    2. Get the Age column value based on Task 1 once the task is completed.
    3.Create Task 2 using Assign a task ,  uncheck wait till the task is completed option.
    4. Update the Task 2 with Age column in Task1.
    5. Use Wait for the field to equal value , check for Task Status is completed or not.
    >>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    you can get the related item from task list item to get the main list item.
    Other option is, Use Javascript and CSOM  in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
    Hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • HT201684 In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?

    In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
    I've tried everything to get a custom umask set for all apps. It just seems impossible...
    Is there a replacement for launchd-user.conf?

    Please file a bug report: https://bugreport.apple.com
    I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger.

  • How to set up custom ring tone for a specific contact?

    If someone can guide me how to set up custom ring tone already downloaded from iTunes
    of a specifice  contact? Thanks.

    Tap contacts, select the contact, click edit,  go to ringtone, select ringtone

  • What is an smpt password?  I have problems sending photos using the stamp at the bottom because it asks for some smpt password and I have no clue to find out what it is, how to set one of find one if I somehow put one in and don't know what it it.

    what is an smpt password?  I have problems sending photos using the stamp at the bottom because it asks for some smpt password and I have no clue to find out what it is, how to set one of find one if I somehow put one in and don't know what it it.

    It's the password for your outgoing mail in your Mail account. You need to set it up in your Preferences.
    Regards
    TD

  • How to set registry for sql client on win...

    Hi.
    how to set registry for sql client on win fro work with Ukranine
    charset.
    I got such problem
    nls_language set to American_Ukranine.clmswin1251 on client
    this give me ukraniane char.
    but it override all my settings in initsid.ora this mean
    nls_date_format=DD-MON-YYYY
    nls_date_languages
    twhen I type select sysdate vrom dual answer is 11-jun-99, but
    not 11-(ukr month)-1999;
    What should I correct in regestry? ( i don't like to do alter
    session set..... each time I start sqlplus )
    Thank You in advice
    null

    you can create method on Application Module and to Client listener
    like
        public  Object[] getData(Number n,Date d)
    Object val[]= new Object[2];
    String sp = "{? = call get_data(?,?,?)}";
                Connection conn = null;
                CallableStatement proc = null;
                try {
                 //   conn = isConnSupplied ? userConn : ResourceManager.getConnection();
                    proc = getDBTransaction().createCallableStatement(sp,0);
                proc.registerOutParameter(1, OracleTypes.Number);
                proc.setObject(2,12);
               proc.setObject(3,dateobj);
              proc.registerOutParameter(2, OracleTypes.VARCHAR);
                proc.executeQuery();
                 int amttext= proc.getInt(1); //for return value
    String msg=proc.getString(2);//for out param
    val[0]=amttext;
    val[1]=msg;
                catch(Exception e)
                    System.out.println(e);
    return val;
    }and access this method from backing bean using following code-
                BindingContext bindingctx=BindingContext.getCurrent();
                   BindingContainer binding=bindingctx.getCurrentBindingsEntry();
                OperationBinding operationBinding1 = binding.getOperationBinding("getData");
                operationBinding1.getParamsMap().put("n",anyno);
                operationBinding1.getParamsMap().put("d",dateobj);
                operationBinding1.execute();
                String vval[] =(String[])operationBinding1.getResult();

  • Blank screen on load - how to set a custom thumbnail

    I work at an academic library where we create a lot of tutorials, which we put on our website and on YouTube and Vimeo. With previous versions of Captivate (before Captivate 6), before you hit play, you would see the initial slide. Now, the screen is just blank until you hit play. On YouTube and Vimeo you can set a custom thumbnail that shows before you hit play; is there a way to do this within Captivate (we're now on version 8).
    I'm not talking about the preloader image. I tried adding an image of the first slide as a preloader image, but it shows only while the video is loading, and once it's loaded, the screen goes blank again.
    Thanks!

    Hi djraven911,
    Welcome to the HP Forums, I hope you enjoy your experience!
    I will be happy to help you; however I can't help but wonder, is this a prank?
    I noticed you posted on April 1st, coincidentally April Fools.
    In any case, HP does not have any printer's that support printing on toilet paper.
    As for your second inquiry, I would suggest the Officejet 8600, the XL cartridge will print approximately 2300 pages.
    It supports many media types, but not toilet paper.
    Hope this helps.
    Thank you for posting on the HP Forums. Have a nice day!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to set fetchsize of sql Query when using Database Adapter.

    Hi All,
    I am using DatabaseAdapter to connect to database and retriving huge amount of data.For improvement in the performance I want to set the "fetchsize" of sql query. I know fetchsize can be preset in Java using Jdbc 2.0 API.Please let me know how to set this value in BPEL when using DBAdapter?
    Thanks
    Chandra

    I talked to the developer of the db adapter - and he told me this feature will be available in BPEL PM 10.1.3 (which is supposed to be production later this year, and a public beta soon). If this is an emergency I would recommend going throug Oracle support and have them file an enhancement for 10.1.2.0.2
    hth clemens

  • How to set one default "reply-to" email address for multiple accounts

    I have an iPhone 3GS. I have my own domain name which I want to use as my primary "public" email address. It is forwarded from the hosting ISP to my ATT/Yahoo email address. I also have a Gmail account. I would like recipients to see that it comes from my domain ([email protected]), but since it is actually going through ATT/Yahoo, I can only see how to set the "From" field to either my ATT/Yahoo account or my Gmail account addresses. Is this even possible?
    Essentially, I don't directly access "[email protected]", but that's where I want it to appear to come from, regardless of where it actually originated.
    Any ideas?
    Thanks,
    Mark

    You get e-mails just fine, but do you have rights to log into the e-mail server at myfirstandlastname.com? If you can do that (check with your hosting ISP to find out if they will let you), then you can just set up the iPhone to use that e-mail server to send your mail. It's possible to set up an iPhone IMAP account to get mail from gmail, but use a separate non-gmail SMTP server to send outgoing mail, all within the same iPhone e-mail account.
    If you can get this working, then you won't need to mess with reply-to headers. Your e-mail will not only look like it got sent from myfirstandlastname.com -- it actually WILL be sent from there and all replies will automatically go there and then be forwarded as usual to your ATT/Yahoo address. No one will know that ATT/Yahoo is involved, and both your sent and received e-mail will show up in the same single e-mail account on the iPhone.
    I do this all the time with my e-mail. My account is really at gmail, but the e-mail address says it came from mycollege.edu. My old college offers me an alumni forwarding-for-life account. They only forward mail, though; they don't hold it. They do also run an SMTP server, though, and that's what I use to make my outgoing e-mail look as if it came from mycollege.edu.

  • How to set a customer type when submitting a form

    Hello! How do I set a customer's 'Customer Type' when they submit a form? In other words, I have a form on my website and if a user completes and submits that form, I would like that user to be given a specific Customer Type.
    TIA

    You cant yet.
    Soon though.
    The output for these via liquid will be available in the release later today and hopefully the form aspects will be in the new future.

  • How to set one row or node 's height in the jtree?

    How to set height of one row or node in the jtree?
    I found the method :jTree.setRowHeight(height);.
    But I want to set height of one row ,not all rows of a jtree.
    Thanks for help!

    Who can help me?

  • How to share one custom field from FITE_VC_GENERAL_DATA to FITE_VC_REVIEW

    Hi FORUM
      I haved created one custom field in the FITE_VC_GENERAL_DATA by one Enhancement, to get this custom field in FITE_VC_REVIEW screen, i filled a z_table_tmp, but i´m not happy with this solution and i thinked that is not the best way. How can i pass this custom value to the FITE_VC_REVIEW with a correct solution ?.. maybe by general_data context structure ?
    Thnks
    Josué Cruz

    Josue Cruz wrote:
    > Hi FORUM
    >
    >   I haved created one custom field in the FITE_VC_GENERAL_DATA by one Enhancement, to get this custom field in FITE_VC_REVIEW screen, i filled a z_table_tmp, but i´m not happy with this solution and i thinked that is not the best way. How can i pass this custom value to the FITE_VC_REVIEW with a correct solution ?.. maybe by general_data context structure ?
    >
    > Thnks
    > Josué Cruz
    Hello Josué,
    the correct approach would be to add a common Web Dynpro Component Usage Relation to both the FITE_VC_GENERAL_DATA and FITE_VC_REVIEW Component. To the common  Z Web Dynpro Component you add a Interface Context which will be exposed to the FITE Components. The new field should be mapped to the new Interface Node of the Z Web Dynpro Component. As bothe FITE share now a common context, the field will be available.
    regards,
    Markus

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • How to set default custom button in af:popup

    Hi,
    I am using JDeveloper 11.1.2. I have popup. In that there are two input fields and one custom button called "Login". At runtime after the popup is been launched , while pressing Enter key it needs to trigger the "Login" button. If I use *<af:subForm>* in jsff file, the default is getting triggered. Apart from <af:subform> Is there any way to trigger default button at runitime?
    Thanks & Regards,
    Praveen.

    You can use an af:dialog of type ok/cancel for your popup. If you hit enter it'll work like the OK button is clicked. In a dialoglistener you can destinguage all other buttons or ESC.
    Check out http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html and http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf for a sample.
    Timo

  • How to set client within SQL statement without using another pl/sql stmt.

    I have a following select statement
    SELECT SUM (w.prior_forecasted_costs + w.prior_committed_costs)
    FROM xxsuf.job_cost_summary_table w,
    apps.pa_periods p,
    pa.pa_resources bz,
    pa.pa_resource_list_members cz,
    pa.pa_tasks dz
    WHERE w.project_id = z.project_id
    AND w.task_id = dz.task_id
    AND dz.task_number '98000'
    AND w.resource_list_member_id = cz.resource_list_member_id
    AND cz.resource_id = bz.resource_id
    AND NOT EXISTS (SELECT NULL
    FROM pa.pa_tasks zz
    WHERE zz.parent_task_id = dz.task_id)
    AND w.resource_list_member_id != 1000
    AND p.period_name = w.pa_period
    AND p.current_pa_period_flag = 'Y'
    Above select statement uses pa_periods view which only works when I set my client using "exec DBMS_Application_Info.set_client_info(83);" in Toad or SQL*Plus session.
    I was wondering how can I achieve it within select statement. so that I don't have to use another PL/SQL statement to set my client. Is there anyway to set client with my org id within above select statement ?
    Please advise.
    --Rakesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can simply create a function which calls dbms_application_info and use that in your sql statement as in
    SQL> create or replace function set_client_info (i_info varchar2)
       return varchar2
    as
    begin
       dbms_application_info.set_client_info (i_info);
       return i_info;
    end set_client_info;
    Function created.
    SQL> create or replace view v_emp
    as
      select * from emp where empno = to_number(sys_context('userenv','client_info'))
    View created.
    SQL> select ename from v_emp where set_client_info(7788) is not null
    ENAME    
    SCOTT    
    1 row selected.
    SQL> select ename from v_emp where set_client_info(7900) is not null
    ENAME    
    JAMES    
    1 row selected.

Maybe you are looking for

  • How does iCal, or Calendar, order the display of multiple events for the same time?

    I can't for the life of me figure out how iCal orders the display of multiple items at the same time.  Does anyone have a clue?  It's not alphabetical.  It's not according the the order of the calendars in the left pane.  Is it just random?  Any help

  • T440S system update and window 8.1

    When I click the system update, it prompt me "An error occured while gathering user information" and stop. What can I do to fix it?  Thanks.

  • ITunes errors - corrupted updates and error 14

    So I'm trying to update my iPad mini 1G from 7.1.1 to 7.1.2 but iTunes cannot download the update firmware without corrupting the download. I tried 14 other ipsws from other websites and iTunes will either hang during the update (30+ min) or when the

  • How to trigger a workflow when data inside a table changes

    Hi How to trigger a workflow when data inside a table changes ?? We need to trigger a workflow when STAT2 field value in PA0000 table changes. rgds Chemmanz

  • UDM_DISPUTE - Change field

    Hello All, We have a requirement where we need to add extra details into the description of the sold-to party in UDM_DISPUTE transaction. For example there is a sold-to-party 123556 and the description shown is ABCD ,we would like to change the descr