2 Replies Latest reply: Aug 20, 2013 4:37 AM by Cvele_new_account RSS

    ADF Table Popup Passing Values

    5caa8fa6-b3a7-4678-991c-744f0652d6b6

      I have a table which has a popup containing another table.

       

      The popup is initiated when you mouse over the cell.

       

      How can i pass the value in the cell being moused over to the popup so that it can be used to query the new table.

       

      i have tried creating a bind variable in the new table with a value of viewScope.Patient and row.Patient but this didnt work.

        • 1. Re: ADF Table Popup Passing Values
          vinaykumar2

          just use setPropertyListener or setActionListener to set value in different scope.

          • 2. Re: ADF Table Popup Passing Values
            Cvele_new_account

            On the table:

                          <af:column>
                                   <af:outputText value="#{row.SomeAttr}">
                                           <af:clientAttribute name="someAttr" value="#{row.SomeAttr}"/>
                                           <af:showPopupBehavior popupId=":::notePop" triggerType="mouseHover">
                                    </af:outputText>
                          </af:column>

             

             

            On the popup:

                <af:popup id="notePop" launcherVar="source"
                               contentDelivery="lazyUncached" eventContext="launcher">
                       <af:noteWindow id="nw1">
                             <af:panelFormLayout id="pfl1">
                                 <af:inputText label="Attribute value: "                              value="#{viewScope.SomeAttr}">
                                 </af:inputText>
                            </af:panelFormLayout>
                        </af:noteWindow>
                        <af:setPropertyListener from="#{source.attributes.someAttr}"
                                                                                   to="#{viewScope.SomeAttr}" type="popupFetch"/>
                </af:popup>

             

             

             

            Cheers,...