Problem with update of a column by using the procedure of database and refreshing or put in value programmatically

Dear all,

I am a beginner in the ADF and am under Jdeveloper Studio Edition Version 12.2.1.0.0.

I have a page that consists of two taskflows.

First workflow has a fragment which is to have a table based on view object salespersons (not editable)

Second task flow contains a form of ADF from the same view object Salespersons.

As the user selecting a line in the table of the same record is displayed as no problem.

Now, I have added two buttons Activate and Deactivate that is to change the status of the sales.

I tried to use two ways an updated using the procedure of database and then put in value by programming and I have different questions with two of them:

Now, here's the code of the Java bean for activation:

Option A - the problem with this is the value of the column in the list (the first task rate displayed) is not synchronized

and Activate and Deactivate buttons are not disabled and active properly.

{} public void confirmActivation (DialogEvent dialogEvent)

If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

DBSequence vId;

vId = dcId.getValue ((DBSequence));

Links BindingContainer = getBindings();

OperationBinding operationBinding;

operationBinding = bindings.getOperationBinding ("changeSalespersonsStatus") (OperationBinding);

operationBinding.getParamsMap () .put ("pId", vId.getValue ());

operationBinding.getParamsMap () .put ("pStatus", "A");

Object result = operationBinding.execute ();

dcStatus.setValue ("A");

} else {}

return;

}

}

Option B - the problem with this is that the value of input for status text appears in the Active form for all records in form regardless of its database.

{} public void confirmActivation (DialogEvent dialogEvent)

If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

-no doubt this two lines are not needed here

DBSequence vId;

vId = dcId.getValue ((DBSequence));

dcStatus.setValue ("A");

BindingContainer links = getBindings();

OperationBinding operationBinding;

the operationBinding = bindings.getOperationBinding("Commit") (OperationBinding);

Object result = operationBinding.execute ();

} else {}

return;

}

}

Here's the code from the Fragment of shape for used buttons.

"< af:button text = 'Activate' id ="bActivate' icon="/icons/activate.png ' iconPosition = 'top '.

partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

Binding = "#{pageFlowScope.salespersonsForm.buttonActivate} '"

Disabled = ' #{bindings. " Status.inputValue! {= ' n '} ">"

< af:showPopupBehavior popupId = "pActivate" / >

< / af:button >

"< af:button text = 'Disable' id = 'bDeactivate' icon="/icons/deactivate.png ' iconPosition = 'top '.

partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

Binding = "#{pageFlowScope.salespersonsForm.buttonDeactivate} '"

Disabled = ' #{bindings. " Status.inputValue! {= 'A'} ">"

< af:showPopupBehavior popupId = "pDeactivate" / >

< / af:button >

Here's matching Popups for each of the buttons Activate and Deactivate.

< childCreation = "deferred" autoCancel af:popup = "disabled" id = "pActivate" >

< af:dialog id = "dActivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

noTextAndAccessKey = "& amp; No '.

dialogListener = "#{pageFlowScope.salespersonsForm.confirmActivation}" >

< f: facet = 'buttonBar' name / >

< af:outputLabel value = "Are you sure you want to enable the seller?" id = "ol1" / >

< / af:dialog >

< / af:popup >

< childCreation = "deferred" autoCancel af:popup = "disabled" id = "pDeactivate" >

< af:dialog id = "dDeactivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

noTextAndAccessKey = "& amp; No '.

dialogListener = "#{pageFlowScope.salespersonsForm.confirmDeactivation}" >

< f: facet = 'buttonBar' name / >

< af:outputLabel value = "Are you sure you want to disable the seller?" id = "ol2" / >

< / af:dialog >

< / af:popup >

Thanks in advance.

Best regards

Arif Khadas

If you bind components to a range of flow page bean. You must complete that it saves the State of the component longer than the life of the component.

To change the value of the GET value of the component of the link layer and change it.

In this way the changes are captured by the framework and you should see them.

Timo

Tags: Java

