Disable form item in oracle apex 3.2
Hi,
I am new to oracle apex, please help me from this problem.
I'm having form item called "P805_COMP_ID" as text field , i need disable it always, for the same i fallowed some steps with the refrence of the link https://forums.oracle.com/forums/thread.jspa?threadID=2309731
Step 1 i have written the jquery
*<script type="text/javascript">*
*$(document).ready(function(){*
hideAdvsearch();
function DisableItems()
*$x_disableItem('P805_COMP_ID',true);*
*</script>*
Step2 : and i'm calling same function in HTML Form Element Attributes
onload="DisableItems();"
but it is not working, please help me,
Thanks and regards,
Ibrahim Sayyed.
Hi Hari,
I am sory to late respond ,
The above scenario is working fine , after calling same function in header and footer atribute.
but it is not working properly if i put condition.
as per below mentioned code if item value 'P802_INT_COMP_ID' is null then it should disable else it should enable.
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
hideAdvsearch();
DisableItems();
Function DisableItems()
if ($v('P802_INT_COMP_ID').val== null)
$x('P802_TEMP_LOG').disabled = true;
</script>
Thanks and regards,
Ibrahim Sayyed.
Similar Messages
-
How to Disable Menu item in Oracle Applications
Hi,
How can I disable a Menu (Actions->user defined menu) Item in Oracle applications by using forms personalization.
Our requirement is to display a message on click of a standard menu using form personalization and it should retain the seeded functionality.
Thanks
Prasanna
Edited by: user13029651 on Jul 30, 2010 6:47 PMAs an Oracle Applications Developer, your best friends are going to be the following docuements:
<ul><li>Oracle Applications Developer's Guide </li>
<li>Oracle Applications User Interface Standards for Forms-Based Products</li>
<li>Oracle Application Framework Personalization Guide</li></UL>
These and all of the other related EBS documents can be found in the Oracle Applications (EBS) Documentation Home and don't forget the Oracle eTRM Technical Reference, but you will need an Oracle Support contract to access this site.
When you can't find your answer in these document sources, you can always ask for help in the E-Business Suite group of forums.
Craig... -
How to validate a shuttle item in oracle apex
Hello,
I am having a shuttle item in the page . I want to validate the shuttle . am using oracle apex 3.2.1 on oracle 11g.
I want to raise an alert if the user not selected value from shuttle else display the selected value in alert .
please help me in resolving this issue.
thanks
Edited by: kumar73 on Apr 17, 2010 2:15 PMHi,
This might help
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldr_pgs.htm#sthref565
Create item level validation Item Not Null
Br,Jari -
Hi,
I am looking for a way to be able to disable all fields in a page based on a certain condition. I was wondering if there is a simple way to do it or do i have to put a condition on each field in the page?
RegardsHeader and Footer > Header Text
<script type="text/javascript">
function disableForm(){
var el = document.forms[0].elements;
var f = document.getElementsByTagName('input');
for(var i=0;i<el.length;i++){
if(el.getAttribute('type')!='button'){
// el[i].setAttribute('style','color:red !important;')
el[i].setAttribute('style','color:black; !important; font-weight:bold; background-color:white;')
// el[i].setAttribute('disabled',true)
el[i].setAttribute('disabled','disabled')
el[i].setAttribute('class','disabled')
</script>
Display Attributes > Cursor Focus
Do not focus cursor
HTML Body Attribute
onLoad="first_field(); disableForm();";
you can create a button and call disableForm(); onclick ... -
How to hide text field item based on true or false cases in oracle apex
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.Hi 2932464,
2932464 wrote:
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.
Giving you example how to achieve this.
Step 1. Create three Page Items
1) P1_ORDER_NO - Text Field
2) P1_REVISION_NO - Text Field
3) P1_ENABLE_DISABLE_REVNO - Hidden,Value Protected - No
2. Create 3 Dynamic Actions
1) Disable revision number on page load
Event - Page Load
Action - Disable
Fire When Event Result Is - True
Selection Type - Item
Item - P1_REVISION_NO
2) Check duplicate order number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ORDER_NO
Condition - is not null
Action - Execute PL/SQL Code
Generate opposite false action - Unchecked
Fire When Event Result Is - True
Fire on page load - Unchecked
Stop Execution On Error - Checked
Wait for Result - Checked
PL/SQL Code -
declare
l_count number;
begin
select count(*) into l_count
from emp
where empno = :P1_ORDER_NO;
if l_count > 0 then
:P1_ENABLE_DISABLE_REVNO := 1;
else
:P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;
Page Items to Submit = P1_ORDER_NO
Page Items to Return = P1_ENABLE_DISABLE_REVNO
3 ) Enable and Disable Revision Number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ENABLE_DISABLE_REVNO
condition - greater than or equal to
value - 1
Action - Disable
Fire on Page Laod - Unchecked
Generate opposite false action - checked
Selection Type = Item(s)
Item(s) - P1_REVISION_NO
Hope this helps you,
Regards,
Jitendra
DER_NO -
Oracle Apex to Oracle Apps Forms migration
Is it possible to migrate a form exsisting in Oracle Apex to Oracle apps forms?If so pl tell me how this could be achieved.
Hey men!!
In my opinio in not posible because in oracle Apex you have another kind of programming, and in Oracle forms you others type of tools for example: triggers, I said isn'tr posible because there isn't a tool or an application that can help you in convert from Apex to Form, it's very extrange circumstance.
This is posible but... you have to program, typing and all of anything for converting to Oracle Form if you don't want to do anything you have to pay someone for developing that ,
in others words you have/must (to) start from the beginning,
from zero.
Unfortunately today there is not application that can let you do that.
I hope this helps,
Best Regards my buddy. -
How to disable copy option for a text item in oracle forms
Hello experts,
I am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a text item in my oracle form and I have to disable to being copy from a text item in oracle forms.Actually I have to make two text item.First text item to type a password and another text item is also to type password.Here I want that the data from first text item should not be copy through the use of mouse or keyboard shortcut key.
thank you
regards
aadityaThank You To reply, Actually doing so as you said,My problem would not be solved.This would hide data in text item than I will not be able to copy that but in my case the data should not be concealed.Actually I have to make a Form to User registration and here is a strictly boundation to have a right email address of user.There would two text items for this purpose as: N_User_Email------> to type email address in text item.Here user would not be able to copy text written from N_User_Email R_User_Email ------> to type email address again as in N_User_Email.
-
Disabled item problem on Apex 4.1.1.00.23
Hello gentleman's
I've got a problem. On my application i have a page with a text field with the options 'Disable' and 'Save Session State' setted to 'yes'. When i put some value on the text field using javascript and try to submit the page the following error message appears:
'Session state protection violation: This may be caused by manual alteration of protected page item P1_TEXT. If you are unsure what caused this error, please contact the application administrator for assistance. Contact your application administrator.'
I really need to save the session state of the text field, even when it is disabled, does anybody know anything about this issue?? I reproduced the error on apex.oracle.com:
http://apex.oracle.com/pls/apex/f?p=1942:LOGIN:1277533900325401
login: test
password: test
Best Regards
RogérioWhat you're seeing is the intended and desired functionality of disabling an item and proof of APEX's built-in security robustness.
To accomplish what you want:
Turn off the 'Disable' option and set the 'HTML Form Element Attributes' to readonly="readonly"Keep in mind though, that now your "disabled" item can be modified by any user that knows how to access and manipulate DOM objects. If that is a concern you may need to come up with some way to validate the item values allowed. -
Apply "WHERE CONDITION" in "MASTER/DETAIL FORM" in "ORACLE APEX
Hi to all respected Gurus of this community.
I have a problem and I hope that there must be solution in this community and I am not aware of that till now.
I have a master/detail form in Oracle Application Express. Now, I want to apply a where condition in master-form to filter the data as per requirement but I cannot do so.
There is an option of "Modify Query" in "Query Definition". According to the instructions I am selecting the desired column (HR_Category) in left and providing text string 'M-9' in the right column to filter the data where HR_Category is M-9, and when I press apply changes, it gives me an error that
"1 error has occurred
The condition you are adding has caused the query to be invalid."
Please help how to proceed to apply a where condition.
Regards
Muhammad Uzair Awan
Oracle APEX Programmer
Pakistanuzairmalik wrote:
Hi to all respected Gurus of this community.
I have a problem and I hope that there must be solution in this community and I am not aware of that till now.
I have a master/detail form in Oracle Application Express. Now, I want to apply a where condition in master-form to filter the data as per requirement but I cannot do so.
There is an option of "Modify Query" in "Query Definition". According to the instructions I am selecting the desired column (HR_Category) in left and providing text string 'M-9' in the right column to filter the data where HR_Category is M-9, and when I press apply changes, it gives me an error that
"1 error has occurred
The condition you are adding has caused the query to be invalid."
Please help how to proceed to apply a where condition.
Regards
Muhammad Uzair Awan
Oracle APEX Programmer
Pakistan
Probably a syntax error. Check the syntax of the new clause very carefully.
Can you post the query indicating which predicate is the new one? If you need to change the column and table names for confidentiality -
Hi All,
How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
This is a enhancement requirement.
When ever user enter value in field 1 then automatically cursor should go to next field.Hello Bobb,
You can create a trigger(when-list-changed) for each list item where you could:
1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
or
2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
Second option is much faster(only an 'if clause')
Hope this helps.
Regards,
Alex -
Which Forms Item properties are converted to APEX?
Has it been documented which Forms item properties are converted to APEX with the Application Migrations tool?
For instance the 'required' property will be converted, but item properties like 'format', 'initial value', 'hint', 'tooltip', 'auto hint', 'justification', 'case restriction' and 'max length' are ignored
I hope more Forms item properties will be converted in a next APEX release.
Regards,
MathieuHello Roel,
Thanks for the suggestion. I have read that piece of paper, but it doesn't tell you in detail what item properties are converted.
I would have liked for instance that the "hint text" property is converted into a help text for a page item.
If the auto hint or tooltip is set in forms, than the Template label of a page item should be set to optional/required with help.
and so on...
There are more item properties which could have a destination in APEX, I reckon.
Now it's difficult to tell which are and which aren't converted.
As soon as you have this kind of list you know which post configuration actions you have to perform.
regards,
Mathieu -
How to call a Oracle Form from within the oracle APEX application
Hi,
I am new for Oracle APEX. I have a requirment where need to call a Oracle form (.fmx file) from within the Oracle APEX application.
Can someone help me out ?
it would be a great help.
ThanksThis might help you...
http://roelhartman.blogspot.com/2008/11/integrate-oracle-forms-with-apex.html -
How to call a Oracle Form from within the APEX
Hi,
I have a requirment where need to call a oracle form from within the Oracle APEX application?
I will appriciate if can someone help me out.
ThanksHi,
are you working with Forms 6i or 10g?
If you want to call a forms 10g page. Just use a button with javascript:
- Target type: URL
- URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
With Forms 6i you can open the directory where your forms file is inside (works just with IE):
<script type="text/javascript">
function fnc_window() {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
if (w.opener == null)
w.opener = self;
</script>Or execute the forms file with vbscript (IE only):
<script language = "vbscript">
sub fnc_forms()
dim progName
progName = "c:\FormsFiles\myForm.exe"
set oShell = createobject("wscript.shell") 'create a shell
'***use the line below to call your app, defined above with the "progName" variable:
oShell.run(progName)
end sub
</script> -
Adobe interactive form : Disabled menu item
Hi experts,
we recenlty satred working in Adobe iteractive form in SAP. and we are facing folllowing issues
1)submenu item is disable (submenu item from "Layout" and "Table" is not enable)
any solution?Hi Sandy,
Thanks for Replying
yes i am in display mode but same thing happens when i am in edit mode..
sorry i can not go in edit mode right now as another developer is working on it.
SAP Net weaver version - 7.31 with EHP 6.0
ALD version : ES2 9.0
See below Screenshot from other adobe form
Message was edited by: Zubin .. -
Migrate Oracle Forms 4.5 to APEX
Hi Gurus,
We are in the process of migrating Oracle Forms 4.5 to Oracle APEX 3.2.1. In order to use the Forms to XML conversion tool, they say the Form version should be at least 6i.
I would be more grateful if somebody can get me Forms 4.5 to 6 or 9 migration guide and if possible some examples, so that I can proceed with this migration.
Any help on this would be very much appreciated.
Thanks and Regards,Oracle supports there tools because there are often needs to move technologies. What made Forms the right choice 10 years ago may not mean it is the right choice now. Hence, it might make sense to switch. Any tool which can take you some of the way can be a help. However, we also have to be realistic on what these tools can do.
If you are aware that a tool takes you to a solution which is less than optimal than if you had designed it from scratch but its good enough for you then fine. If thats what you want and the tool does it for you then go for it.
My experience, and I'm fortunate to have worked with hundreds of Forms customers/projects is that the hype/excitement sometimes has to be balanced with some practical real world experience.
Even moving PL/SQL from Forms into the database is a difficult task and thats the same language.
Maybe you are looking for
-
Printing to PDF from Microsoft Word 2004?
Greetings, I'm in the process of completing my masters thesis and am in need of some assistance. The guidelines for my thesis state that title pages must have a 2-inch top margin and 1-inch bottom margin. When I print to paper from Microsoft Word, ev
-
Hi, I've a big problem of showing asian fonts. Somes of them appeared like squares. I've used an embedded font and It doesn't work. Someone could help me ? Here is the code. public static function createAreaText ( param_clip:MovieClip, param_text:Str
-
AFAB ABAP runtime error SAPSQL_ARRAY_INSERT_DUPREC
Hi, Please, can somebody help me? When running AFAB for period 08 2009, the job gets cancelled and the job log says: The ABAP/4 Open SQL array insert results in duplicate database records. If you use an ABAP/4 Open SQL array insert to insert a record
-
ORA-27369: job of type EXECUTABLE failed with exit code: Key has expired
Hi I defined the following Job on Linux Redhat 5.4 & Oracle DB 10.2.0.4: BEGIN dbms_scheduler.create_job(job_name => 'expjob', job_type => 'executable', job_action => '/EXPO
-
Regarding Oracle Apps Technical Material
hi ,can anybody pass good material on the following ::(11.5.10) New Custom Form Development New Report development New Custom module development Customizing seeded components Migration & Upgradation pdf's r doc's anything ...... have a nice time.