Hardcode of a field in a form
Hi Gurus!
I want to hard code a field in a form. so that I cannot enter every time that field. Can you please tell me how to do using forms personalizations.
Thanks,
Darren
Is it D2k forms or OAF page?
--Shiv
Similar Messages
-
I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.
Update automatically under which circumstances, exactly?
-
Access 2013: Sum fields on a form suddenly showing up blank
I have a simple Access database (originally built in 2010, now running 2013). Sometime in the last week or so all of the SUM fields in the database started showing up BLANK (one minute everything was working fine, the next it wasn't, not sure what happened
in between). Even when I create a new, basic form, I can't seem to get my SUM fields working.
For example, I have a table where I document number of miles traveled for work purposes, the fields include: TravelDate, ProjectID, Mileage, and Description. Mileage is a Number field, Long Integer. If I create a continuous form, connect it to the table
(same thing happens if I connect to a query), add a field in the Detail section with
Mileage as control source and txtMileage as name and a field in the FORM FOOTER that is: =Sum([txtMileage])...the SUM field is empty in
Form View. And, there are no NULL values in the data set. This is happening across all of my forms and subforms, all SUM fields are now displaying as blank.
Is it possible that I changed a global Access setting to cause this? A form setting? Any other ideas?
Thanks!
LauraI had the same sudden issue. But I was able to determine that it involved only one workstation. All the others were fine, as well as a test run on another Win 8 station outside the environment. From there I was able to determine that a third party
app had been installed near the time of the problem showing up. I uninstalled it and it immediately was resolved. The app was a C# based tool thought the authors have yet to identify why this caused a problem. My suspicion is that they wrote a 32 bit version
and this was installed on a 64 bit station, and there is some issue with mso.dll, where I believe the function calls exist for sum. I am testing to see if there are similar function errors in Excel.
What is noticeable was that Access did not throw a an Error# nor a #name. Just nothing appeared, and when you click on a row, the sum would appear, though it was incorrect.
In Access 2010 I remember there were some footer field issues in continuous which eventually were patched.
It was an opportunity to remind my client - do not install anything from any one on the live system without prior testing. -
Enable/disable fields in Workspace form
Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!Hi Rahat,
You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
1-First place a hidden field ("user_role") in your form
2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
3-On the initialize and change events of the "user_role" call your script object
4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
Oguz
http://www.kgc.com.tr -
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari -
How to copy text from Excel to a text field in the form?
Hi All,
I want to copy a text from Excel or Word file and paste it in a text field in the form, How?
I tried to use ctrl+c for copy and ctrl+v for paste but it doesn't work!hi, i've seen this problem before but can't remember what the solution was...
but just by searching on this forum resulted in this link
Re: Copy and Paste
hope it helps -
Change the value of a field in a form when the form is displayed
Hello
I have a report which has a link to a form for updating the records. I have used a link to the form from report which displays the the record to be updated i.e it gets default values from the report. I need to change one of these values at the time of displaying the form. The set_value in the 'before displaying the page' section doesn't change the vaue displayed in the form. I tried in other 'Advanced pl/sql' sections provided but didn't succeed.
Thank you
Jayasreehi,
let's call the new value u want to set "NewValue"
insert this code in the before displayin' the page
htp.p('<script language="Javascript1.1">
function defaultValue(fieldname)
var thefield;
for( var v=0; v < document.forms[0].elements.length; v++)
// get the right field
if (document.forms[0].elements[v].name.indexOf(fieldname) >= 0 )
thefield = document.forms[0].elements[v];
thefield.value='''||NewValue||''';
break;
</script>');
in the after displaying the page section call the function above with the appropriate field:
htp.p('<script language=javascript1.1>
defaultValue(''Field_Name'');
</script>');
where Field_name is the name of the field u want to change the value!
Mohamed -
Hi,
I have some fields in my form that i want to hide. I added in some javascript into the button-click event. When previewing in the Adobe LiveCycle Designer, the fields are hidden successfully,but when i press F8 button the fields are not able to hide.
My JavaScript is:
if(this.rawValue == null)
this.presence = "hidden";
Thanks.Hi,
you can use as below,
below Scripting can be used to ahcive this.
1. FormCalc Scripting.
2. JavaScript.
Combination of both is also allowed in same form.
Example:
if( hasValue($) ) then
StaticText1.presence eq u2018visibleu2019
Else
StaticText1.presence eq u2018hiddenu2019
Endif.
Thanks,
Chandra -
Hi Experts,
I have following requirement for hiding fields in my form.
I have two screens MANAGER and HR screen.
now i have some input fields which has to be visible in MANAGER screen and
and should be hidden in HR screen.
please let me know how can i achieve this using form calc or java script.
any code will be helpful.
Thanks,
SantoshHi sushmita,
Thanks for ur reply.
The solution which you have given i have already tried but not working.
my requirement is like MGR or HR can initiate the process.
if only MGR intiates the process the solution which u have given will work.
but here i have a diff scenario.i have created separate process for HR also but im not able
to see that process on the process list.
so i have to use only one process and resolve this.whatever im writing validation is working
only when MGR initiates the process but fails when HR initiates.
Hope u got my point.any suggestions will be helpful.
Thanks,
santosh -
hiding fields in a Form is called what? How do I go about hiding fields in a form than having a button the user can click on to make the fields visible to fill out? Thanks Nick
The "presence" property controls the visibility of form elements.
This eseminar explains the details:
http://adobechats.adobe.acrobat.com/p87746471/
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
http://www.adobe.com/devnet/acrobat/javascript.html
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article) -
How to show a time field in a form portlet
Hi,
I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
a new sequence no. when a user inserts a record??
Thank you!
cheers, KimHi,
Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
Thanks,
Sharmila -
I entered new fields in a form that was created last year to update it. However, now when I view the responses, the headings are listed as Column 1, Column 5, etc. rather than the name of the heading. Can you please help?
Hi Mike,
CRSE is an OEM Product and for use with a custom application they have written. Unfortunately we don't their reports or how they are connecting, it would appear they were originally built off a SQL and then set to a Dataset in the app or they could be adding the data source at runtime. Lots of variations and without access to the source code to see what they are doing not much we can help you with.
You need to contact the OEM Partner for help in resolving this and find out what you can and need to do to update your SP and work with their canned reports,
Thank you
Don -
How to encrypt the text in password field in Oracle Forms version 6i
Need help!
How to encrypt the text in password field in Oracle Forms version 6i?
one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
Thanks!Hello,
Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
Francois -
How to make Mandatory field in adobe form
Hi Experts,
I have a text field in adobe form,.If user could not interact this form, without filling the text field..can you please give me the suggestion?
Thanks,
HansHi,
Write the following script at the exit event of your text field.
if ( $.rawValue == null )
then
$host.messageBox("Please Enter Value")
$host.setFocus("TextField1");
endif
Here TextField1 is the name of the text field.
Regards,
Vaibhav Tiwari. -
How to make a field in adobe form noneditable
how to make a field in adobe form noneditable. like info keys..
when this form is sent through worflow the receiver shudnt be able make changes to the field value...(I have a form, which has fields prefilled(like pernr employee name) but these fields are in editable able..(i want only some fields to be uneditable not all)
Edited by: kumar gaurav on Apr 11, 2008 8:04 AMHi,
You can make fields non-editable at runtime using this code:
field.access = "readOnly"
Hope this helps.
Amit
Maybe you are looking for
-
hello, purchased a new iphone 5 and i now want to put all my music and picture from my 3gs onto it. however its been several years since ive updated my 3gs and now itunes wont fint it when i try and conect it.
-
Hi, I got Lumia 620 in March and its lock key is not working now. There was no damage in phone and when i visited service center, they said that you may have pressed it hard and due to this, key has been damaged now. They are asking me to replace the
-
How to enhance the context menu in Web Applications - BW 7.0
We have to enhance the context menu of several Web Applications and, initially, we based our solution on the paper "How to enhance the context menu of Web Applications", from June, 2002, but the solution described on the paper refers to the BW versio
-
Scanned pdf file-how to edit/translate
Hi, I am not very good at working with computers/but pretty good at messing them up...Anyhow, I have a Mac OS X version 10.5.8 and I received a file that I need to translate into my own language (my own translation, no need of computer aid in transla
-
Unable to sync iPhone4 with new iTunes 11 UI
Has anyone else experienced this? Just upgraded to iTunes 11 with the new UI and found myself unable to sync my iPhone4. The "iPhone" button would be next to the "Store" button but if I tried to click it (left or right click) the button simply disa