Link command ADF problem

Hi all

I use Jdeveloper 11 g. I have a master / detail relationship tables order and OrderItem. I have an edit page command that has modifiable order information and a table read-only ADF that contains a list of items associated with the current command. I have a link to ADF command on the LineItemId column in the table. When I click on the link, it will take me to the edit page of point. The problem is, whenever I select any element in the table, I've always had the first item to be loaded into the page of the item change. Someone have any ideas what I did wrong?

Here is the part of the code connects to the command binding,

< af:column sortProperty = "LineItemId" sortable = "false".
headerText = "#{bindings." OrderItemsView2.hints.LineItemId.label}.
ID = 'c4' >
< af:commandLink actionListener = "#{bindings.setCurrentRowWithKeyValue.execute} '"
Text = "#{rank." LineItemId}.
Disabled = "#{!}" Bindings.setCurrentRowWithKeyValue.Enabled}.
"ID ="cl1"partialTriggers =": t1.
action = "goOrderItemDetail" / >
< / af:column >

Thanks in advance,

John

Published by: john wang on August 20, 2009 07:31

Hello

If the point editing page uses the same data control such as the one that is displayed on the edit page command you need not to use setCurrentRowWithKeyValue.
He should be positioned on the line concerned.

As a side note setCurrentRowWithKeyValue requires a value for the value of the key. This is possible by creating a data (e) in the definition of page links
for the setCurrentRowWithKeyValue binding.

HTH
Paul

Tags: Java

