OAF - putDialougeMessage issue

Team,

I have a page in which user enters data, and then click Save. Once the user saves the data, I want to display the message. 'Data successfully saved' and redirect to the same page. I used the code below in processFormRequest

try {}

If (pageContext.getParameter ("item4")! = null)

{

OAViewObject vo = (OAViewObject) am.findViewObject ("WSPOAFINSTVO1");

String column1 = (String) vo.getCurrentRow () .getAttribute ("IncNo");

am.invokeMethod ("apply");

Tokens [] MessageToken = {new MessageToken ("COLUMN1", column1)};

OAException confirm_msg = new OAException ("FND", "TEST_MESSAGE", chips, OAException.INFORMATION, null);

pageContext.putDialogMessage (confirm_msg);

pageContext.forwardImmediatelyToCurrentPage (null, true, null);

}

}

catch (Exception e) {}

throw new OAException ("Exception" + OAException.ERROR, e);

}

Page redirects to the same page, but the message does not appear on the page to be sent.

You guys could help me.

PS: I tried to comment on pageFWD command and it displays a message.

Hmm... Isn't the fields mapped to an attribute of the VO? How many fields you have?

Are you to this page Mode create? If so, you can simply call the createRow method immediately after the method 'apply' and it will clear the values and ready for the new data to be entered.

