CL_GUI_HTML_VIEWER in a customcontainer on a popup - not changable

Hello,
I have a little function that eventually call a small modal screen that containes very few valuea, an input field and a custom control.That custom control is linked to CL_GUI_HTML_VIEWER.
It should just display a few lines of self created HTML coding. That is all done in the PBO and it works fine - the 1st time it is called.
But it seems that in case the function is called a second time, the custom control just displays what was shown the very first time. Any changes to the HTML coding are disregarded - although the rest of the popup reflects the changes made.
I might be missing some simple steps or things. Clearing down the reference variables and firing the cl->free method do not seem to make a difference.
Does anyone have an idea?
Is something wrong w/ the 'lietime management' - to what should I set the 'lifetime' parameter?
I am a bit confused.
Any help appreciated
Thanks,
C.N.

Well I found the solution - as suspected I was looking to hard and not doing the obvious.
When speaking of control I always thought of CL_GUI_HTML_VIEWER only - freeing it up did not help the cause.
While working on the issue, I attempted various things including usinh two popup screens. Both worked fine - when called the 1st time w/ two different container of course.
This led me to the obvious - not to 'free the instance of CL_GUI_HTML_VIEWER but to 'free' CL_GUI_CUSTOM_CONTAINER instance.
*  In the PBO:
If not container is initial.  " container is the 'created' custom container
   CALL METHOD container->free.
endif.
That's all that is needed to overcome this shortcoming!
Thanks, Sandra!