Similar Questions

  • How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Active Sync iPad ssl Client certificate

    How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Hi Ewoki,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the TechNet Exchange forum. Please post your question in the Forums TechNet in Exchange Server.

  • I had to uninstall firefox because it was causing so many problems with my computer. I was using the latest version 18. What is the problem?

    I had nothing else problems since I installed the latest version of Firefox version 18. It crashes my computer no matter what I do. Even if I do not use the browser. I uninstalled three times and the problems just seem to be deteriorating. Finally, I uninstalled and it did not reinstall again. I will not use again until the problems are solved. Also, I don't know is that funmoods or whatever it is that has replaced my google home page. I don't like software to decide what services I use. I've been a user of firefox for more than 15 years. I've never had problems like this before. I spent in Safari. It works without interfering with the other tasks I do on my computer. I don't know what version 18 is but the previous version of firefox that I used was perfectly fine. I had no problem whatsoever with it. It seems as if this version has not been tested enough. Also my daughter is having the same problems with his computer and they all started with the new version. So it isn't just me. At least give us the option to revert to the previous version and we ask if we want to improve when a new spell. However, I never had these problems in the past with any version of firefox that I installed. I like the features of firefox, but cannot afford to keep restarting my computer. It seems that firefox is hindering and then hangs up the computer and I can't do anything else even if I do not use it. It seems to stay in the background and just hang up. Please fix this.

    The problem is unlikely to have been with Firefox itself. It is much more likely to have been with some software or malware you have inadvertently installed

    Installs official Firefox is not bundled with other software. Firefox is customizable and has many extensions of the software you can choose to install but don't have to do anything.

    Funmoods is also a malware or at least software which is often hated to see these messages

    If you want to reinstall firefox official site:

    Then start playback on the malware removal and the toolbar

    If you want more advice back again post.

  • Problem with copy paste function (for images) using the TinyMCE editor

    Can not copy paste images (a document - text Copies OK) to the tinyMCE editor in Windows 8. Seems to be the specific question of operating system.

    Use the tinyMCE editor for info on the download Web site. Copy-paste function works very well on a Windows7 machine

    Hi Anand,

    I would be grateful if you can help me with the following information related to the TinyMCE editor:

    1. What is the Web browser that you use to copy and paste images via the application editor TinyMCE?
    2. What exactly happens when you try to copy and paste images using the editor? You receive an error message?

    This problem may occur because of the compatibility of the browser with the TinyMCE editor.

    Check out these links and check if the suggestions help you to solve the problem:

    http://www.TinyMCE.com/forum/viewtopic.php?PID=34916

    http://www.TinyMCE.com/develop/bugtracker_view.php?id=6075

    If the problem is specific to the TinyMCE editor, you can also contact the support of TinyMCE:

    http://www.TinyMCE.com/enterprise/support.php

    Please let us know if you need more help on this issue. Otherwise, feel free to ask for more queries on Windows.

  • problem with &amp; lt; body &amp; gt; in htmlText using the style sheet

    I have a nec htmlText textField and have the style sheet property set to a style that selects a font, fontSize and color for the < body > tag.

    Everything works except the style is not implemented :(

    Here is my html text:

    < body >
    Prerequisites < br >
    -Tour < br >
    -< Br > diagnostic test
    -How to solve problems < br >
    An OVERVIEW OF THE CALCULATION < br >
    -Historical introduction < br >
    -The uses of 'The Calculus' < br >
    -< Br > shorts
    FUNCTIONS AND MODELS < br >
    -Four ways to represent a function < br >
    -Some essential functions < br >
    -New functions from old functions < br >
    -Exponential functions < br >
    -Reverse functions & logarithms < br >
    -< Br > shorts
    LIMITS AND DERIVATIVES < br >
    -The tangent & speed problems < br >
    -The limit of a function < br >
    -Calculating limits using the limit < br > laws
    -The precise definition of a limit < br >
    -Continuity < br >
    -Limits at infinity; Horizontal asymptotes < br >
    -Derivatives & < br > exchange rate
    -In the drift in function < br >
    -< Br > shorts
    DIFFERENTIATION RULES < br >
    -Polynomials and the exponential < br >
    -The product and Quotient rules < br >
    -< Br / > trigonometric functions
    -The rule of the string < br >
    -Implicit differentiation < br >
    -Logarithmic functions < br >
    -Rate of change < br >
    -Exponential growth and decay < br >
    -Associated rates < br >
    -Linear Approximations and differentials < br >
    -Hyperbolic functions < br >
    -< Br > shorts
    APPLICATIONS OF DIFFERENTIATION < br >
    < / body >

    and the code:

    I was able to skirt the problem by inserting a tag are doing in the HTML file to define the characteristics of the basic fonts. I guess that you can't style atag.

    FlashKitty

  • Update of a column by using the cursor

    Hello world
    always play with the stuff of newbie here. Is it possible to update a column or row with a slider? I understand how to extract data using a slider, but don't know if it helps to update the data.

    If it is possible, what is the syntax?

    Kind regards
    Valerie

    Valerie Debonair wrote:
    Hello world
    always play with the stuff of newbie here. Is it possible to update a column or row with a slider? I understand how to extract data using a slider, but don't know if it helps to update the data.

    Why not read the fine manual? [Oracle® PL/SQL Database User Guide and reference | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/sqloperations.htm#i40107] describes all the constructions of cursor.

    If it is possible, what is the syntax?

    The best way is to use a PL/SQL implicit cursor, as follows:

    declare
      empID number;
    begin
      empID := 1234;
    
      update emp
        set salary = salary +100
      where empno = empID;
    
      commit;
    end;
    
  • Problem with update of Forms 6i to Forms 10 g migration - Data

    Hello world.

    I have the following problem: I have a form that generates withdrawal slips. To do this, there is a button. When clicked, there is a slider with a query "SELECT" and "for update" that looks for the picking of sheets lines entered by the user. For each line, update the column "numberOfPickingSlip" with the appropriate number of picking slip (generated before the update loop).

    The strange thing is that the form works with Forms 6i, but it does not at all with 10g form, although I recompiled just the form (no need for Webutil run this form)... Only the last line of the form collection is updated. The code of the procedure is the same for BOTH versions... Nothing has changed. So, it isn't a problem of query. Even more interesting, if I run the form directly from Oracle Forms Builder and then clicking on the "Generate" button, it works but just once... And the worst case: after running the form directly from the Forms Builder, loading of another form (accessible from a menu above), of closing that form and then clicking on the "Generate" button, it doesn't work at all and only the last line is updated...

    I checked the contents of cursor and it contains all the lines that need to be updated, but for some reason, only the last is updated...

    How is that possible? Is there something special I need to do?

    Thanks for any help :)

    I had a similar problem with the help of update in a for loop. I know, it shouldn't be a problem, but you can try to use the rowid to update (at least to see if the problem goes away):

    procedure gen_pickingSlip is
    
      p_year VarChar2(4);
      p_numPickS number;
      p_line number := 0;
    
      cursor recup_maj is
        select ROWID,* from prepa
         where numPickingSlip is null
         for update of numPickingSlip nowait;
      recPickSlip prepa%rowtype;
    
    begin
    
      -- Retrieving the new picking slip number
      retrieve_num_pickingSlip(p_numPickS);
      -- Year of the picking slip
      p_year = to_char(sysdate,'YYYY')
    
      open recup_maj;
      loop
        fetch recup_maj into recPickSlip;
        exit when recup_maj%notfound;
    
        -- Position in the picking slip
        p_line := p_line + 1;
    
        --*This is the part where it seems only one update is done*
        update prepa
        set year=p_year, numPickingSlip=p_numPickS, line=p_line
        where ROWID=recPickSlip.ROWID;
      end loop;
    
      close recup_maj;
    
      if p_line > 0 then
        commit_form;
      end if;
    
      synchronize;
    
    end;
    
  • Problem with update-installation - KB2463332

    I'm unable to install KB2463332 (SP 4). What have I to do?

    Hi Malfait,

    Thanks for posting your query in the Microsoft Community Forums.

    I see that you can not install KB2463332 on the Windows XP computer.

    Help me with more information.

    1. you receive an error message/code?

    2 is this problem specific to any updates, or all updates?

    3. how you try to install this update? It is through the Windows Update installation / autonomous?

    Try these methods.

    Method 1

    Solve common installation issues in Windows Update, Microsoft Update and Windows Server Update Services

    http://support.microsoft.com/kb/906602.

    Note: To set the computer back to start normally after boot, use the procedure under the steps to configure Windows to use a Normal startup state in articlehttp://support.microsoft.com/kb/310353.

    Method 2

    Download the update on the site mentioned below:

    Microsoft SQL Server 2005 Express Edition Service Pack 4

    http://www.microsoft.com/en-us/download/details.aspx?id=184.

    It will be useful.

    Let us know if you encounter problems with Windows in the future. We will be happy to help you.

  • Someone at - it problems with update Acrobat 8 January 2013?

    I use Adobe Actobat 9 PRO, Version 9.5.2 on one machine Windows 7 and January 8, 2013 update causes the printer driver Adobe PDF hang during the winding process.  I restored my computer to a time before the update and everything works well after the restoration.  I did it twice with the same result.  Anyone else having problems with this update?

    Try to remove the virtual printer driver and then repair the installation.

  • problems with update iOS 9.3 car bluetooth

    problems with update iOS 9.3 car bluetooth. break and cannot hear the caller voice calls.

    In what seems to be the same problem, this AM. iPhone 6, iOS 9.3, its stock of 2012 Honda Odyssey system. Worked well with iOS 9.1. With iOS 9.2 bluetooth would be occasionally disconnect, then reconnect about 5-10 seconds later. Reset all the settings bluetooth both phone and car with no improvement.

    IOS installed 9.3 last night. Phone connects, but the audio is unintelligible. Sound cut about every quarter of second, then reductions for about a quarter of a second, ad nauseam. Reset the phone without effect. Will try other things later today, but the phone is unusable with bluetooth, as is.

  • Problem with update display Pavilion dv6 drivers - 3023ca

    Hello

    I am not well eaten English so I do short...

    I have this type of laptop: HP Pavilion dv6 - 3023ca Entertainment Notebook PC

    I just installed a new version of windows 7 Home premium x 86

    When I tried to install my display drivers her did not work at all

    I had these problems as:

    • I can't play all video files by KMPlayer (or any similar programs)
    • Job of dosen't effect Aero (trouobleshooter said that it is because of my type of graphics card or driver)
    • I can't use the option of sleep to the start menu

    Here is a picture of Deviece maneger:

    If the drivers must be installed correctly

    But it still does not work

    I downloaded all drivers (I used the site AMD official and even here I have even updated their Windows) but still I got the problem

    So I used HP Support Assistant to troubleshoot and test my card graph (or display)

    (Home > troubleshooting > graphics, video and display > video check HP)

    It took just a minute to give me this error:

    Test Result: Fail
    Failure ID: UC462J-56C6NU-PXG03G-Q0NX03
    
    HP Graphics Video Check detected an issue while running. The directx SetCooperativeLevel function has failed. Graphics card may be defective.  Please retest, if problem persists copy down Failure ID code and contact HP support.
    

    So I retested it but same story happened again

    Now you know the identification code

    What should I do?

    Failure ID: UC462J-56C6NU-PXG03G-Q0NX03
    

    Qanea wrote:

    Hello

    I am not well eaten English so I do short...

    I have this type of laptop: HP Pavilion dv6 - 3023ca Entertainment Notebook PC

    I just installed a new version of windows 7 Home premium x 86

    When I tried to install my display drivers her did not work at all

    I had these problems as:

    • I can't play all video files by KMPlayer (or any similar programs)
    • Job of dosen't effect Aero (trouobleshooter said that it is because of my type of graphics card or driver)
    • I can't use the option of sleep to the start menu

    Here is a picture of Deviece maneger:

    If the drivers must be installed correctly

    But it still does not work

    I downloaded all drivers (I used the site AMD official and even here I have even updated their Windows) but still I got the problem

    So I used HP Support Assistant to troubleshoot and test my card graph (or display)

    (Home > troubleshooting > graphics, video and display > video check HP)

    It took just a minute to give me this error:

    Test Result: Fail
    Failure ID: UC462J-56C6NU-PXG03G-Q0NX03
    
    HP Graphics Video Check detected an issue while running. The directx SetCooperativeLevel function has failed. Graphics card may be defective.  Please retest, if problem persists copy down Failure ID code and contact HP support.
    

    So I retested it but same story happened again

    Now you know the identification code

    What should I do?

    Failure ID: UC462J-56C6NU-PXG03G-Q0NX03
    

    Hello Qanea.

    I looked at the failure code and confirms the results of the test.  The video card (the card integrated Intel HD) is having problems.  It probably needs to be replaced because the question is right after a reinstall of Windows.

    Have you tried running HP Support Assistant to ensure that the laptop is to install all the correct drivers?  Here is a link.

    Could you provide me the product number?  I can use this information to get you details instructions to replace the motherboard, which is the most likely solution to this question.  This document can show you where it is located.

    If you do not want to repair the laptop you can always contact the HP support directly.  The number for US / Canadian customers is 1-800-474-6836.  If you are in another part of the world, you visit HP's Support around the world to find the coordinates for your region.

    Have a great day.

  • I need to reinstall photoshop elements 8 after having problems with my hard drive. I use MacBook Pro and a timemachine. After restoring the program of the Time Machine, I got the error 6 code: a license for this product has stopt working. How can I cancel

    I need to reinstall photoshop elements 8 after having problems with my hard drive. I use MacBook Pro and a timemachine. After restoring the program of the Time Machine, I got the error 6 code: a license for this product has stopt working. How can I cancel it?

    See here:

    Error "Licensing has stopped working". Mac OS

  • Problems with updating creative cloud to desktop. (error code: 2)

    Problems with updating creative cloud to desktop. (error code: 2)

    Hi Mike,.

    You can follow the article: error: "unable to install". Creative Cloud Desktop that will help you get your number sets.

    Alternatively, you can follow the thread: Creative Cloud desktop could not be updated. () Error code: 2) where this issue is already addressed.

    Let us know if it works or not.

    Thank you

    Yann Arora

  • Problem with update of Photoshop, Illustrator and Indesign CS6

    Hi all. I have problem with update of Photoshop, Illustrator and Indesign on OSx 10.8.4 CS6. Application are OK but update (bug fixies) does not work. Update failed. (U44M1P7)Screen Shot 2013-07-30 at 16.11.09.png

    Hi El Gondo,

    The following could explain and help solve the problem...

    U44M1P7 - updates:

    http://helpx.Adobe.com/Creative-Suite/KB/error-u44m1p7-installing-upda tes-HYPERLINK

    U44M1P7, U44M2P7 - CC help / cannot apply the extensions 6.0.2 update manager | Mac OS:

    http://helpx.Adobe.com/Creative-Suite/KB/unable-apply-extension-manage r - update.html

    Thank you!

    Ankit

  • Problem with adding a style of body using CSS Designer

    All,

    I ran across something that's bugging me when writing documentation for beginners to Dreamweaver.

    I use Dreamweaver CC 2015. I want to add a style to the body element. When I make the body tag is selected and click on the + to add a new selector, I get a 'body' selector p, instead of just 'body '.  I don't have a paragraph selected inside the body. I have chosen body. It is actually not a paragraph that is a child of the body element in the code, I work with.

    I tried to use the tag selector and ctrl + [to make sure that the body is selected.  Same thing in the designer or direct.  I know I could write my not just to simply type in the body to replace this place. However, for the rest of the selectors in the page, we create by ensuring that the appropriate item is selected and pressing on the + to add a selector at least provides us with a selector that will work for our purposes. And this is the first switch I want to create, so I would like to the same method works.

    The best work-around, I have found so far is to click in the opening body tag in code view, and then click on the + to add the switch, I can get the selector 'body', but I still think just not there must be something I'm missing.

    No idea why this is happening, or does anyone have a smoother work around?

    Thank you

    Jen

    Post edited by: Jennifer Oakes made the shortcut for select tag parent in live mode view is ctrl + [not shift +]

    Hello

    The question! Yes, this seems to be a bug. As you have already mentioned, for now, you can use the workaround, click the tag body in code view.

    Thank you!

    Kusha

Maybe you are looking for