If you want to redirect and display the message, try passing an extra parameter in the forwardImmediatly and PR based on this parameter, discard the information message.

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • End of table in the OPS database

    Hi all

    I need help about table OAF related issue. I need to display data on the table of the OFA. But every time when I click on NEXT 5 RECORDS from a table and return to the previous page, all column values are substituted with the first column in a table value. Please look at the screenshot. This table created dynamically with dynamic VO

    capturedelete1.JPG

    .

    Now, I click next 5 records

    capturedelete1.JPG

    I'll now have to first five records by clicking back. All column values are overwritten with the first values of the column.

    capturedelete1.JPG

    Code snippet:

    OATableBean = tabbean

    CreateWebBean (OATableBean) (pageContext, TABLE_BEAN, null, "table");

    tabbean.setID ("TableBN");

    tabbean.setNumberOfRowsDisplayed (5);

    tabbean.setWidth("45%"); "

    tabbean.setUserCustomizable (true);

    tabbean.setViewUsageName ("xxVO");

    Is not of the columns at the bottom of the method.

    int numattr = vo.getAttributeCount ();

    for (int columnNo = 0; columnNo < numattr; columnNo ++)

    {

    AttributeDef ad = vo.getAttributeDef (columnNo);

    String attrName = ad.getName ();

    String colName = ad.getColumnName ();

    AttributeDefImpl addr = (AttributeDefImpl) vo.findAttributeDef (colName);

    addr.setUpdateableFlag (AttributeDefImpl.UPDATEABLE);

    System.out.println ("Yves ding"+ addr.getUpdateableFlag () ');

    query was written for the correct data type in TEX INPUT TO DEFINE THE VIEW USE MESSAGE

    Pran string ="";

    Try

    {

    Pran = "SELECT DISTINCT DATA_TYPE FROM DBA_tab_columns WHERE table_name = UPPER (" + TableName + ") AND COLUMN_NAME = UPPER ("+ colName +")"; "

    St = con.createStatement ();

    RS = st.executeQuery ("SELECT DISTINCT DATA_TYPE FROM DBA_tab_columns WHERE table_name = UPPER ("+"'" + TableName + "'" +") AND COLUMN_NAME = UPPER("+"'"+colName+"'"+")");

    System.out.println ("DataType" + Pran);

    While (RS. Next())

    {

    String colprompt = attrdef [columnNo] .getName ();

    OrclDataType = rs.getString (1);

    System.out.println ("DataType" + OrclDataType);

    }

    RS. Close();

    St.Close ();

    }

    {} catch (sqlexception Exception)

    pageContext.putDialogMessage (new OAException ("OraclePreparedStatement OR OracleResultSet Exception" + sqlexception));

    sqlexception.printStackTrace ();

    }

    System.out.println (colname. Matches(".*date.*"));

    If ("!" true".) Equals (colname. Matches(".*date.*")))

    If (!) "" LAST_UPDATE_DATE ". Equals (colname) & &! "" LAST_UPDATE_LOGIN ". Equals (colname) & &! "' CREATED_BY". Equals (colname) & &! "' CREATION_DATE". Equals (colname) & &! "" LAST_UPDATED_BY ". Equals (colname) & &! "" WH_UPDATE_DATE ". Equals (colname) & &! "" LAST_ORDERED_DATE ". Equals (colname) & &! "" PROGRAM_UPDATE_DATE ". Equals (colname))

    If (!.) OrclDataType.equals ("DATE"))

    {

    name of column = (colName.replace ('_', ' ')). toLowerCase();

    String colprompt = attrdef [columnNo] .getName ();

    String colprompt1 = attrdef [1] .getName ();

    System.out.println ("colprompt" + colprompt);

    SampleVO1 is the name of the ViewObject

    OAMessageTextInputBean = oamessage

    CreateWebBean (OAMessageTextInputBean) (pageContext,

    MESSAGE_TEXT_INPUT_BEAN,

    (NULL, 'text');

    oamessage.setPrompt ("Table name");

    oamessage.setMaximumLength (30);

    oamessage.setID (name of column, "col" + "0");

    oamessage.setViewUsageName ("xxVO");

    oamessage.setViewAttributeName (attrName);

    oamessage.setLabel (colName);

    oamessage.setUserCustomizable (true);

    oamessage.setWrapEnabled (true);

    oamessage.setDataType (OrclDataType);

    }

    }

    webBean.set (true);

    webBean.addIndexedChild (tabbean);

    webBean.s

    pageContext.putTransactionValue ("xflag", 'Z');

    xflag = "N";

    }

    Please help me... Thanks in advance

    Is it not the same question as failed form Validation: "the value is not a date and time in the format" ?

    As suggested in the other thread, use a name for the dynamic OAMessageTextInputBean.

    OAMessageTextInputBean = oamessage

    CreateWebBean (OAMessageTextInputBean) (pageContext,

    MESSAGE_TEXT_INPUT_BEAN,

    (NULL, 'text' + columnNo);

    See you soon

    AJ

  • How to produce a drop-down list simple code description for the OPS?

    I'm sorry this is a basic question, but I tried for days, and I see nowhere else to find an answer.

    I need a simple drop-down list, not a search. Here is the list account 10 or if items. It is based on a view that contains a code value, and a description. I want that all the descriptions to be available at all times. Just click on the arrow, and the entire list is displayed. When the user selects an entry, the code associated with the discription fills a related attribute.

    Can someone please tell me how I can produce such a simple thing, or point me to the documentation?

    Thank you.

    Hello

    not sure OFA's lists-driven model, but it's how solve you that problem in the ADF. For OAF related issues, please see the OA framework

    Frank

  • Issue of Navigation to cursor for PPR in OAF event

    Hi all

    There is a field on the page, based on the values in the field ('Y' or 'n') it will trigger the PPR event and display two fields if the value is ' Y. But the problem is when you tab to A field and select the value 'Y '.
    the cursor immediately moves to another field instead of the fields displayed in the RPP, it moves to the first field displayed as part of the PPR event. Need help in this regard.

    Yes it's who said why redirect you the page to itself and pass a parameter to identify this page was processformrequest redirrected
    and based on the parameter value donot query code appeal process only call the setInitialFocusID() method in processRequest.

    Thank you
    Gerard

  • Problem with cursor Max for the PLSQL called by OAF Page

    All,

    We developed a custom and Self Service OFA this page page, we call PLSQL package to validate and insert the data into the database tables. It worked well, but when we deployed this form throughout the Organization (meaning more users), we reach the limits of MAX cursor for a session.

    This for allows Manager to update all their coordinated under, so in a session, a Manager may work on more than one employee so reach the limit of MAX cursor.

    Please help on how we can solve this problem, I checked all of the cursors used in the PLSQL package are closed properly.

    Ex PLSQL Call:

    String createRow = null;

    try {}

    OADBTransaction oadbtransaction = (OADBTransaction) pageContext.getApplicationModule (webBean) .getTransaction ();

    java.sql.Connection connection = oadbtransaction.getJdbcConnection ();

    CallableStatement callablestatement = oadbtransaction.createCallableStatement ("start: 1: = xxx_hr_multiple_rates_pkg.is_create_job_row (pc_job_name = >: 2);") end; ", 1);

    callablestatement.setString (2, primaryJob.getText (pageContext));

    callablestatement.registerOutParameter(1,Types.VARCHAR);

    CallableStatement.Execute ();

    createRow = callablestatement.getString (1);

    String [] retVals = am.invokeMethod ("createWFMJob", parameter1) (String []);

    System.out.println("CreateRow:"+CreateRow);

    CallableStatement.Close ();

    }

    catch (Exception e) {}

    e.printStackTrace ();

    pageContext.writeDiagnostics (this, try (), 1);

    }

    Thank you

    A

    Ankit,

    Please attach your PL/SQL code, so that we can have a look that the issue could be in that.

    In addition,

    Why do you call the code inside this test below? What is the link?

    String [] retVals = am.invokeMethod ("createWFMJob", parameter1) (String []);

    Why do you need the code below? Delete this.

    java.sql.Connection connection = oadbtransaction.getJdbcConnection ();

    Move the callablestatement.close ();  outside of try catch.

    See the link, if you need some examples below:

    Advice from the Oracle Johny: OAF: sample code to call the function PL/SQL of OA Framework

    See you soon

    AJ

  • Appeal iPhone issues 7 more

    I recently bought the new iPhone 7 more.  Not only am I having problems with the LTE service, bounce back between 3 G and no service I am now having problems with call connectivity.  When you try to make an outgoing call, I get an automatic response from my carrier (Verizon) "it's Verizon, we are unable to complete your call at this time, please turn off your phone and back and try again."

    It is a known issue with the iPhone 7 and Verizon. Supposed to be Apple and Verizon are seeking him. It has been a problem since the phone was released. Do a Google search or search here on the forums for a temporary solution but not a cure.  But basically to stop the LTE oice and data into data only in the settings.

  • iPhone 6 more hang freeze issues

    My iPhone 6 more guard suspended (gel) for the past 6 months, I have to reset the whole phone sometimes up to 2 times just to get it to work again. Been a loyal (including my entire family) custome since gen 1 iPhone, iPad, mac book. Am really disappointed with the quality now. Did not bring to the service center since the first day of the problem because I thought that was just a few bugs & was sure that apple will fix it, but after many update of iOS so far, the pesisit still problem.

    iPhone is more quality I've known, hope apple can fix this problem before finally losing the most loyal customers

    Hello BennyFoo,

    Thank you for bringing your iPhone freeze questions here for Apple Support communities. I understand how it is important to have a reliable phone. I'm happy to check this with you.

    The first thing we want to make sure that all of your data on your device is safe. You can perform a backup in iCloud or iTunes using this article: backing up your iPhone, iPad, and iPod touch.

    Once your data is safe, try to turn off your device, then again on the March. Sometimes, that's all that is needed for connections reset and everything working properly again. This article help from Apple will help you to do: restart your iPad, iPhone or iPod touch. If you are still having issues, try force reset then. It is designed to be used when the iPhone does not respond, and it looks to be the exact symptoms that you are experiencing right now.

    If you still experience the same problems after reboot, please try to restore your device from a backup by using this article help: restore your iPhone, iPad or iPod touch from a backup. If you don't have a current backup, please try this help article: If you can not update or restore your iPhone, iPad, or iPod touch. Please pay close attention when you get to step 4 who said "when you see the option restore or put to update, choose update. iTunes will try to reinstall iOS without erasing your data. "to get your iOS reinstalled. Test if the issue is still ongoing.

    Thanks again and have a great rest of your day.

  • Pages on issues of formatting to iCloud

    Hey everybody,

    I created a document Pages using the Pages application on my macbook pro I downloaded then to iCloud Pages so that I can access it from any computer. The issue I'm having is that I formatted some of the text to have a black background and the text to yellow color. For the life of me I can't understand how to change the background color of text on the Pages of iCloud. I beginning to think that changing the background color of text just is not possible on the platform of iCloud, but wanted to put this out there just to make sure.

    I appreciate any help or clarification on this issue.

    Thank you!

    Background (highlight) text color controls are absent in the Pages for iCloud, because it is a subset of Pages for Mac.

    This has been discussed in a previous post here, not so long ago.

  • External hard drive mounting issues on MacOS Sierra

    After upgrading to OS Sierra, I found that my USB3 drives, directly connected to my iMac end of 2012, turn off at startup. USB 2 disks are unaffected and connect properly. The only way to access my USB3 disks is to disconnect and reconnect every time I start the computer, then they are ok. I tried to reset the NVRAM, but it did not work. I found Os El Capitan until this issue is resolved.

    Do not mount or actually turns out always the system start? It was not clear in your subject line and content later, what was going on.

    Are they NTFS formatted drives? See the solutions frequently asked and answered forum if they are.

  • TVos 10 - Apple TV 4 (Wifi issues)

    My apple TV was working until it was upgraded to the new update 10 TVos great. I reset my router and modem, reset the apple tv itself and it has restarted several times, all with the same mistake of not being able to connect to the wifi network. My iPhone and computer are connected properly, get about 40mbps is normal, and the router is in the same room. Everyone knows these issues? No luck, anyone know a fix?

    have you tried to restore the appletv? Restore your Apple TV via iTunes - Apple Support

  • I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please

    I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please

    Try to run this program in your usual account, then copy and paste the result in a response. The program was created by Etresoft, a regular contributor.  Use please copy and paste the screenshots can be difficult to read. On the screen with the Options, please open Options and tick the boxes in the bottom 2 before the race. Click on the button "Report share" in the toolbar, select "Copy to Clipboard" and then paste into a response. This will show what is running on your computer. No personal information is shown.

    Etrecheck - Information System

  • connectivity issues mobile iPhone 7

    I have a new iPhone 7 jet black, so far I'm in love. But yesterday, I noticed an annoying problem. The phone loses the network connection (cell to the & t) and he no reconnect, it will remain just it saying no service. I have to go in airplane mode and outside to force it to look for the network connection.

    everyone knows this? and everybody understand what it could be?

    I already missed messages and a phone call. This could worsen as boring to become a problem. If anyone has any idea what this could be please give me a heads up!

    OH! Another thing I noticed, when the iPhone is connected my signal strength went from-102 to my 6 sec to-86 on my 7! Then when I am connected I am connected!

    Hello jpgraphx,

    Thank you for using communities Support from Apple. I know have a cell connection issue on your new iPhone, it's not what you expect. The good news are the following steps will help to solve your problem with loss of cellular data and see no Service and get your new iPhone works properly again.

    If you cannot connect to a cellular network or cellular data

    See you soon!

  • Backup issues after upgrade to iOS10

    Dear users of Apple,

    I updated my iphone 6 more yesterday with iOS 10. Phone works quite well. But I have my phone backup problems. I usually back up my phone with my iTunes Macbook (Via cable and sometimes on wifi). But after the update to iOS 10 it seems that I can't back up my phone more. I don't know the real cause of this problem.

    1. I am not able to save my iPhone via wifi data in iTunes. (Previously it was not the case).

    2. I tried to back up my phone using the cable also. Also, I pressed "Trust" this computer, but I get this error message. Please see below.

    Also, I allowed my computer by disconnecting iTunes and logging back there. And yet I have the same issues.

    "iTunes could not connect to the iPhone because an invalid response was received from the device."

    Does anyone know what this answer is invalid can be?

    Do I have to change the settings in my phone or iTunes?

    Help please!

    Thank you very much

    Deven

    Did install you the latest iTunes? iOS 10 requires iTunes 12.5.1.

    Get the latest version of iTunes - Apple Support

  • A 2 month old iPod Touch 5th generation began to lose its charge the battery overnight.  East - the developer of a battery issue?

    A "renovated" old 2 months iPod Touch 5th generation just recently started losing its charge the battery during the night.  East - the developer of a battery issue?

    Perhaps. Where did you buy this device?

  • Huawei P9 - I have many issues with getting my pictures from the phone to my Imac

    Huawei P9 - I have many issues with getting my pictures from the phone to iphoto on my Mac.

    Before the summer I bought a Huawei P9 phone, I can easily see the photos on the phone - I can't just them on my mac.  When I connect via a USB cable, it refuses my permissions.

    I try to use my Google account to view on the Mac and move the iPhoto - I can't work either! I can see them, I can't move them!

    I'm pulling my hair out and I have enough to do with! Help, please...

    Jim Hosking

    You need the phone provider support - there is a problem with the way their phone works and how to use it and has nothing to do with the Photos or iPhoto - if pictures is consistent with standards of good Photos and iPhoto won't work with it

    You may need special third party software for your phone load in Photos or iPhoto

    LN

