Highlight required fields/Clear fillColor upon data entry
So here's what I'm trying to do in LifeCycle Designer 7. I have a dynamic form that I highlight the required fields by setting their fillColor to a blue upon form initialization. I then want the fields to go to transparent after data has been entered into them. But then if they delete that data, I want the color to return so they know they still need to put data in that field.
I've gotten some help from these forums, but I just can't seem to get it to where it needs to be. I can go between blue and white (w/ a visible border that I don't want), but I cannot get the fields to go completely transparent. If there was a way to automatically check the "Highlight Fields" and/or "Highlight Required Fields" boxes upon opening the pdf, I wouldn't have to do this at all.
So here is my code for the exit event of the fields:
if (this.rawValue == null || this.rawValue == "")
this.ui.oneOfChild.border.presence = "hidden";
this.fillColor = "153,255,255";
else
this.ui.oneOfChild.border.presence = "visible";
this.fillColor = "255,255,255";
If I take out the fill in the else statement, it always stays blue.
Any help would be greatly appreciated.
Thanks.
Hi,
I have the same problem, cannot get the fill color back to transparent.
Could you find a solution?
Regards,
Chris
Similar Messages
-
Required field postal coded has no entry
Hi Experts,
While updating the BP master through TCode UDM_BP, we are getting the following error - Required field postal coded has no entry. Message No.R1304
We have checked the field status for that country in the following path. General settings >Set Countries > Set country specific checks. Postal code requried entry is unchecked for that particular country.
Is there any other configuration to be checked.
Timely help will be highly appreciated.
Thanks in advance
Regards
NarayananPlease check field status for Account Group in transaction OMSG.
Field Status -> General Data -> Address,
Check if Postal code has the 'Required' field status.
Regards
Ganesh -
Highlight required fields via script...
Does anyone know how to highlight all of the required fields via script?
Acrobat displays a checkbox for highlighting required fields, but it
is unchecked by default and the user has to click it each time they open
the document. I have yet to see a way to set it as a preference in
Acrobat or Reader and I don't see any way to enable this via an
initialize script either.
Any ideas?[email protected] wrote:
> Justin,
>
> This line should work...
> app.runtimeHighlight = true;
>
> I try using it in the initialize event for the page but the results are inconsistent. I am having other issues so we left this one alone for the moment. If you get it to work consistently please let me know.
>
> - Yolanda
Yolanda,
This highlights ALL fields. I want to highlight only the required
fields.
Justin -
Highlighting required fields when printing?
Is there a way to make it so that required fields are highlighted when the PDF is printed?
Hi,
Script migth be something like this. Put it on Change event of the check box
if (this.rawValue == 1) { Subform1.fieldname.fillColor="255,255,0"
xfa.layout.relayout();
else
{ Subform1.fieldname.fillColor="255,0,0"
xfa.layout.relayout();
BR,
Paul Butenko -
Hello All!
I am relatively new to creating forms within LiveCycle but I have learned quickly so bare with me on my question.
I have figured out how to highlight a field when a check box is clicked on, however, I cannot get it to remove the highlight when the check box is unchecked?
This is what I used for the highlight:
Subform1.fieldname.fillColor="255,255,0"
Can anyone provide any insight or suggestions on how I might fix this script issue?
Thanks in advance!
-LisaHi,
Script migth be something like this. Put it on Change event of the check box
if (this.rawValue == 1) { Subform1.fieldname.fillColor="255,255,0"
xfa.layout.relayout();
else
{ Subform1.fieldname.fillColor="255,0,0"
xfa.layout.relayout();
BR,
Paul Butenko -
Dear All!
Can somebody help me to relaize the following requirement:
Through WebDynpro (Internet Browser) data entrying. Suppose there
are couples of input fields due to these fileds the user can entry
datas into the system.
Regards
Ilhan ErtasHi,
Pl go through the following liniks
Webdynpro Links
Programming UI and Navigation
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9214b1e5-0601-0010-fdb0-ec32d43b06e0
Webdynpro for Java
http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
Webdynpro Samples
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20sample%20applications%20and%20tutorials.htm
Web Dynpro User Interface
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/ce44a14c-0a01-0010-af89-d7dbd944f176 [original link is broken]
PDf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/netweaverdevelopersguide2004s/sap%20netweaver%20developer's%20Guide%202004s/UsingJava_00_PDFsList.ca
SAP Netweaver Application Server eLearning Catalog
https://www.sdn.sap.com/irj/sdn/elearn?rid=/webcontent/uuid/b1203f5e-0501-0010-bb88-915402c954f2 [original link is broken]
DTR
http://help.sap.com/saphelp_nw04/helpdata/en/88/cb0b405bacdd5fe10000000a155106/frameset.htm
Regards
Ayyapparaj -
Thanks in advance for your input.
I have created a form for our users fill out electronically, but print out to sign and return to us. I would like to make certain fields required; however, checking required fields on happens upon submitting the form electronically. Any suggestions? Thanks, again.The "Required" property is intended for when PDF forms are submitted to a scripted web page for additional processing and it is the web page processing that throws the error, so many of the users that used this even with web submissions wrote scripts within the PDF to provide a better error message prompt.
You will have to create a special script to do this check. -
I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient. What else must I do to enforce data entry within required fileds?
Thank you,There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
// form1.page1.subform1.tf1::exit - (JavaScript, client)
if (this.isNull) {
xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
xfa.host.setFocus("form1.page1.subform1.tf1");
Steve -
Field Bline date is a required field for G/L account 1200 122400
While posting a Good receipt document using MIGO for a PO I am recieving the following error
Field Bline date is a required field for G/L account 1200 122400
Though both the document date and Posting date fields are filled with appropriate date.
The detailed message reads as follows, now my question is how to change the baseline date for the Cocd 1200 for GL account 122400
Field Bline date is a required field for G/L account 1200 122400
Message no. F5 808
Diagnosis
The value for field "Bline date" in the interface to Financial Accounting is an initial value but you are required to make an entry in the field selection for G/L account "122400" in company code "1200" linked to the field selection for posting key "81".
System Response
Error
Procedure
It might be an error in the configuration of the G/L account field selection. The initial application, used to call up the interface must otherwise define a value for field "Bline date". If this is the case, contact the consultant responsible for the application used to call up the interface or get in contact with SAP directly.Hello Ravinagh,
Heres what I did:
OB41> Double clicked on posting key 81> clicked on field status> Payment transactions> Both Due date and Value date have already been set to optional.
For OB14 it asks me to input a field status variant.
There are three of them. Now here is the tricky part, how do I find out which field variant has been assigned
0001 Field status for 0001
1000 Field status for CoA 1000
3000 Field status for CoC 3000
I went further and check for all the three variants one by one
and found out that in the field status> Payment transactions for the following entry in the field status group
G045 Goods/invoice received clearing accounts
The DUE DATE and VALUE DATE are suppressed. What do I need to do here?
Next I checked OBB8 to find the following three Options I dunno which one of them is applicable to the GL account 122400 for Cocd 1200. Where can I find the assignment? How can I find which payment term is being used.
PayT Sales text
Day limit Explanations
0001
0 Payable immediately Due net
0002
0 Within 14 days 3 % cash discount
Within 30 days 2 % cash discount
Within 45 days Due net
0003
15 Within 14 days 2 % cash discount
Within 30 days 1.5 % cash discount
Within 45 days Due net
Baseline date on 30 of the month
Entry 1 of 40
Well I went ahead and clicked on each of them
For 0001 the Default for Baseline date is set to Posting date (Do I need to change anything here?)
For 0002 the Default for Baseline date is set to Document date (Do I need to change anything here?)
For 0003 the Default for Baseline date is set to Posting date (Do I need to change anything here?)
Please guide me here. If you need screenshots I would be glad to mail it to you.
I hope you understood the scenario.
Thanks
Ron -
Check duplicate data entry in multi record block,which is a mandatory field
Dear all,
I have a situation where i have to check duplicate data entry(on a particular field,which is a mandatory field,i.e. it cannot be skipped by user without entering value) while data key-in in a Multi Record block.
As for reference I have used a logic,such as
1>In a When-Validate-Record trigger of that block I am assigning the value of that current item in Table type variable(collection type)
as this trigger fire every time as soon as i leave that record,so its assigning the value of that current time.And this process continues
then
2>In a When-Validate-Item trigger of that corresponding item(i.e. the trigger is at item level) has been written,where it compares the value of that current item and the value stored in Table type variable(collection type) of When-Validate-Record trigger.If the current item value is matched with any value stored in Table type variable I am showing a message of ('Duplicate Record') following by raise_form_trigger failure
This code is working fine for checking duplicate value of that multi record field
The problem is that,if user enter the value in that field,and then goes to next field,enter value to that field and then press 'Enter Query 'icon,the bolth Validate trigger fires.As result first when-validate record fires,which stores that value,and then when-validate-item fires,as a result it shows duplicate record message
Please give me a meaningful logic or code for solving this problem
Any other logic to solve this problem is also welcome@Ammad Ahmed
first of all thanks .your logic worked,but still i have some little bit of problem,
now the requirement is a master detail form where both master and detail is multirecord ,where detail cannot have duplicate record,
such as..........
MASTER:--
A code
A1
A2
DETAIL:--
D code
d1
d2 <-valid as for master A1 , detail d1 ,d2 are not duplicate
d2 <--invalid as as for master A1 , detail d2 ,d2 are duplicate
validation rule: A Code –D Code combination is unique. The system will stop users from entering duplicate D Code for a A Code. Appropriate error message will be displayed.*
actually i am facing a typical problem,the same logic i have been applied in detail section ,its working fine when i am inserting new records.problem starts when i query,after query in ' a ' field say 2 records (i.e. which has been earlier saved) has been pasted,now if i insert a new record with the value exactly same with the already present value in the screen(i.e. value populated after query) its not showing duplicate.................could u tell me the reason?and help me out...............its urgent plzzzzzzzzz
Edited by: sushovan on Nov 22, 2010 4:34 AM
Edited by: sushovan on Nov 22, 2010 4:36 AM
Edited by: sushovan on Nov 22, 2010 8:58 AM -
How to make "Data Entry Profile" field input unable or display only in CAT2
hi ,
I have requiremnet where I need to make "Data Entry Profile" field in the CAT2 transaction as Display only .That is for each user it should come as default one .
The reason behind this is , user should not change this Profile and maintain an incorrect timesheet entries.
Is there any User exit where i can do this ?
Let me know as this is very urgent requirement.
Points will be definately rewarded.
Thanks .Hemant,
Got SHD0 transaction and create screen variant for that transaction there you can disable that field.
Create Transaction variant for that transaction and assign previously created screen variant to this transaction varient. actiavte.
Reward if it helps,
Satish -
Getting Return Message : Make an entry in all required fields
I need help.
when passing objectid blank i am getting "Make an entry in all required fields" Return message.
i checked through se16 --> PA0006 Table for all employeenumber objectid is blank.
below is my code
proxyaddchange.Connection.Open();
// To refer to the subset that has Permanent Address details
string subType = "1";
// Get records till this date(yyyymmdd - format)
string timeIntervalHigh = "99991231";
//timeIntervalHigh = "31.12.9999";
// Get records from this date(yyyymmdd - format)
string timeIntervalLow = "18000101";
timeIntervalLow = "19850101";
proxyaddchange.Bapi_Employee_Enqueue(txtSapId.Text,out Return11);
proxyaddchange.Bapi_Addressemp_Change(txtSapId.Text,"","","",subType,"123456789",timeIntervalLow,timeIntervalHigh,out Return12);
proxyaddchange.Bapi_Employee_Dequeue(txtSapId.Text,out Return13);Adil,
We are having the exact same problem as you have described. Did you ever find an answer?
We would appreciate any pointers you can provide.
Thanks,
Benny -
How to set the field SKB1-FDLEV as requestred-entry in G/L Master data?
Hi All,
Could anyone tell me how to set the field SKB1-FDLEV as requestred-entry in G/L Master data?
Thanks
Gandalfhi
Go to OB26
select Your criteria ( create, change or display)
double click on it
again double click on Bank/financial details
there you will find the Planning level make it require entry
save
with regards
ramanuja chary -
Using Authorization group field in Data entry profile
Hi,
I would need some help in configuring/using the authorization group field in data entry profile.
After setting up the values in the drop down, how do we link to the authorization profiles or roles .
basically, I would like to know the steps/activities required to use this fieldcross posting->thread locked.
-
MAKE AN ENTRY IN ALL REQUIRED FIELDS
HI,
I AM USING THE FOLLOWING EXCEL VBA CODE TO TRY AND CALL A TRANSACTION LX02 DIRECT INTO EXCEL.
Public Sub add_bdcdata(BdcTable As Object, program As String, dynpro As String, dynbegin As String, fnam As String, fval As String)
Dim vField As Variant
j = j + 1
BdcTable.Rows.Add
BdcTable.Value(BdcTable.Rows.Count, "PROGRAM") = "RLS10020"
BdcTable.Value(BdcTable.Rows.Count, "DYNPRO") = "1000"
BdcTable.Value(BdcTable.Rows.Count, "DYNBEGIN") = "X"
BdcTable.Value(BdcTable.Rows.Count, "FNAM") = "BDC_OKCODE"
BdcTable.Value(BdcTable.Rows.Count, "FVAL") = "NEXT"
Debug.Print BdcTable.Value(j, "FVAL")
End Sub
Public Sub rfc_call_transaction()
Dim Functions As Object
Dim RfcCallTransaction As Object
Dim Messages As Object
Dim BdcTable As Object
' Create the Function control (that is, the high-level Functions collection):
Set Functions = CreateObject("SAP.Functions")
' Set the rest of Connection object values:
Functions.Connection.System = "QA2"
Functions.Connection.client = "900"
Functions.Connection.user = "mbrough"
Functions.Connection.Password = "st34lhv3"
Functions.Connection.Language = "EN"
If Functions.Connection.Logon(0, False) <> True Then
Exit Sub
End If
Dim iBOB As Integer
iBOB = Range("A1")
Do
' Retrieve the Function object (the Connection object must be set up before Function objects can be created):
Set RfcCallTransaction = Functions.Add("RFC_CALL_TRANSACTION")
' Set the export parameters
RfcCallTransaction.exports("TRANCODE") = "LX02"
RfcCallTransaction.exports("UPDMODE") = "S"
Set BdcTable = RfcCallTransaction.Tables("BDCTABLE")
' Set the tables parameter and add the data for the call transaction
add_bdcdata BdcTable, "RLS10020", "1000", "X", "", ""
add_bdcdata BdcTable, "", "", "", "BDC_CURSOR", "S1_LGNUM"
add_bdcdata BdcTable, "", "", "", "BDC_OKCODE", "=ONLI"
add_bdcdata BdcTable, "", "", "", "S1_LGNUM", "900"
add_bdcdata BdcTable, "", "", "", "S1_LGNUM", "ActiveCell"
add_bdcdata BdcTable, "", "", "", "S1_LGTYP-LOW", "K01"
add_bdcdata BdcTable, "", "", "", "BDC_SUBSCR", "SAPLSSEL"
add_bdcdata BdcTable, "", "", "", "BDC_SUBSCR", "SAPLSSEL"
add_bdcdata BdcTable, "SAPMSSYO", "0120", "X", "", ""
add_bdcdata BdcTable, "", "0", "", "BDC_OKCODE", "=BACK"
add_bdcdata BdcTable, "RLS10020", "1000", "X", "", ""
add_bdcdata BdcTable, "", "", "", "BDC_OKCODE", "/EE"
add_bdcdata BdcTable, "", "", "", "BDC_CURSOR", "S1_LGNUM"
add_bdcdata BdcTable, "", "", "", "S1_LGNUM", ActiveCell.Value
'End SubCall the function (if the result is false, then display a message):
If RfcCallTransaction.Call = True Then
Set Messages = RfcCallTransaction.imports("MESSG")
MsgBox Messages.Value("MSGTX")
Else
MsgBox " Call Failed! error: " + GetCustomers.Exception
End If
iBOB = iBOB + 1
Loop Until IsEmpty(ActiveCell.Offset(iBOB, 0))
Functions.Connection.Logoff
End Sub
I KEEP GETTING AN ERROR MESSAGE SAYING 'MAKE AN ENTRY IN ALL REQUIRED FIELDS' AND THEN NOTHING DOWNLOADS INTO EXCEL.
CAN ANYONE HELP PLEASE?
THANKSWhen I run this transaction through SAPgui I only have to fill out the field S1_LGNUM, and I have specified this in my code.
Is my code below correct?
Public Sub add_bdcdata(BdcTable As Object, program As String, dynpro As String, dynbegin As String, fnam As String, fval As String)
Dim vField As Variant
Static j As Integer
j = j + 1
BdcTable.Rows.Add
BdcTable.Value(j, "PROGRAM") = "RLS10020" ' Program Name
BdcTable.Value(j, "DYNPRO") = "1000" ' Dynpro Number
BdcTable.Value(j, "DYNBEGIN") = "X" ' X if a screen
BdcTable.Value(j, "FNAM") = "BDC_OKCODE" ' Field Name
BdcTable.Value(j, "FVAL") = "NEXT" ' Field Value
End Sub
As i have seen this in examples where it looks like below.
Public Sub add_bdcdata(BdcTable As Object, program As String, dynpro As String, dynbegin As String, fnam As String, fval As String)
Dim vField As Variant
Static j As Integer
j = j + 1
BdcTable.Rows.Add
BdcTable.Value(j, "PROGRAM") = program ' Program Name
BdcTable.Value(j, "DYNPRO") = dynpro ' Dynpro Number
BdcTable.Value(j, "DYNBEGIN") = dynbegin ' X if a screen
BdcTable.Value(j, "FNAM") = fnam ' Field Name
BdcTable.Value(j, "FVAL") = fval ' Field Value
End Sub
Thanks
Maybe you are looking for
-
How do i show descriptions instead of dimensions at BIBeans ?
We are facing a problem that could be a BIBeans problem or could be an OLAP problem, please inform if to change forum: We are using jdev 903/BIB903 accessing an AW created at Oracle OLAP 9205 with AWM. All our dimensions were created at OWB 10g and d
-
I must use action script, need some direction? I've tried lots of things, not working. I'm in Flash 8. I have long list (radio button), need user to scroll through the list and select a radio button. My BUTTON and IF statements will play a single VID
-
I am trying to add my copyrights to my photos and the organizer is missing the Advance Dialog box from the photo downloader. I'm using Photoshop Elements 9 on Windows Vista 32-bit. I would appreciate any help. Thanks. Lourdes
-
Run a .exe file with parameters from my java code
Hi, I want to run a .exe file from my java program. This .exe file will take some parameters in the command line. I need to supply that to the program as well. Can someone help me in this please? Thanks in advance.
-
Podcast after one year removed
hey, two days ago my podcast was removed from itunes and i got an email, which say that my Feed is a test podcast and after i will load my first episode i can ask for a new acception. But my podcast is more then one year old and was updatet regulary.