How messageTextInput element readonly on loading the page dynamically?
Hi allThis is my requirement. I have a point message text entry populated on load of the page attributeX of the VO. I need to check the condition of attributeY! = pageContext.getUserName () and if he is convinced that I have to make the item messageTextInput as read only when the page is loaded. To do this, I wrote the following code in the form request process.
vo.executeQuery ();
If (VO. GetCurrentRow.GetAttribute ("attributeY")! = pageContext.getUserName ())
{
OAMessageTextInputBean bean = (OAMessageTextInputBean) webBean.findChildRecursive ("txtItem");
bean.setReadOnly (Boolean.FALSE);
}
Copy the following code throws exceptions. Also if I don't give the if condition and just trying to make the point to read only the loading of the page, it does not take exception, but does not in read-only mode.
Please let me know how to solve this problem.
Thank you
Sunny
Sunny,
Can you check after the vo run the query, your VO have rows by
vo.getFetchedRowCount (),
And then do vo.first () and then only the if condition,
Inside the if condition add some diagnostic message to check, your state of health is coming inside.
print the values for vo.getCurrentRow.getAttribute ("attributeY"), pageContext.getUserName)
And if you compare the string, you must use api .equals
If (!) (vo.getCurrentRow.getAttribute("attributeY").equals (pageContext.getUserName ())))
Thank you.
With respect,
Kali.
OSSI.
Tags: Oracle Applications
Similar Questions
-
How to send the page before loading the page header?
Hello
Is it possible to send the page before loading the page header. Because I have a sql report in the homepage itself that needs to be exported to excel.when, loading the page, the page elements will be set to NULL in the session that causes the output export empty.
Appreciate the help,
IDEOGRAMHello
Use according to the calculations of the header for these items.
It should workBR, Jari
-
How to assign a value to a control to display after loading the page?
I use JDeveloper 10.1.3.3 using ADF.
How can I run a support bean method to populate a control immediately after loading the page. My intention is to populate a control hidden with the session id. The code that I would run is something like this:
FacesContext ctx = FacesContext.getCurrentInstance ();
ExternalContext ectx = ctx.getExternalContext ();
HttpSession mySession = ectx.getSession (false) (HttpSession);
String sessionId = mySession.getId ();
Where would I put this code?
Thank you
John
Published by: John Matozzi, October 28, 2008 15:47Hi John,.
create a method called getSessionId returning a string in your bean support.
public String getSessionId(){ FacesContext ctx = FacesContext.getCurrentInstance(); ExternalContext ectx = ctx.getExternalContext(); HttpSession session = (HttpSession) ectx.getSession(false); return session.getId(); }
then in your page you can use the link editor to call the method and display its value.
Brenden
-
Error "Could not load the page" when you click the backup and Restore Center
Original title: Save reestore center problems
OK so I need to restore my pc and when I click on the backup center and restoration he always says "Unable to load the page"... . How can I fix
try to reinstall the backup files if you have a windows disk to use to reinstall or if your computer has windows factory preintalled windows, you could reinstall striehgt from your computer
-
updating of the chart without loading the page
Hi friends,
I use apex 4.1. now I want to refresh only the graphic region I created the graphic area and I replaced the mentioned below instead of #CHART_REFRESH javascript code # in the Source of the region
JavaScript code
--------------------
< script type = "text/javascript" >
function RefreshChart()
{
Alert ('a');
var chart_name = ' #CHART_NAME #'.substring (1);
apex_RefreshChart (& APP_PAGE_ID, chart_name, 'en');
}
< /script >
and then I created an item_id is P7_X(date format), then created dynamic action if I change the P7_X(that_is_change_the_date).it of the order of the day will address the dynamic action, first of all submit P7_X point id throught plsql and then javascript call function (RefreshChart()) in the source.but region can't be able to call the javascript function in the source of the region.
kindly tell me how to call the javascript function if javascript works within the source of the region (region of graph)
If it's no way to tell me the procedure to see how cool the graphics area without load the page.kindly help me...Hi 888837,
Be a little more patient! He is a volunteer help forum where everyone also has a day job. Keep in mind that we probably don't sit in the same time zone and have different work schedules. If you need fast response time, then you should get in contact with the Support of Oracle.
That said, I had a look at your example. The only error, why it did not work was because you used two different date formats. Used for the switch of date dd/mm/yyyy and to the TO_DATE in the SQL statement, you use mm/dd/yyyy. Now I've changed two masks of DD/month/yyyy format to make it more transparent month. If I now enter on 2 February 2008 and leave the graphic field is getting updated with the expected data.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Fire fox is slow and on a single website, it goes on the site but will not load the page
Fire fox is slow. Also on a single Fire fox web site goes on the website but will not load the page
Questions began Tuesday, June 16, 14. Website can be opened with other browsers.
I am running windows XP sp2Start Firefox in Safe Mode {web link}
While you are in safe mode;
Press < Alt > or < F10 > to display the toolbar.
Followed;Windows; Tools > Options
Linux; Edit > Preferences
Mac; name of the application > PreferencesThen Advanced > General.
Find and stop using hardware acceleration.Dig safe web sites and see if there is still a problem. Then restart
-
Pop - up when I double click the icon of firefox on the desktop, the home page and control of two-page fact sheet page. How to stop taking control in the page from to appear repeatedly when I double click the icon of firefox?
You can solve this problem with the file blocklist.xml was forced to update.
See:
-
Basic HTML can only configure Firefox to automatically load the pages as "Basic HTML"?
Will be loading the pages as "Basic HTML" load faster?
Pages take 30 to 60 seconds, OK download at 1 MB per minute.
Some sites, for example Yahoo Mail, have a button to load faster in basic HTML. Other sites can load it as basic HTML?
So: Can I configure Firefox to automatically load into basic HTML if this site can be?(Firefox 3.6.15, Windows XP, 2 MB of RAM, ISP is satellite Hughes in Virginia, USA).
You can consult:
- Adblock more: https://addons.mozilla.org/firefox/addon/1865
You must subscribe to a list of filters (for example the EasyList).
-
Search bar on the Macbook Air doesn't work, will allow me to load the pages of Favorites and links to these pages, but not let me google from the bar or manually enter Web sites, however, it works perfectly fine on the guest user. Have you tried restarting and it still does not work.
The problem should be solved now.
Otherwise:
OS X
iOS
Workaround for problems with the Safari address bar
http://osxdaily.com/2016/01/05/fix-Safari-freezing-address-bar-use/
-
My Dell V305 printer prints very small. How can I get to fill the page?
My Dell V305 printer prints very small. How can I get to fill the page?
Hello
Were there any changes made on the computer before the show?
Method 1:
I suggest you to refer to the article and see if it helps:
Resources for the resolution of the printer in Windows XP problems
http://support.Microsoft.com/kb/308028
Method 2:
See the articles and check if that helps:
To set printing preferences
To set the properties of the printer
Settings that affect printing
-
How can I obtain and load the service pack 2 for my sony vaio 2000
How can I obtain and load the service pack 2 for my Sony Vaio 2000 (model year) that I need it to have
installation of some software.
Rex
I suggest to download the full Windows XP Service Pack 3 (not 2) and copy to a CD for future use, here http://www.microsoft.com/download/en/details.aspx?id=24
-
In the recent update of Adobe Reader, how can I go and delete the pages?
I am struggling with the new simplified design.
Any help is appreciated.
Thank you!
Adobe Reader cannot remove pages.
-
Whenever I click on any button of the trial download on the adobe Web site you I get redirected to a page where the 4 squares are moving to load the page, but never load it, I left my browser on for hours and yet it still doesn't work anyone can help?
clear your adobe.com cookies or use a different browser.
-
How to make navigation that pushes the page to the side while revealing the links?
How to make navigation that pushes the page to the side while revealing the links?
There is currently no way to call JS in reflow, or add some CSS Transitions. You can export the code
and then open it in a code editor of your choice and add the script necessary to do this. An example is available here: wide canvas Show Menu for Bootstrap model
-
"Hide / show" regions – how to keep open after send the page
Hello
I have several regions ' hide / show ' in my request... when the user submits the page, it closes all the
is there a way to keep one open that were opened before the page is sent?
Thanks in advance
Long answer: forget the hidden item and simply store the values in a cookie. Use dynamic action, 1 2 plan to store the values when the page is submitted and the 2nd DA to retrieve the value and developing regions.
Hide and Show parts APEX sticky
Dynamic action 1
Name: Save the open areas
Event: before the Page is sent
Condition: - no requirement.
Real Action:
Action: Run the JavaScript Code
Fire on Page load: [disabled]
Code:
var lOpenRegions = [] $(".hide:visible").parent(".hide-show-region").each(function() { lOpenRegions.push($(this).attr("id")) }); SetCookie("HideShowOpenRegions",lOpenRegions.join(","));
Dynamic action 2
Nom : Open saved regions
Event: Loading the page
Condition: - unconditionally.
Real Action:
Action: Run the JavaScript Code
Fire on Page load: [disabled]
Code:
if (GetCookie("HideShowOpenRegions")) { $.each( GetCookie("HideShowOpenRegions").split(','), function(intIndex, objValue) { $("#"+$nvl(objValue,"x")+" .hide:first").show(); } ); }
Maybe you are looking for
-
Hi team, support I intend to create an Add on Firefox using python. Please let me know how this can be achieved. Kind regards Sandeep
-
Envy 15 j000eb: ssd upgrade
Hello I was thinking about upgrading my laptop with an ssd, I looked, and I could (normally) place an msata ssd into the open slot msata. I want to put the boot (8.1 64-bit windows) on the ssd (250 GB) and use the standard HARD (1 TB) of storage disc
-
Try to reinstall the XP drive after upgrade and previous no Windows CD
I installed an upgrade to Windows XP on a Windows 95 several years ago. The PC had a factory in 95 and I don't have version (past) the CD of Windows 95 to use now. Initially, he finds the 95 disk installation and worked well. Now I have wiped the
-
Update Windows KB936330 says it installed, but it isn't there
Windows update says it successfully installed SP1 (KB936330) but is not here, it is not listed on the system information page or my list of files in the Panel. It appears only in my history as being successfully installed update. So I then tried to i
-
IOS VPN L2L, placement and discuss best practices
We install an IOS router VPN on a for L2L 2651XM VPN bundle. I am trying to determine the best placement for the VPN router. We have Internet BR, then switch outside, Pix, then inside the switch. We have installed a card 4 ports in the Pix 515e to pr