Similar Questions

  • Function save/return ADF problem

    Hi all

    I use Jdeveloper 11 g. I have an Orders table in the database and two pages in the ADF. A page is a table of the ADF that contains a list of order records. There is a 'Create a new order' button at the bottom of the page. Another page is a detail of the form for editing a record of command ADF command or the creation of a new order record. There are two buttons at the bottom of the form. One is 'Save' for editing the reocrd existing or create a new record. Another is 'Back' for the page Table ADF proevious backup without doing anything.

    When I click on "Create new order" on the first page, I came to the second page that has a negative orderId displayed. At this point, if I decide to create a new reocrd by clicking on the 'Back' button, I got an error popup window that displays all the fields required in the page. If I find out the required fields and click the 'Back' button again, it does not take back me the previous page in the Table of the ADF. However, it adds an extra record in the table whose orderId is the negative value displayed in the detail of the previous page. I have found that it has not created a new record in the database.

    Then, if I want to contine create a new record and I want to just go back to the proevious page, how do I 1) is not to have the popup displayed error? (2) not to have a record added to the table of the ADF?

    Here is the code for 'Create a new command' in the Table of the ADF page.

    < af:commandButton actionListener = "#{bindings." Create1.execute}.
    Text = "create a new order.
    Disabled = "#{!}" bindings. Create1.enabled}"id ="cb2 ".
    partialTriggers = "t2" action = "goEditOrder" / >

    Here is the code for 'Save' and 'Back' in the form of the ADF page,

    < af:commandButton actionListener = "#{bindings.Commit.execute} '"
    Text = "Save."
    ID = "cb3" / >
    < af:commandButton text = "Return Order" id = "cb4" action = "goBackOrder" / >

    Any help is greatly appreciated.

    John

    Hi John,.

    You can link the cancellation to the command button to return as an actionListener and action to the existing one.

     
    

    Arun-

  • Opening links in a new tab will also load the link on the problem of temporamental currnt tab that comes and goes. Sometimes using links from google as well.

    Opening links in a new tab will also load the link on the problem of temporamental currnt tab that comes and goes. Sometimes using links from google as well. Never had this problem before. Also the SafeSearch feature on google has itself locked on strict, not too much problem, but has happened at the same time my links and tabs not working like I want.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • On the link command Action is not firing

    Hello

    I use JDev Version 11.1.1.6

    I have CommandLink where I wrote a method at the bean for Action. And the same command binding has the showpopup behavior

    My hypothesis was during the click on command action method first fires link then goes off then the showpopup behavior.

    But when I click on method action link command is not shooting, only showpopup behavior is pulled.

    is TI WHEREAS behavior?

    Thank you very much

    ~ Pierre Badri

    As already mentioned, the showPopupBehavior prevents the action send to the server.

    You can remove the showPopupBehavior from your link and show the popup from within java code in your bean.

    RichPopup.PopupHints ph = new RichPopup.PopupHints ();

    Popup.Show (pH);

    Timo

  • links &amp; dropbox PDF problems

    Hello

    I had this problem, some of my hyperlinks (downloadable pdf) are not displayed when I test my site, the new window open, but nothing happens

    I wonder, is perhaps its because I have put in my dropbox in the first place?

    I noticed link dropbox have problems to, link can not be downloaded

    How to link to file pdf correctly?

    Thank you

    Oh - one more thing. and this may sound stupid, but this happened to me.

    Make sure your PDF files have been saved with the suffix .pdf as part of the name. I have a few that I saved just like FILE not nomdefichier.pdf name and I got a little weird things similar to what you describe.

  • load image link in movieclip problem

    Hello

    turns out the problem is resolved, be rejected to test the animation but it works on the actual swf.

    second problem 'load link image movieclip problem. "

    I have this code, what it does is ask the text input from the user to the "input text" field, there must be a link to an image from somewhere, and then it will load that link (image) in a movieclip on the stage.

    button1.onPress = function() { < < button1}

    var inputText.text = linkText;    < < inputText is the input text field

    trace (linktext);

    loadImage (linktext);

    }

    function loadImage (imageName) {}

    avatarContainer.avatarHeadOuter.avatarHead.loadMovie (imageName);  < < avatarContainer is an mc on stage

    overlayContainer.overlayHeadOuter.overlayHead.loadMovie (imageName);  < < overlayContainer is an another mc on stage

    overlayContainer.overlayHeadOuter._alpha = 15;

    stats. Text = imageName;  }

    When I run the test Movie (ctrl - enter), loadMovie works.

    When I run on real html after publication, loadMovie does NOTHING. He said something like Flash Player has stopped a security operation.

    My wild guess is file html problem? can I do to ignore that secure bs

    problem solved, it turns out that some pictures and some, probably a server does something to protect their images hosted.

  • star wars command center problems

    Hello, I just took possession of a portable star wars limited edition, I can open the command center, but I need to know how to raise R2D2 and the small figure in light, thank you very much

    Hi @garyrwhitaker,

    Welcome to the HP Forum! It is a wonderful location to converse with the community, get help and advice. You have a rewarding experience, I would include the following link for your perusal and reference. First time here? Learn how to publish and more.

    I understand you've got a laptop HP from Star Wars limited edition. You can open the command center, but t you want to know how to make appear R2D2.  After some research, I believe you can do it by choosing one of the special themes Windows as we should be R2D2.

    Please let me know the results.

    Thank you for your participation in the Forums of HP! We want to help you as well as others who may encounter a similar problem. "Think about scoring the post that solves your problem as" ","accept as Solution " to help other members of the community! To say thanks for the help, please click "Thumbs Up icon" below.

  • Popup ADF problems

    Hello!

    I have a popup adf containing some mandatory inputText and selectOneChoice.

    When you open the window contextual atrves click a CommandButton with partialSubmit = true all required fields are validated and how are empty, an error message appears indicating that the fields are filled.

    Of course, I don't want the fields to be validated to open the context menu, but only when I click a commandButton control the popup.

    I would like to understand why these fields are validated to open the context menu, and how to avoid without having to remove the mandatory fields.

    Any ideas?

    My code:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < f: view = xmlns:f ' http://Java.Sun.com/JSF/core "xmlns:af =" " http://xmlns.Oracle.com/ADF/faces/rich "> "

    < af:popup autoCancel = "disabled" id = "popupInclusaoTrem" binding = "#{PlanejamentoMB.popupInclusaoTrem} '"

    contentDelivery = "lazyUncached" >

    < af:dialog title = "Planejamento - include Trem" type = "none" closeIconVisible = "false" id = "d1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow marginTop = '5px' height = 'auto' id = "gr1" >

    < af:gridCell marginStart = "5px" id = "gc2" >

    < af:inputText binding = "#{PlanejamentoMB.richInputSede} ' readOnly = 'true'"

    labelStyle = "position: absolute;" left: 34px; »

    contentStyle = "position: absolute;" left: 68px; "label =" "Sede:" id = "it2" / > "

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr2" >

    < af:gridCell marginStart = "5px" id = "GCQ4" >

    < af:inputText label = "" Prefixo: "maximumLength = '3' columns = '7'"

    labelStyle = "position: absolute;" left: 15px; "required ="true ".

    contentStyle = "position: absolute;" left: 68px; »

    Binding = "#{PlanejamentoMB.richInputTextTrem} '"

    requiredMessageDetail = "Campo de O Prefixo e required." id = "it3" >

    < af:validateRegExp pattern = "[A - Z] [0-9] {2}'"

    messageDetailNoMatch = "informed um trem valido prefixo (Exemplo: 99 X)". "/ >"

    < / af:inputText >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr5" >

    < af:gridCell marginStart = "5px" id = "CG6" >

    < af:selectOneChoice label = "" event: "contentStyle =" position: absolute; ' " left: 68px; »

    labelStyle = "position: absolute;" left: 15px; »

    Binding = "#{PlanejamentoMB.richSelectEvento}" id = 'soc1' "

    requiredMessageDetail = "O campo Evento e required." >

    < f: selectItems value = "#{PlanejamentoMB.listagemEventos}" id = "si2" / > "

    < af:validateLength minimum = "3" / >

    < / af:selectOneChoice >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom '5px' = '5px' height = 'auto' id = "gr3" >

    < af:gridCell marginStart = "5px" id = "gc1" >

    < af:selectOneChoice label = "" Origem: "contentStyle =" position: absolute; ' " left: 68px; »

    labelStyle = "position: absolute;" left: 12px; ' autoSubmit = 'true '.

    Binding = "#{PlanejamentoMB.richSelectOneOrigem}" id = "soc2" "

    valueChangeListener = "#{PlanejamentoMB.popularDestinoPorOrigem} '"

    requiredMessageDetail = "O campo Origem e required."

    >

    < f: selectItems value = "#{PlanejamentoMB.listagemOrigensPorSedeGradeFixa}" id = "si3" / > "

    < af:validateLength minimum = "3" / >

    < / af:selectOneChoice >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr4" >

    < af:gridCell marginStart = "5px" id = "gc3" >

    < af:selectOneChoice label = "" Destino: "contentStyle =" position: absolute; ' " left: 68px; »

    labelStyle = "position: absolute;" left: 11px; »

    Binding = "#{PlanejamentoMB.richSelectOneDestino}" id = "soc3" "

    requiredMessageDetail = "O campo Destino e required."

    >

    < f: selectItems value = "#{PlanejamentoMB.listagemDestinoPorOrigem}" id = "si1" / > "

    < af:validateLength minimum = "3" / >

    < / af:selectOneChoice >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr7" >

    < af:gridCell marginStart = "5px" id = "G.c.5" >

    "< af:inputDate binding =" #{PlanejamentoMB.richInputDateSaida} "id ="dt1hourSecond"label =" Saida:

    requiredMessageDetail = "Campo de O" Saida e required. inlineStyle = "width: 280px;" >

    < af:clientListener type = "focus" method = "onhourFocusSimple" / >

    < f: convertDateTime pattern = "Hh: mm" / >

    < / af:inputDate >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr8" >

    < af:gridCell marginStart = "5px" id = "CG7" >

    < af:selectBooleanCheckbox label = "" distributed: "contentStyle =" position: absolute; ' " left: 68px; »

    Binding = "#{PlanejamentoMB.richBooleanDistribuido}" id = "sbc1" / > "

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = marginBottom '10px' = '5px' height = 'auto' id = "gr6" >

    < af:gridCell marginStart = '5px' id = 'G.c.8' halign = 'end' >

    < af:commandButton text = "Salvar" partialSubmit = "true" inlineStyle = "width: 120px;" id = "cb1".

    actionListener = "#{PlanejamentoMB.salvarTremGrade}" / >

    < / af:gridCell >

    < af:gridCell marginStart = '5px' id = 'gc81' halign = 'end' >

    < af:commandButton text = "Cancel" partialSubmit = "true" inlineStyle = "width: 120px;"

    immediate = "true" id = "cb2".

    actionListener = "#{PlanejamentoMB.cancelarInclusaoTrem}" / >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < / af:dialog >

    < / af:popup >

    < / f: view >

    Hello

    Some time ago I have the same problem, but my problem is that I put ppr as a property of refreshment in the links (on iterator).

    But result was the same, the mandatory fields have been posted after the popup is displayed.

    Your JSF I see that you have no links. Im not sure exactly where you store your data?

    labelStyle = "position: absolute;" left: 12px; ' autoSubmit = 'true '.

    Binding = "#{PlanejamentoMB.richSelectOneOrigem}" id = "soc2" "

    valueChangeListener = "#{PlanejamentoMB.popularDestinoPorOrigem} '"

    requiredMessageDetail = "O campo Origem e required."

    >

    You do not have the "value" attribute Maybe that's the problem? You work with data in your valueChangeListener but maybe if you do not set a value attribute adf you give validator msg?

    Best regards

    Rafal

  • Link to image problem

    Click on the button share and share buttons will show up but I can't click the button images of action as from facebook.
    the html tag is,
    < a href = 'facebook' >< /a >

    I have no problem in other browsers, firefox just.

    Help, please.

    Looks like a problem with the span with class = 'addthis_toolbox addthis_default_style' is not closed and the last two buttons because of this in Firefox. This SCOPE covers all the links, because it is positioned just before these buttons in Firefox.

    You can select the part of the page and use the selection View Source from the context menu.

    You can also use the DOM Inspector to see what Firefox does this code.

  • LINK WINDOWS MAIL PROBLEMS

    When I am in windows mail and e-mail has a link to a Web site and I click on it, it tries to open the site in microsoft word. How can I fix this problem

    Find out if your Internet Explorer has all its faults:

    Start > default programs > set your default programs > click on Internet Explorer. He said "this program has all its defaults"?
    If not, click on 'Choose defaults for this program' > tick on Select All > save

    Now, try the link again. It work this time?

    t-4-2

  • How to extract all the drives SAS/SATA and Ethernet port speed of the link command line?

    Hello

    Do you know if supports Windows OS built in order to extract all the SAS/SATA drives and ports Ethernet link speed?

    i.e. for SATA3 drive it show 6 Gbps, for DIS3 drive it will show 12 Gbps, to present the current link speed.

    i.e. for Ethernet 10 G, it will show 10 Gbit/s while the current connection speed is at 10 Gbps.

    I need the command to create a batch file to run bike test to check all connection speeds are correct in each cycle the system power runs, if the Windows operating system does not support built in order to achieve this, please send us any tool of 3rd - party with the support of the command line to do this.

    Thanks in advance.

    Jacky

    Hello

    This is a forum for Windows and you can't find the experts here, so your question will better suit in the TechNet forum where members of the community who have the expertise to help you. Check out the link and post your query:

    https://social.technet.Microsoft.com/forums/en-us/f4a3a72b-21e4-45fc-b623-eb1d99215c79/command-prompt-and-bat-files?Forum=w7itprogeneral

  • apk2bar command line problem

    When you try to build the bar of the APK file and by using command line tools, I get the following error:

    Error: MANIFEST. MF, invalid value ' ' for the name of the Application

    I have addedapplication android: name = "bbapp" but it does not solve the problem.  No idea what needs to happen to make this work?

    I use android review 10 by following the instructions in the LABORATORY to DevCon 2011, etc..  BlackBerry guys in the lab had never seen this error before so maybe that's more a "optional" Android configuration which is considered to be 'necessary' within the limits of the generation of the file BAR?

    I found the problem.  Even if the error says Application-Name, the required manifest a label to provide.  It is optional for Android, but apparently necessary for APK2BAR to work.

    <>

    Android:label="@string/APP_NAME".

    Command line to convert:

    . / apk2bar YourFileName.apk d ~/Library/Research\ In\ Motion/BlackBerryPlaybookUSBdebugtoken.bar

    [BarGenerator]
    [BarGenerator] Start packing YourFileName.apk
    [BarGenerator] YourFileName.apk... succeeded
    [BarGenerator] Summary: Apk Total # 1 files; managed: 1. ignored: 0; has failed: 0

  • Laptop Alienware M15x Command Center problem

    Hello. So I have an Alienware notebook M15x, and recently I had formatted and upgraded to Windows 10. However, for reason of sound, Command Center can't work. Nothing lights up, which means that the keyboard, audio ports or anything like that, but what it seems the touchpad above the keyboard works. I looked in Google but have found no solution. I saw something on the .NET Framework, but still no solution. I have attached a picture of my .NET Frameworks, if anyone can guide me step by step on how to solve exactly this problem it would be greatly appreciated.

    Thank you.

    I contacted dell... which gave me the run around to talk to support technique alienware. I contacted them. They basically told me to * it in nicer terms. I'm over material, it is not taken in charge and buy new equipment through a 3rd party. Basically... a bit of code to patch the write command is too a gene and I should lose money on a new computer. Funny... it works fine and works all of my games.

    Dear customer,

    Thank you for your recent contacts.

    Your hardware is no longer supported. We recommend that you check with a dealer of 3rd party for parts and service for your system.

    If you need drivers and applications on your system please visit our website where you can find the latest drivers for your system.

    Thank you for choosing Alienware.

  • Software installation link BB blackBerry problem

    Hello

    I have a problem to install new link BB. Since my last delete, I have a window that always appears when I install back the BB link. This window indicates that a file is missing. His name is Temp\WZSE0. TMP\. I can't find even in the new version of the BB link.

    You have a solution to my problem?

    Thank you very much

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall/en-us

    Try the above.

  • ISE - redirection link AV sanitation problem

    Dear,

    Working on ISE 1.1 and face a problem after the assessment of posture for a machine, if the machine is not the correct antivirus, the NAC Agent suggest sanitation following link: http://kaspersky.test.com, when the user tries to click on the link, the link redirects him to customer provisioning page instead of the right of the antivirus Installer page. Even if I try to put the IP address instead of the link http://10.10.10.10 the problem persists.

    Any ideas what could be the problem?

    Thanks in advance

    Concerning

    Zahi

    Hello

    If there is a wired interface, you must check the acl of redirection and to ensure that the entry is not redirect traffic to sanitation.

    Thank you

    Tarik Admani
    * Please note the useful messages *.

Maybe you are looking for