To retrieve the default organization name in the OFA page
Hi allMy requirement is that I have a field named OrganizationName
Here, I need to get the name of the organization based on the GETORG.ID)
I read the previous discussions, but they were not clear
I got to know that we need to write the sql query
but here, we should pass the org id
can I know how it's done...
Sasha in advance
DEV
Hi Dev,
Try this,
Get the Id of the pageContext Org and pass the query using the prepared statement to get the name of the organization.
to get the id of the org pageContext.getOrgId ();
for example: String orgIdValue = pageContext.getOrgId ();
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Code snippet to get the name of Org
import java.sql. *;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
Try
{
Query to check the combination for the records.
Dim Query = "SELECT NAME, hr_all_organization_units, WHERE ORGANIZATION_ID =: 1";
PreparedStatement stmt = conn.prepareStatement (Query);
stmt.setString (1, orgIdValue); Set the value obtained by context object
for (ResultSet resultset = stmt.executeQuery (); resultset.next ();)
{
result = resultset.getInt ("NAME");
}
}
catch (System.Exception Exception)
{
Incase of any error during execution of the statement to throw an exception.
throw new OAException ("Error in the application of staffing" + exception, OAException.ERROR);
}
Had
Tags: Oracle Applications
Similar Questions
-
Original title: windows live
My windows live is still unresponsive, he tells me to retrieve the web page, but not always the time joy .every I try to type in anything that either he does not.
It is so annoying
Post Windows Live questions in the appropriate forum found here:
http://windowslivehelp.com/ -
When I am online or offline "this page ceased to spend again, retrieve the Web page" appear. is there a solution?
Hello
1. have you made changes on the computer before this problem?
2. what browser do you use?
3 - do you mean that you receive this error message even if the browser is closed?
4. What is the exact error message?Answering these questions could help us help you better.
Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.
Measures to check the application event log:
a. Click Start.
(b) in the search box type eventvwr.msc , and then on enter.
c. now, click Application in the event viewer (local).
d. now, looking for event log on the right side of the event viewer window.
http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer
http://Windows.Microsoft.com/en-us/Windows-Vista/what-information-appears-in-event-logs-Event-Viewer -
How can I retrieve the same page of a file folder?
Acrobat X Pro, I have a folder of PDF of 100 + and I want to extract the page 6 of each of these files in order to collect all the pages that are extracted into a new document. Currently, all I can get it to do is extract the pages and open this page extracted into a temporary file which I then individually save and close individually.
It is currently what I have and that's obviously not what I need...
var oNewDoc = this.extractPages (5)
var cFlName = this.documentFileName.split ("."). Shift () + "_summary.pdf"
var cPath = "" / C/xxx/xxx/Temp / "+ cFlName"
- oNewDoc.saveAs (cPath)
- oNewDoc.closeDoc (true)
Any help would be certainly appreciated!
Thank you
To clarify...
/ * extract pages * /.
var oNewDoc = this.extractPages (5)
var oFlName = this.documentFileName.split ("."). Shift () + "_summary.pdf"
oPath var = "" / C/xxx/xxx/xxx/xxx / "+ oFlName"
oNewDoc.saveAs (oPath)
oNewDoc.closeDoc (true)
placed in an action will do what I originally wanted. It retrieves the requested page in each of the files in a selected folder. Then renames the files as indicated in the language, saves them to the specified and closes.
-
Failed to retrieve the home page report immediately after, sign in
I created a new report and made it as one of the home page. But unlike the other report of delivered homepage that is not immediately give data, it says "Generating analysis... Click here to view results"and once I click on this link I get the prview. Can you please let me know what is the problem?
Thank you
VAMSi.Hello Vamsi,
OnDemand support would usually be able to set the option 'ON' to load immediately if you trigger a request
However, if deliver you the report by iframe, then it will automatically load-Vinciane
-
After you apply the hotfix, button Submit seems to be different in the OFA page
Hi all
Recently, we have applied a fix to the db in one of our cases of development and we are now able to find the difference, it's originally. The difference is, in the OA Page submit button seems to be a little different.
Fixing of the screenshot, FYR
Note: This is instance 11i in which the hotfix is applied (db is 12 c version)
Kindly share your thoughts
Thank you
Valsaint
Check the solutions mentioned in the links below.
Button style - OA frame display
The button resembles html button not like OPS button
See you soon
AJ
-
Selection multiple question table advanced on the OFA page
Hello
I have a table edge on the OA Page. This advanced table, I had added the action of multi selection table.
For multiple selection, I have attached an Instance of the view and an attribute of the view.
There are text entry field in the advanced table. If the user makes changes to it, a 'updateDate' event fires.
Co:
{if (Event.Equals ("updateDate"))}
System.out.println ("A");
String rowReference =
pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
[Serializable] param = {rowReference};
am.invokeMethod ("DetailsCheckBox", param);
}
Am:
public void DetailsCheckBox (String rowReference) {}
System.out.println ("B");
line oracle.jbo.Row = findRowByRef (rowReference);
Ivo DetailsVOImpl =
FindViewObject ("DetailsVO1") (DetailsVOImpl);
String chkbox = (String) row.getAttribute ("Multiselect");
System.out.println ("multiselect original:" + chkbox);
If ((chkbox == null) |) (chkbox.equals ("N"))) {
ivo.setCurrentRow (row);
row.setAttribute ("Multiselect", "Y");
String chkbox1 = (String) row.getAttribute ("Multiselect");
System.out.println ("multiple selection:" + chkbox1);
Ivo.Reset ();
}
}
The problem is that if there are 5 lines are displayed in the advanced table and changes to one of the first 4 rows, the box gets checked on the page but if I make the changes to the last row, the box is not checked on the page, even if the statement String chkbox1 = (String) row.getAttribute ("Multiselect"); Returns 'Y' AM.
Help, please. Its urgency.Hello
We use the following pseudocode of the AOS.
VO. Reset()
While (vo.hasNext ())
{
your code
}This will solve your problem.
Thank you
Kumar -
Calls to procedures of database with IN/OUT params in the OFA Page
Hello
I have the following requirement, can anyone suggest as the best approach please.
I have a contract with header page and the rows that will be stored in the custom tables.
User needs features to copy, which will provide a copy of the current record with the new record (similar to copy the functionality of the simultaneous program).
As soon as the user presses the copy function, it must call my backend pricedure copy_contract (p_old_contract_no in NUM
p_new_contract_no OUT number
p_ret_code OUT number
p_err_msg OUT VARCHAR
)
Once it returns RETCODE contains 0, and p_err_msg is null, then I need open another page that displays p_new_contract_no.
If one has done similar req. Please share the code.
Thank you
MaheshMahesh
You can use Oracle callable statement to call the procedure of the OFA database. Please find the link to describe which
http://oracleanil.blogspot.com/2009/04/itemqueryvoxml.html
Thank you
AJ -
HTTPS Post does not work in the OFA Page
Hi all
I created a Page of the OFA, by clicking on button I do next.
//--------------------------------------------------------
private static String contactService(String xmlInputString) throws Exception {}
String outputStr = null;
OutputStream outputStream = null;
try {}
URL url = new URL ("https://wwwcie.ups.com/ups.app/xml/ShipConfirm");
HttpURLConnection connection = () (HttpURLConnection) url.openConnection;
System.out.println ("Customer connection established with" + url.toString ());
Configure the HTTP POST parameters
connection.setDoOutput (true);
connection.setDoInput (true);
connection.setUseCaches (false);
outputStream = connection.getOutputStream ();
outputStream.write (xmlInputString.getBytes ());
outputStream.flush ();
outputStream.close ();
System.out.println ("Http status =" + connection.getResponseCode () + "" + connection.getResponseMessage ());
outputStr = readURLConnection (connection);
System.out.println ("Response..." + outputStr);
} catch (Exception e) {}
System.out.println ("error sending data to the server..." + e.getMessage ());
throw e;
} {Finally
If (outputStream! = null) {}
outputStream.close ();
outputStream = null;
}
}
Return outputStr;
}
//----------------------------------------------------
public static String readURLConnection (URLConnection uc) throws Exception {}
StringBuffer buffer = new StringBuffer();
BufferedReader reader = null;
try {}
reader = new BufferedReader (new InputStreamReader (uc.getInputStream ()));
Letter int = 0;
reader.readLine ();
While ((letter = reader.read ())! = - 1) {}
Letter from buffer. Append ((Char));
}
Reader.Close ();
} catch (Exception e) {}
System.out.println ("could not read from URL:" + try ());
throw e;
} {Finally
If (reader! = null) {}
Reader.Close ();
Reader = null;
}
}
Return buffer.toString ();
}
Now, when I run this JDEVELOPER local it works fine, but when when depolyed on the server, then when I click the button then page gets hanged and it does nothing.
Is there any setting I should do in APPS environment. or anyone had done the same. any help will be appreciated.
Thank you
Vijay chraibiHello
If your code works fine in JDev and it does not work on the instance, then you can trigger SR with Oracle for Ptoduct JDeveloper.
Kind regards
Out Sharma -
Control the OFA page scrolling
Hello
In the OAF page, we have developed, when you click button SAVE to save the data, the screen is up i.e. that it scrolls automatically to the top of the page when save the ends of the event.
There are also same thing when we click the button 'Add to the GRID' in a table that has multiple choice.
Let me know if there is a way by which we can manage this problem and focus on the part of the page desired.
Thanks in advance
Saurabhtest fire partial action instead of full submit.
Prasanna-
-
I need instructions to retrieve the HTML page to report a redirection page
I need to report a google redirect page (they use my name & info on the page but it redirects to one of these sites "we scan your computer online") & google says they must give me the
"HTML of your search results page. It provides instructions to get it I have firefox, but they do not work. How to do it? Using firefox with several different queries, I searched but I am not find TI-sorry if this is a stupid question.You can select the part of the page with the mouse and right click on the selection to open the context menu. Use the mode > selection Source to see the HTML code of the code and copy what you need to the Clipboard (Ctrl + C). You may need to adjust your selection.
-
Error retrieve the web page, Internet Explorer not responding
Original title: Internet answers not questions,.
When I try to go to a web site with 9 of 10 times I get a pop up at the bottom of my page saying msn.com, or other sites, does not. Then the question box opens to said web page back? I click Yes, but nothing happens!
Hello
1 when was the last time it was working fine?
2. what version of Internet Explorer is installed on the computer?
3 did you a recent software or changes to the material on the computer?
Method 1:
I suggest you to run the Fixit from the link below and check.
Solve Internet Explorer add-on problems when IE hangs or freezes
http://support.Microsoft.com/mats/ie_freezes_or_crashes/en-us
Check if the problem occurs, if it engages in method 2.
Method 2:
Follow the steps from the link below and check
Tips for solving problems when Internet Explorer hangs or stops working
http://Windows.Microsoft.com/en-us/Windows7/tips-for-solving-problems-with-Internet-Explorer
Note: Reset Internet Explorer is not reversible. After a reset, all previous settings are lost and cannot be recovered. Rather than reset, you might want to reset specific settings in the Internet Options dialog box or delete your webpage history.
Note: there is a risk of data loss if all the files are infected and which can be removed in the cleaning process.
Hope this helps and keep us informed if you need help.
-
hierarchical query of VO in the ofa page
Hello
I try to use the hierarchical query in VO for the display of all levels of supervisors for employee and want to display in populist:
This is the query
REPLACE SELECT distinct (mgx.full_name, "',' ') supervisor_full_name;
XPP. Employee_number
OF per_assignments_x pax,.
per_people_x ppx,
per_people_x mgx,
per_positions pp,
per_jobs pj,
per_position_definitions ppd
WHERE ppx.person_id = pax.person_id
AND ppx.current_employee_flag = 'Y '.
AND mgx.person_id = pax.supervisor_id
AND pp.position_id = pax.position_id
AND pj.job_id = pax.job_id
AND ppd.position_definition_id = pp.position_definition_id
START WITH ppx.employee_number =: 1
CONNECT BY PRIOR MGX.employee_number = ppx.employee_number AND LEVEL < 6
I'm trying to get this VO implemented PR when I run the page in jdeveloper with parameter binding, it's getting error.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement.
I would like to delete the parameter binding and executing CO VO past these two statements may be:
START WITH ppx.employee_number =: 1
CONNECT BY PRIOR MGX.employee_number = ppx.employee_number AND LEVEL < 6
How can I do?
Thank you
MK
has worked?
-
How to invoke the webcam in the OFA Page
Hi all
I'm working on 12.2.3.
Can anyone suggest or give an idea of how make to invoke the custom OAF page webcam and capture and store images in to table.
Kind regards
Guru
Take a look at the answer given the thread below:
-
Need to fill the value of the sequence in a field after insertion in the ofa page
Hi all
I have a custom OAF insert the page in do I have to fill out a sequence to a field value, once the data inserted with success at the table.
so for this I followed the approach below.
1 > created a database sequence.
2 > java in the EOImpl of the file in the accessor method Set for their respective fields wrote code below.
{} public void setContainid (numeric value)
If (value == null) {}
OADBTransaction t = getOADBTransaction();
value = t.getSequenceValue ("XXXXX_CONTAIN_SEQ");
}
setAttributeInternal (CONTAINID, value);
}
But still, I'm not able to complete the sequence value for the field in my oaf page, please help me with that.
Thank you
Hello
Write this logic to create the EOImpl method:
public void create (AttributeList attributeList)
{
Super.Create (AttributeList);
Transaction OADBTransaction = getOADBTransaction();
ContID number = transaction.getSequenceValue ("XXXXX_CONTAIN_SEQ");
setContainId (contID);
}
Sushant-
Maybe you are looking for
-
Satellite L735 - some keys on the keyboard do not work
As I can spread out or whether the keyboard of the laptop is a failure because some keys do not work.
-
Can I use my product key for Windows Server 2008 after the downgrade to Windows Server 2003?
Can I use my product key for windows 2008 after it downgrade to windows 2003?
-
No sound on whatsapp notification after I updated my xperia double m5
Help me please check that this problem.it happens when I update the sony system
-
I have a gateway that has a blue screen and reboots sometimes. I get an error message with these codes 0x0000000A 0 X 00000048 0x00000002 0x00000001 0X80CADD56 0X00000004E 0 X 0000007 0X0006DA22 oXFFFFFFFF oX00000000 PFN_list_corrupt Can someone help
-
cant access built-in web server on HP6940 due to the new router
New router has IP 192.168.2.1 Changed Deskjet 6940 IP 192.168.2.60 and it turned off... fails to 192.168.1.3 to the power upward and can not find network using IP or hostname Hoe can I access the Web server integrated to change the IP address without