Similar Messages

  • Popup not firing on closing browser or refreshing

    Hi ADF experts,
    I have set the af:document tag uncommittedDataWarning="on". But my popup not firing.
    I have made inputText's autoSubmit="true"
    Please help me out.
    Thanks.

    Hi Frank,
    Yes I made a POJO in model layer and created a datacontrol from that. After that I dragged to the jsff as a table with 2 columns.
    The 2 columns are inputText.
    The below scenario happened
    Created a sample taskflow and a jsff page fragment
    Created model based on POJO.
    The POJO datacontrol dragged onto a jsff page as a table with 2 fields.(The fields made inputtext).
    First field I kept autoSubmit=”true” and added a valuechangeListener
    Second field kept as it is.
    Tested as below:
    I tried entering a value in the first textbox. And closed the browser it got closed(No warning message)
    Second textbox after I entered value and closed browser(warning message shown)
    Difference: valuechangeListener implemented in first.
    Product.java
    public class Product {
        private String productId;
        private String productName;
        public Product() {      
            super();
        public Product(String productId,String productName) {      
           this.productId=productId;
           this.productName=productName;          
        public void setProductId(String productId) {
            this.productId = productId;
        public String getProductId() {
            return productId;
        public void setProductName(String productName) {
            this.productName = productName;
        public String getProductName() {
            return productName;
    ProductBean.java
    public class ProductBean {
        private List<Product> products=new ArrayList();
        public ProductBean() {
           this.createData();
        private void createData(){
            products.add(new Product("101","Alto"));
            products.add(new Product("102","Benz"));
            products.add(new Product("103","Chevrolet"));
            products.add(new Product("104","Cruze"));
            products.add(new Product("105","Accord"));
        public List<Product> findAllProducts() {
            return products;
    jsff
    <af:table value="#{bindings.Product.collectionModel}" var="row"
                  rows="#{bindings.Product.rangeSize}"
                  emptyText="#{bindings.Product.viewable ? 'No data to display.' : 'Access Denied.'}"
                  fetchSize="#{bindings.Product.rangeSize}" rowBandingInterval="0"
                  filterModel="#{bindings.ProductQuery.queryDescriptor}"
                  queryListener="#{bindings.ProductQuery.processQuery}"
                  filterVisible="true" varStatus="vs"
                  selectionListener="#{bindings.Product.collectionModel.makeCurrent}"
                  rowSelection="multiple" id="t1">
          <af:column sortProperty="#{bindings.Product.hints.productId.name}"
                     filterable="true" sortable="true"
                     headerText="#{bindings.Product.hints.productId.label}" id="c1">
            <af:inputText value="#{row.bindings.productId.inputValue}"
                          label="#{bindings.Product.hints.productId.label}"
                          required="#{bindings.Product.hints.productId.mandatory}"
                          columns="#{bindings.Product.hints.productId.displayWidth}"
                          maximumLength="#{bindings.Product.hints.productId.precision}"
                          shortDesc="#{bindings.Product.hints.productId.tooltip}"
                     valueChangeListener="#{pageFlowScope.managedBean1.sdas}"     autoSubmit="true" id="it2">
              <f:validator binding="#{row.bindings.productId.validator}"/>
            </af:inputText>
          </af:column>
          <af:column sortProperty="#{bindings.Product.hints.productName.name}"
                     filterable="true" sortable="true"
                     headerText="#{bindings.Product.hints.productName.label}"
                     id="c2">
            <af:inputText value="#{row.bindings.productName.inputValue}"
                          label="#{bindings.Product.hints.productName.label}"
                          required="#{bindings.Product.hints.productName.mandatory}"
                          columns="#{bindings.Product.hints.productName.displayWidth}"
                          maximumLength="#{bindings.Product.hints.productName.precision}"
                          shortDesc="#{bindings.Product.hints.productName.tooltip}"
                          id="it3">
              <f:validator binding="#{row.bindings.productName.validator}"/>
            </af:inputText>
          </af:column>
        </af:table>
    Please help..Shall I raise it as a bug.
    Thanks,
    Roy

  • Popup not center screen at the first click

    Hi All,
    I have just met an issue:
    At a ViewProduct dialog, when click on the photo (the resized one) to show a popup which displays the full-size photo. I want center the popup on sceen (as in http://msdn.microsoft.com/en-us/library/jj733572.aspx#centerpopup).
    The width & height of the photo in popup are "Fit to Content". At the first click, the popup's not centered. After closing the popup, from the second click in ViewProduct, the popup's centered correctly.
    Hope you can help me. Thankyou.
    My code:
    myapp.ViewProduct.PhotoURL1_postRender = function (element, contentItem) {
    // Write code here.
    displayPhoto(element);
    var img = $(element).find("img");
    $(element).css({
    'cursor': 'pointer'
    $(element).prop('title', 'Click here to display full-size photo');
    $(element).click(function () {
    // Note:If using JQuery Mobile 1.3 (or higher) use
    // "popupcreate" rather than "popupbeforeposition"
    $(window).one("popupbeforeposition", function (e) {
    $(e.target).popup({
    positionTo: "window",
    transtition: "flow"
    }, 100);
    contentItem.screen.showPopup("FullScreenPhoto");
    function displayPhoto(element) {
    $(element).css({
    'min-width': '100%',
    'min-height': '100%',
    'width': '100%',
    'height': '100%',
    'display': 'inline'
    $(element).find("div.msls-image-border").addClass("responsive");
    $(element).find("img").removeProp("style");
    $(element).find("img").addClass("responsive");

    Hi All,
    I have found a solution :-)
    myapp.ViewProduct.FullScreenPhoto_postRender = function (element, contentItem) {
    // Write code here.
    // to fix the popup not screen-centered at the Fist Click when photo is "Fit to Content"
    var myimg = $(element).find("img");
    $(myimg).one('load', function (e) {
    var container = $(element).closest("div.ui-popup-container.ui-popup-active");
    // Ref source: css-tricks.com/snippets/jquery/get-an-images-native-width/
    // Create new offscreen image to test
    var theImage = new Image();
    theImage.src = myimg.attr("src");
    // Get accurate measurements from that.
    var imageWidth = theImage.width;
    var imageHeight = theImage.height;
    // Ref source: stackoverflow.com/questions/7060422/center-item-on-screen-with-jquery
    var obj = $(container);
    var obj_width = $(container).outerWidth(true);
    var obj_height = $(container).outerHeight(true);
    var window_width = window.innerWidth ? window.innerWidth : $(window).width();
    var window_height = window.innerHeight ? window.innerHeight : $(window).height();
    if ($(window).width() > imageWidth) {
    $(container).animate({ left: (window_width - obj_width) / 2, top: (window_height - obj_height) / 2 }, 0);
    else {
    $(container).animate({ left: 0, top: 0 }, 0); //for very large image
    element.title = "Click to close";
    $(element).css({
    'cursor': 'pointer'
    $(element).click(function () {
    contentItem.screen.closePopup("FullScreenPhoto"); //click to close
    Thanks to ezanker & QuickFix at the link Jquery Mobile Popup not centered on first click (http://stackoverflow.com/questions/21304763/jquery-mobile-popup-not-centered-on-first-click?rq=1) and Center an element on the screen using jQuery (http://www.queness.com/code-snippet/6853/center-an-element-on-the-screen-using-jquery) and CSS-Tricks at http://css-tricks.com/snippets/jquery/get-an-images-native-width/ and at Chris Ingis http://stackoverflow.com/questions/7060422/center-item-on-screen-with-jquery

  • Popup not displaying

    I have created my new topic and added a new popup in my
    topic. I generate my winhelp, open my help project, go to topic,
    click popup and my popup window displays but you can only see the
    title of the popup not the description.

    Welcome to our community, Trish
    I seem to recall from vague and distant WinHelp memory that
    it's happening to you because the topic is formatted with a
    non-scrolling region (NSR). If my memory is correct, the answer is
    that you need to remove the NSR from the offending topic.
    Cheers... Rick

  • Popup not in specified Component, but in main JFrame

    Hi,
    how do I make a popup appear inside the Component "owner" that is
    given as parameter to the show method?
    I have a JFrame containing a JPanel component in a GridBagLayout.
    The JPanel has a MouseListener, causing "MousePressed" to show a
    popup with a small textfield at the mouse position inside JPanel.
    The popup is called as follows:
    show(e.getComponent(), JTextField, e.getX(), e.getY());
    I also tried giving explicit parameters: show(JPanel, JTextField, 10, 10);
    However, the popup is not positioned inside the JPanel, but in the JFrame that
    contains the JPanel.
    Thanks for any help!
    Regards,
    Elke

    Sorry, my fault: I confused the constructor with the method.
    Below is a test code I made.
    Thanks again,
    Elke
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import javax.swing.*;
    public class PopupTest extends JFrame {
    private JPanel jContentPane = null;
    private JTabbedPane jTabbedPane = null;
    private JPanel jpTab1 = null;
    private JPanel jPanel = null;
    private Popup mousePopup = null;
    public static void main(String[] args) {
    PopupTest myPopup = new PopupTest();
    myPopup.show();
    public PopupTest() {
    super();
    this.setContentPane(getJContentPane());
    this.setSize(300,300);
    private JPanel getJContentPane() {
    if(jContentPane == null) {
    jContentPane = new javax.swing.JPanel();
    jContentPane.setLayout(new BorderLayout());
    jContentPane.add(getJTabbedPane(), BorderLayout.CENTER);
    return jContentPane;
    private JTabbedPane getJTabbedPane() {
    if (jTabbedPane == null) {
    jTabbedPane = new JTabbedPane();
    jTabbedPane.addTab("Tab1", null, getJpTab1(), null);
    return jTabbedPane;
    private JPanel getJpTab1() {
    if (jpTab1 == null) {
    jpTab1 = new JPanel();
    jpTab1.setLayout(new GridBagLayout());
    jpTab1.setName("Tab1");
    GridBagConstraints grid1 = new GridBagConstraints();
    grid1.gridx = 0;
    grid1.gridy = 0;
    jpTab1.add(getJPanel(), grid1);
    return jpTab1;
    private JPanel getJPanel() {
    if (jPanel == null) {
    jPanel = new JPanel() {
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    for(int h = 0;h<100;h++)
    for(int w = 0;w<100;w++)
    g.setColor(Color.blue);
    g.drawRect(w, h, 1, 1);
    jPanel.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mousePressed(MouseEvent e) {
    if (e.isPopupTrigger()) {
    int x = e.getX();
    int y = e.getY();
    JLabel mouseData = new JLabel("["+x+","+y+"]");
    // create popup at mouse position inside the JPanel:
    mousePopup = PopupFactory.getSharedInstance().getPopup(e.getComponent(), mouseData, x, y);
    // problem: popup not at mouse position inside JPanel, but at position x,y in the JFrame.
    // Also tried the following, but that didn't work either:
    //mousePopup = PopupFactory.getSharedInstance().getPopup(jPanel, mouseData, x, y);
    // Why is the "owner" parameter in the popup constructor ignored?
    mousePopup.show();
    jPanel.setPreferredSize(new Dimension(100,100));
    return jPanel;
    }

  • Alert.show and popups not displaying text in flex4 compatibility

    I'm using the Fx4 SDK in compatiblity mode to compile my Fx3 applications; everything seems ok, but for popups.  No text is being displayed by any popup, not my custom titleWindow popped up with PopUpManager.createPopUp() nor my Alert.show boxes... Why could this be happening?
    thanks,
    gtb

    To fix this I did the following:
    1. remove the compatibility directive:
    -compatibility-version=3.0
    2. add as an additional compiler option the following directive
    -theme PATH_TO_FX4SDK/frameworks/themes/Halo/halo.swc
    3. change the namespace on my css file.
    for the standard flex components:
    @namespace "library://ns.adobe.com/flex/mx";
    and for my custom components
    @namespace "*";
    finally make your application's framework conform to Flex4SDK.
    gtb

  • KDE4 popup notes [SOLVED]

    In kDE3 I have been using popup notes a lot; as reminders or to compile lists, or keep 'how-to's handy.
    In kDE4, however, I can only get at them via kontact.  Even though I have specified that they are to be placed on the taskbar, nothing appears.
    'Standard' KDE4 problem, or just for Arch, or just me?
    Any hint on what to do is appreciated.
    Last edited by occam (2009-12-12 21:06:08)

    Nope, nothing special. I just installed vanilla KDE 4.1 sometime ago and it was part and parcel of KDE (you know, it wasn't modularized in the 'olden' days). I've been updating ever since.
    toad@deskarch 300\1 ~ > knotes --version
    Qt: 4.5.3
    KDE: 4.3.4 (KDE 4.3.4)
    KNotes: 3.9
    toad@deskarch 303\4 ~ > pacman -Qi kdepim-knotes
    Name : kdepim-knotes
    Version : 4.3.4-1
    URL : http://www.kde.org
    Licences : GPL LGPL FDL
    Groups : kde kdepim
    Provides : None
    Depends On : kdepim-libkdepim kdebase-runtime
    Optional Deps : None
    Required By : kde-meta-kdepim
    Conflicts With : None
    Replaces : None
    Installed Size : 828.00 K
    Packager : Pierre Schmitz <[email protected]>
    Architecture : x86_64
    Build Date : Sun 29 Nov 2009 00:51:50 CET
    Install Date : Fri 04 Dec 2009 09:36:34 CET
    Install Reason : Installed as a dependency for another package
    Install Script : Yes
    Description : Popup Notes

  • Save Password Popup Not Shwing In Firefox 15

    when i login into some site than save password popup not showing
    i have checked save password for websites in firefox option i am using firefox latest version which is 15 i also restored firefox to factory settings but nothing happened its the same issue
    i don't know what's going wrong

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/User_name_and_password_not_remembered

  • New field in Enjoy PO (ME22N) on item level. not changable.

    I searched the forum for this, but hmmm was kinda flooded with stuff not belonging to my subject. Maybe we should have Search courses...
    So dudes this is the first time i have to adopt/enhance SAPLMEGUI.
    I Appended include CI_EKPODB.
    Since this is included in MEPOITEM i didnt had to append MEPOITEM.
    My field is on the business-tab on item level. (Dynrpo 1322).
    So i appended MEPO1322.
    Then i modified Dynrpo 1322 (as it was already modified) and added my new field.
    For testing issues i took a PO and used SE16N and &sap_edit to get some value into my new field for a certain PO-item.
    When i then tried ME22N with my PO i saw my field on the right position and even populated with the value i had just set.
    The thing is that even tho i´m in ME22N it is not changable.
    Are there any documentations on how to modify/enhance/whatever PO items in enjoy scenario?
    Having a look at MEPOITEM it has 2 big includes:
    MEPOITEM_DATA "according to comments those should be changable
    MEPOITEM_TECH "according to comments those should NOT be driectly changable
    But since CI_EKPODB is included in MEPOITEM_DATA i get the idea that my field should be changable.
    Sorry if i didnt search properly, i tried, maybe you can give me a hint how to imrpove my  searches

    Hi
    Probably the metafield is missing, this is set by fm MEMFS_BUILD_MAPPING_PO_VIEWS
    Here the form mepo1320 is called:
    FORM mepo1322 CHANGING ch_mapping TYPE mepo_t_metafield_mapping.
      gf_tabname = 'MEPO1322'.
      map 'AKTNR' mmmfd_promotion.
      map 'ABELN' mmmfd_alloc_tbl.
      map 'ABELP' mmmfd_alloc_tbl_item.
      map 'SAISO' mmmfd_seas_cat.
      map 'SAISJ' mmmfd_seas_year.
      map 'AUREL' mmmfd_at_relev.
      map 'KOLIF' mmmfd_prior_vend.
      map 'BSGRU' mmmfd_reason_ord.
    ENDFORM.                               " MEPO1322
    Probably you should enhance it
    Try to check class CL_MFS_MM, method REGISTER
    Max

  • Popup not able to open from backingbean

    I am using jdev 11.1.1.4
    On my search page, when i click the ID (command link) i neeed to show the confirmation message but all i see a very small box (1 cm x 1 cm at the max) under the id (which i am clicking)
    Any thought..... little fustrating....so far..... here is the code i am using for this process....
    On page:
    <f:view beforePhase="#{SearchPageProcess.beforePhaseCall}">
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    *<af:popup id="confirm" binding="#{SearchPageProcess.popUp}">*
    *<af:dialog title="Confirm"*
    inlineStyle="height:100px:width:100px" id="confirmdialog"
    stretchChildren="first" resize="on"
    contentWidth="90" contentHeight="90">
    *<af:activeOutputText id="popupmsg" value="asdf"*
    *binding="#{SearchPageProcess.popupMessage}"/>*
    *</af:dialog>*
    *</af:popup>*
    <af:pageTemplate viewId="/template/GenericTemplate.jspx" id="pt1">
    <f:facet name="Header"/>
    <f:facet name="Content">
    <af:panelGroupLayout layout="vertical" id="pgl1">
    <af:panelGroupLayout id="pgl2" layout="horizontal">
    <af:spacer width="10" height="10" id="s1"/>
    <af:table value="#{bindings.SelectOrganizationBroker1.collectionModel}"
    var="row"
    rows="#{bindings.SelectOrganizationBroker1.rangeSize}"
    emptyText="#{bindings.SelectOrganizationBroker1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.SelectOrganizationBroker1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.SearchEntityQuery.queryDescriptor}"
    queryListener="#{bindings.SearchEntityQuery.processQuery}"
    filterVisible="true" varStatus="vs" id="resId1"
    inlineStyle="height:510px;" width="978"
    binding="#{SearchPageProcess.resultTable}"
    rowSelection="single">
    <af:column sortProperty="Entityid" filterable="true"
    sortable="true"
    headerText="#{bindings.SelectOrganizationBroker1.hints.Entityid.label}"
    id="resId1c1">
    <af:outputText value="#{row.Entityid}" id="ot6">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.SelectOrganizationBroker1.hints.Entityid.format}"/>
    </af:outputText>
    </af:column>
    *<af:column sortProperty="Displayrefnum" filterable="true"*
    *sortable="true"*
    *headerText="#{bindings.SelectOrganizationBroker1.hints.Displayrefnum.label}"*
    *id="resId1c2" inlineStyle="font-weight:bold;"*
    *width="75">*
    *<af:commandLink text="#{row.Displayrefnum}" id="cl1"*
    *actionListener="#{SearchPageProcess.processSelectedRow}"></af:commandLink>*
    *</af:column>*
    *Backing bean code*
    public void processSelectedRow(ActionEvent event) {
    //showing popup
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    ph.add(RichPopup.PopupHints.HintTypes.HINT_ALIGN_ID, (UIComponent) event.getSource())
    .add(RichPopup.PopupHints.HintTypes.HINT_LAUNCH_ID, (UIComponent) event.getSource())
    .add(RichPopup.PopupHints.HintTypes.HINT_ALIGN,
    RichPopup.PopupHints.AlignTypes.ALIGN_AFTER_END);
    getPopUp().show(ph);
    return;
    (I copied the backing bean code from forums.......)
    Any suggestion is greatly appreciated....
    -R

    Hi,
    what partialSubmit=true does is not that it sends an extra form submit but that it prevents a full page reload. The dialog you are attempting to load is a DHTML dialog, which means that the source is part of the page. If the button however leads to the page re-loading then the dialog is dismissed while it attempts to start. The reloaded page then has no event triggering the popup
    Frank

  • Tables in popups not refreshing

    I'm having difficulty with some table refreshes within a popup. Here's my scenario. I have a window that displays a table. The user clicks edit, and the table is shown in an “edit” popup. At this point, if the user makes changes, clicks ok, then the table on the beginning page is refreshed correctly. To do this, I am using the following method to refresh the page fragement, AdfFacesContext.getCurrentInstance().addPartialTarget(this.getViewTablex());
    Here is the issue,
    The user chooses to edit the main table, and the edit popup appears. So far so good. The user then wants to add a new record, they click “Add” within the edit popup so I then show a new popup form where the user enters the fields for the new row. When they click ok on the "add" popup form, then the edit popup (from which they called the add popup) does not refresh the table with the newly added row. The row they added then appears as the first row in the edit popup.
    What further complicates this is that I have to validate the "edit" popup rows when they click ok, to make sure all the data is valid, so I can not do a commit on the underlying table until after the validation. But, I need the newly added row in the table (or view) in the edit popup as part of my validation.
    So, I have a table that makes use of an edit table popup that in turn makes use of an add form popup. But I cannot commit until I validate the edit popup. The problem is I’m not getting the newly added row that was created in the “add” popup to show up in my edit popup.
    Here is the add popup handler I’m using
    public void onAddxxxPopupFetchAction(PopupFetchEvent pPopupFetchEvent) {
    try {
    OperationBinding lOperationBinding =
    lBindings.getOperationBinding("CreateInsert");
    //If the Insert failed, return a "Severe" message.
    Object result = lOperationBinding.execute();
    if (!lOperationBinding.getErrors().isEmpty()) {
    return;
    } catch (Exception e) {
    public void addxxxDialogOKAction(DialogEvent pDialogEvent) {
    try {
    //refresh the page fragment.
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getEditPopupTable());
    } catch (Exception e) {
    And here is the popup portions of the page fragment
    <af:popup id="addPopup" contentDelivery="lazyUncached"
    popupFetchListener="#{backingBeanScope.backing_ui_pages_Maintenance. onAddxxxPopupFetchAction }"
    popupCanceledListener="#{backingBeanScope.backing_ui_pages_Maintenance.onAddxxxPopupCancelAction}">
    <af:dialog id="addDialog"
    dialogListener="#{backingBeanScope.backing_ui_pages_Maintenance. addxxxDialogOKAction }"
    closeIconVisible="false">
    and for the edit popup;
    <af:popup binding="#{backingBeanScope.backing_ui_pages_Maintenance.editPopup}"
    id="editPopup">
    <af:dialog binding="#{backingBeanScope.backing_ui_pages_Maintenance.editDialog}"
    id="editDialog" closeIconVisible="false"
    dialogListener="#{backingBeanScope.backing_ui_pages_Maintenance.editxxxDialogOKAction}">
    I am using JDeveloper 11.1.1.6.0.
    Any help would be appreciated.
    thanks!
    Doug

    Seems like a PPR issue. Try have a partialTrigger corresponding to the OK button of add popup on the table in the edit popup.
    Thanks,
    TK

  • ADF Faces to Trinidad migrated app popup not working

    I have 10g version application (ADF bc and jsf) migrated to 11g using automated migration of jdeveloper and this application has lot of popups . for some reason pop ups are not working in the converted app
    if i open a popup programmatically it works okay , but it is not working when used from faces-config.xml ; with dialog:edit etc and usewindow = true - opens in same window
    for this blog post [http://blogs.oracle.com/Didier/2008/12/dialog_not_opening_in_a_popup_1.html] by Didlier , the configuration should be moved to adfc-config.xml file , but looks like that is only required when using rich controls ( mainly task flows) . for now my applicaiton only has trinidad components.
    If i create adfc-config.xml manually and copy all the navigation flows , will it work. i guess i need to specify that somewhere for the application to start using this file
    I thought i will download the converted srdemo but the link to converted srdemo from here [http://www.oracle.com/technetwork/developer-tools/jdev/migration-082101.html]
    is not working
    if anybody have suggestions please advise , thanks for your time
    Regards

    There seems to be a broader problem here in that the client-side validation is not respecting sub-form boundaries. Any post on the page causes all the validations to run, not just the ones in the subform that contains the control the invoked the post.
    Also, with the field marked as immediate, will I have problems with a "Cancel" button marked as immediate? Will the validation on the immediate field take place prior to the navigation invoked by the Cancel button?
    Thanks.

  • Adf AutoSuggest Popup not working properly with af:InputText

    Hi,
    I have a scenario where I have a inputText box with autoSuggest . Now I need to validate the inputText for having minimum of three characters . I added the af:ValidateLength .The moment I added af:ValidateLength or any customValidator ,the af:autosuggest popup starts behaving weirdly.
    For eg:
    I enter say two characters in my InputText -> AutoSuggest triggers shows me the suggestList,(press tab) the ValidateLength Validator throws a error msg pop stating "Error:There are too few characters ,enter 3 or more characters".
    Now go back to InputText and start entering text ->AutoSuggest triggers shows me the suggestList -> Select a particular value from the suggestlist ,the value gets populated in the InputText but the AutoSuggest popup does not close.The Popup remains there and does not disapper once you select the value.This happens only when I have af:ValidiateLength or any customValidator added to the InputText.
    IF I dont add any Validator for the InputText ,the autoSuggest popup closes up fine after selecting a value from the suggestList.
    Here is the code I have:
    <af:inputText label="#{atkreportingpanepublicuiBundle1['OLabel.Search.QuickSearch']}" id="it1" simple="true"
    value="#{pageFlowScope.treeModel.searchCriteria}"
    autoSubmit="true">
    <af:autoSuggestBehavior suggestedItems="#{pageFlowScope.treeModel.getSuggestionList}" maxSuggestedItems="10"></af:autoSuggestBehavior>
    <af:validateLength minimum="3"/>
    </af:inputText>
    And In my bean I do :
    public List getSuggestionList(String inputKey){
    List<SelectItem> filteredChilds = new ArrayList<SelectItem>();
    rootNodes = fetchfilteredCatalogData(rootNodes); //Do some manipulation and generate this ArrayList of values to be compared with
    if(rootNodes != null) {
    for (ItemInfo info : rootNodes) {
    String caption = info.getCaption().toLowerCase();
    String key = keyword.toLowerCase();
    if(caption.startsWith(key)) {
    filteredChilds.add(new SelectItem(info.getCaption()));
    } else {
    System.out.println("No matching values found for TypeAheadlist inputKey");
    return filteredChilds;
    Is this is a known issue where auto-suggest under InputText with af:Validator behave weird or can something be done to overcome this scenario.Kindly suggest.

    Hi Timo,
    Thank you for the code suggestion.But Timo say I dont type anything in my InputText and validate for empty String . I have "Go Button" in the page that does that.Basically its a search page with a InputText along with autoSuggest and with a 'Go"Button.
    Now the suggested Code will return me the msg "Type in three or more characters.." when I type in less than 3 characters.
    In order to Validate for empty String in InputText (i.e Validate if InputText value is null) , I believe I would have to make the required property of the InputText to true.
    If I do that and check,
    I click the "Go" button it validates and throws the default "error" message in the pop-up.
    Now I go back to and start Typing a keyword -> after 2 characters the auto-Suggest list throws up the suggestionList.
    Now I select the Value from the SuggestList ,it populates the InputText with the value I selected from SuggestList but the SuggestList popup does not close after selection.This seems to be the issue.
    Whenever any Validation is done on InputText ,the SuggestionList popup does not close on Selection a Value from it.
    How to overcome this scenario.

  • Popup not INSERTing into table and not refreshing called page ...

    Greetings
    Environment: APEX 3.1.1.00.09 on AIX 5.3 in 10gR2
    I have read many of the threads concerning my issue and I feel I am getting close to the answer but somehow have combined too many of the suggestions and am tripping over my own code.
    Please look at my sample application on apex.oracle.com:
    Workspace: galway
    User: gwicke
    Password: gwicke
    Please start with Page3, select any Agency and then click 'Add New Contract'.
    There is currently a <strong>BOLD </strong>label 'Add New Builder' that is a link that should open a popup window. Type any name into the field and click 'Create Builder'. This should INSERT the row into the builder table, close the popup, assign the new builder name to the calling page item 'Builder Name' and populate the screen item.
    In it's current state, the application will open the popup window, allow entry and close upon clicking the 'Create Builder' button. However the new builder is NOT inserted into the table and the calling page item is not populated.
    By looking at the Page Items and Session State I can see the correct values assigned to the 'Pn_BULDER_NAME' items on both the popup page (4) and the calling page (2) but the value does not appear on the screen.
    I've read where there's really two parallel universes, no sorry, two versions of the screen items, one in Session State and one that is displayed in the browser and there are steps to take to be sure the one displayed is updated from Session State as I would like in this case.
    I've entered Javascript code in the Page4 - header to define the 'passBack2()' function and code in the 'Optional URL Redirect' section of the 'Add Builder' button to hopefully execute the ARP for the INSERT, assign the Page2 items and close the popup. It doesn't quite get all that done.
    Any helpp is greatly appreciated. Thanks to Denes for most of the code suggestions I've followed.
    -gary

    Hi Gary,
    I think that there's a very simple solution to this - didn't really spot it last night.
    Firstly, yes, you could use a "button" to handle the call for the popup - just make sure that the button is a URL type "button" that is actually an A tag with the call in the URL target setting. Alternatively, you could take you existing A tag and use the same class attribute for one of your buttons as this should make it look like a button.
    More importantly, though, I think that we could do it as:
    1 - On your page 2 popup call, clear that cache for page 4 (the popup page) - I have already done this in your app by updating the url
    2 - On the popup page, allow the user to enter in their desired P4_BUILDER_NAME value (not sure if you want to do something to make this unique?)
    3 - Let the user click the Create button on the popup. This will submit the page, which will get your P4_BUILDER_RANK (the pk) value and insert a new record into the table (you could consider creating a sequence and a trigger to handle the creation of a new PK value?).
    4 - Assuming the P4_BUILDER_RANK then exists (it wouldn't if there was an error somewhere), then conditionally display a region that had a piece of javascript that submits page 2 and then closes itself - we don't need to pass anything back to page 2 (see below)
    5 - As the P4_BUILDER_NAME and P4_BUILDER_RANK exist in the session, when page 2 is being reloaded, (A) the select list would be updated with the new Builder (still not sure why all my entries appeared at the bottom instead of in alpha order??) and (B) both P2_BUILDER_NAME and P2_BUILDER_RANK can have Post Calculation Computations set (NVL(:P4_BUILDER_NAME,:P2_BUILDER_NAME) and NVL(:P4_BUILDER_RANK, :P2_BUILDER_RANK) respectively) - the effect of this is, if there are values stored in the P4 page items, we use them, otherwise we use whatever values were in the P2 page items
    6 - Finally, to stop (5) happening in all page 2 loads, you would need to clear the cache for page 4 in as many places as possible - eg, branches to page 2 or buttons on page 2
    The reason we can't pass values back to page 2 is that one of the items is a select list. The value we want to select won't appear on the select list until the page has been submitted. So, we can't set the value and submit because the value isn't there. We can't submit and set the value because javascript wouldn't know when the page has been updated (or, at least, you would have to put some independant mechanism in place to identify this, which may become complicated).
    So, simply put, as long as we know that if the values are in the session, we can use Post Calculation Computations to set our fields to these values. The only thing to bear in mind is that we need to ensure that these session values only exist when we need them - hence clearing the cache. This principle should work for any type of field - but, as you have no doubt seen, simple text fields can be updated by the popup directly as the field should accept any value we give it.
    My only other recommendation would be to completely remove the MRU processes from the page as these are not required (they just confuse the issue) and you could make your PK fetch and record insert into a single process - just to keep things neat and tidy, you understand!
    When I finished with your app last night, I did leave it so that javascript would create a new option on the select list and then set the value. But the above methodology seems to be a lot simpler.
    Andy

  • Message popup not appearing

    I created a dll that had a message popup (userint.h) using Cvi version 6 on Windows XP, then using the Cvi runtime module and everything was good. I am now using Windows 7 (32 bit) and the latest Cvi runtime module and the dll partly works, does not give any errors, but the message popup does not appear.
    My guess is the new Cvi runtime module maybe does not support the older message popup, but really dont know, could be the Windows version; anyone know about this?

    Hi,
    I don't believe MessagePopup has changed since CVI 3.0 as stated here: http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/uiref/cvimessagepopup/
    I would recommend stripping it down to the barebones and see if you can get it functioning that way.

Maybe you are looking for