Maybe you are looking for

  • Satellite A200-10Z: how find out if my DVD burner compatible Labelflash

    Hello I have Toshiba Satellite A200-10Z provided with supermulti DVD writer device HL-DT-ST DVDRAM GSA-T20N, I don't know what manufacturer, this model!Does anyone know if this model compatible Labelflash? :|

  • Need help importing to LightRoom

    I am checking Lightroom again.  I managed to convert my library a few months as a test without any problems, but was not ready yet to let go of Aperture.  So I deleted the Lightroom Catalog.  I wanted to test Lightroom again, and yesterday I tried ag

  • Progress of download/Installation/update of bike G.

    Why bike G download/upgrade to update notification of progress of installation as a system bar notification always differ that a piece of Google store once? Estimates are 100% accurate to the status bar notification of the system compared to a piece

  • Setting the default paragraph unique space and NO space between paragraphs

    I tried to set the default value for MS Office 2007 VISTA to SPACE SIMPLE and checked the box where it says "don't add space between paragraphs of the same style".  I click on default and the window just to say that I'm changing things so that it's t

  • DDOS

    Hi, since last week, my web server was attacked at port 80. The SNORT IDS detected T/TCP attacks. I applied the acl denies the sender's ip address, there is a firewall with NAT to the Internet, but there are users who need access to this web server.