How to check if a field is hidden or disabled?
I have implemented a progress bar, however, it counts all the fields in the form including hidden and disabled fields as well. I need to figure out how to check whether a field is hidden or disabled, and not count them for the progress bar. Please help!
Try this (javascript):
if (field.presence == 'visible' && field.access == 'open') {
include in count...
Similar Messages
-
How to check a checkbox field value in fw9 PDF form
Hi,
I got a PDF given form IRS (http://www.irs.gov/pub/irs-pdf/fw9.pdf). While creating a widget to this pdf form to sign it, I merged the custum data to those PDF form fields using API setMergeFields.
All the data fields are merged fine except the checkboxes. I tried by passing the values to the merge_fields array as 'On', '1', 'checked', 'checkbox(checked)' but no luck
What is wrong here in checking the chexbox field in this fw9 PDF or How to check a checkbox field in a form?
Thank you,Hi Simon,
I re-added and edited the fields of fw9 form by pdf printer. While doing so, I made fields as ready only so that, the data cannot be edited in the form through the widget but will be merged the data to fields only be the code. Wherein Im using the widget only for signature but not for form filling.
Here, Im able to merge my custom data to all fields while creating widget but not to the fields of checkboxes. The checkboxes fields which are made ready-only are not allowing me to merge the value as checked by the API.
Please help me,
Thanks you, -
How to check whether a field contains at least one numeric value
how to check whether a field contains at least one numeric value..
Hi,
I hope that this code will works.
constants:
c_digit_grp TYPE char11 VALUE '0123456789', " Digit group
* Data Declaration
data :
str type string.
* if you want check entire string and pass entire string
if str CA c_digit_grp.
* write your logic ---this block will execute atleast one numeric value exists in the string
Endif.
Regards
Bhupal Reddy -
How to check for missing fields in the file?
Hi friends,
I have a file to file scenario in which if any of the fields have a blank value, i have to put the file back in the source folder. If none of the fields are missing, the scenario should work normally.
Can anybody tell me <b>how can i check for the field lengths</b> and if any of the fields are blank, <b>how do i send it back to the original folder.</b>
Waiting for your responses,
Divija.Hi Divija,
>><i>how can i check for the field lengths</i>
Since you need to basically check if the field has a value or not, i dnt think you need to check for the length of the field. Instead, you can use any one of the booloean functions available in the graphical mapping editor to check if the field has a value or not(filed value true or false)
>><i>how do i send it back to the original folder.</i>
You can maintain a flag variable in the target structure such that if any of the source fields donot have values, the flag's value becomes 1 else it remains 0.
Now, you can check if the value of flag is equal to 1/0 in the bpm and accordingly send the data.
If in case, you donot want the flag to come in the target file that is loaded/sent from the bpm in the end, i think even tat can be taklen care of.
You can create two receiver communication channels and define one file adapter in each such that one has the destination as the actual target directory and the other has the original source directory as the destination.
Regards,
Sushumna -
How to check if a field is numeric?
in a select statement is there a way ti check if a field is numeric?
thanksDepends how complex your numbers can be...
SQL> ed
Wrote file afiedt.buf
1 with t as (select '123' as txt from dual union all
2 select 'A343' from dual union all
3 select '345.5' from dual union all
4 select '-1212.34' from dual union all
5 select '-1,212.34' from dual union all
6 select 'A-123' from dual)
7 -- END OF TEST DATA
8 select txt, case when regexp_like(txt, '^-?[[:digit:],.]*$') then 'Numeric' else 'Non-Numeric' end as type
9* from t
SQL> /
TXT TYPE
123 Numeric
A343 Non-Numeric
345.5 Numeric
-1212.34 Numeric
-1,212.34 Numeric
A-123 Non-Numeric
6 rows selected.
SQL>The above doesn't check that there are no more than 3 digits between commas but it will do for most cases. e.g. it won't complain about 1,3,4,5,6.23 and will see it as Numeric. -
How to check if a field in the table is same in all rows??
Hi Folks,
Is there a feature in abap where we can check if a field in a table is same in all rows.
Thanks,
MattThis can be easily self-programmed
read itab index 1. "get first row
"now check if exeists any entry with different value
read itab with key field1 ne itab-field1 transporting no fields.
if sy-subrc = 0.
"not all rows have the same value
else.
"all rows have the same value
endif.
Regards
Marcin
Right now I noticed that using NE operator is not allowed in READ TABLE statement, but you can do simple loop instead
read itab index 1 into l_field1. "get first row
loop at itab where field1 ne l_field1.
flag = 'X'.
exit.
endloop.
if flag = 'X'.
write: 'some fields are not equal'.
endif.
Edited by: Marcin Pciak on Oct 6, 2009 5:35 PM -
How to check whether voltage sensor is enabled or disabled in T5220
Hi,
I use command "prtdiag -v" to check current system status in two T5220 servers. However, I find a strange thing in sensors part as below, which Server one has status info for temperature and voltage sensors but Server two has no related info.
Does it mean the voltage and temperature senors are disabled? How do I check whether voltage sensor is enabled or disabled in T5220?
Note:
Server one has output by command 'prtpicl -c voltage-sensor -v', but Server two has nothing.
Server one:
Temperature sensors:
Location Sensor Status
SYS/MB T_AMB ok
SYS/MB/CMP0/BR0/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR0/CH1/D0 T_AMB ok
SYS/MB/CMP0/BR1/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR1/CH1/D0 T_AMB ok
SYS/MB/CMP0/BR2/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR2/CH1/D0 T_AMB ok
SYS/MB/CMP0/BR3/CH0/D0 T_AMB ok
SYS/MB/CMP0/BR3/CH1/D0 T_AMB ok
SYS/MB/CMP0 T_TCORE ok
SYS/MB/CMP0 T_BCORE ok
Current sensors:
Location Sensor Status
SYS/PS0 I_IN_MAIN ok
SYS/PS0 I_IN_LIMIT ok
SYS/PS0 I_OUT_MAIN ok
SYS/PS0 I_OUT_LIMIT ok
SYS/PS1 I_IN_MAIN ok
SYS/PS1 I_IN_LIMIT ok
SYS/PS1 I_OUT_MAIN ok
SYS/PS1 I_OUT_LIMIT ok
Voltage sensors:
Location Sensor Status
SYS/MB V_VMEML ok
SYS/MB V_VMEMR ok
SYS/MB V_+3V3_STBY ok
SYS/MB V_VCORE ok
SYS/MB V_+3V3_MAIN ok
SYS/MB V_VDDIO ok
SYS/MB V_+12V0_MAIN ok
SYS/MB V_VBAT ok
SYS/PS0 V_IN_MAIN ok
SYS/PS0 V_OUT_MAIN ok
SYS/PS1 V_IN_MAIN ok
SYS/PS1 V_OUT_MAIN ok
Voltage indicators:
Location Indicator Condition
SYS/MB VCORE_POK ok
SYS/MB VMEML_POK ok
SYS/MB VMEMR_POK ok
SYS/MB I_USB0 ok
SYS/MB I_USB1 ok
SYS/HDD0 PRSNT ok
SYS/HDD1 PRSNT ok
SYS/ALARM INPUT ok
SYS/PS0 AC_POK ok
SYS/PS0 DC_POK ok
SYS/PS0 CUR_FAULT ok
SYS/PS0 VOLT_FAULT ok
SYS/PS0 FAN_FAULT ok
SYS/PS0 TEMP_FAULT ok
SYS/PS1 AC_POK ok
SYS/PS1 DC_POK ok
SYS/PS1 CUR_FAULT ok
SYS/PS1 VOLT_FAULT ok
SYS/PS1 FAN_FAULT ok
SYS/PS1 TEMP_FAULT ok
Server two:
Temperature sensors:
Location Sensor Status
SYS/MB T_AMB okServer one has status info for temperature and voltage sensors but Server two has no related info.You are using the prtdiag command as root user whenever you are doing this?
The output when done as root will give full information, whereas if you are NOT the root user the output will almost always have less information.
However ...
Because you have stated that the prtpicl information also seems to follow the same more-versus-less symptoms, I suspect you have a patch level issue.
Server #2 is probably under-patched when compared to server #1 (both for system OBP level as well as OS level).
Determining if that is the root of your issue is too much for a forum thread.
Run Explorer on both systems then use your service contract credentials to log a SR so that Technical Support can analyze those Explorer files for you. -
How to check which Table & Field is populating Data source
Hi,
My requirment is to check from which Table and Which field the data is extracted in the data source
Data Source : 0MAT_PLANT_ATTR
Field in Data Source : MINBE
Now i want to check from where (Table/Field) in R/3 is populating the Field MINBE in Data source 0MAT_PLANT_ATTR
How can i do thatHi,
Since you have the extract structure and the extractor, you can try Extractor Checker RSA3.Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to retrieve data and present it to you.
Note: Set the break point in the Extractor Function module.
View the ST05 Extended Trace list. The Object name shows the Tables accessed.
Hope this helps.
Thanks,
JituK -
How to check empty idoc fields in user defined function
Dear All,
I am working on an IDOC to file scenario. In my user defined function, I want to check whether a particular field of the idoc is populated. I can perform this test in message mapping by comparing the field with an empty constant.
How can I do the same test in an advanced user defined function? I have tried all the following, but none has worked so far
If (a.length == 0) .
If (a[0].length == 0)
If (a[0] == )
If (a[0] == )
Am I doing something wrong?
Thx/FarshadTo check whether an element is not available:
if (a.length == 0)
but you have to set cache to context. If you set cache to queue, it will not work, as in this case the context changes are part of the array a.
To check whether an element is empty:
if (a[0].equals(""))
Regards
Stefan
Message was edited by: Stefan Grube
Message was edited by: Stefan Grube -
How to check for dirty fields in ADF-BC application
Hi,
I am using JDev 11.1.1.3 version and ADF/BC.
In my poc,one of my flows have a scenario as below.
I have a train with 3 stops.
In the first train stop page,I display a page[binded with view] with a form having input fields and having save/cancel fields.
When any of the input fields are changed in the first train page and when I navigate to any other page in the train flow,I need to display an alert message
that the data in the page has been changed.
Kindly advice me on how to achieve this.
If no fields are changed I need not display any alert message.
Please suggest.
Thanks,
PraveenI'm not sure if this works with trains but check out the uncommittedDataWarning property http://one-size-doesnt-fit-all.blogspot.com/2010/02/adf-faces-rc-afdocument.html
Timo -
How to check if date field is initial or not in script layout?
hi all,
i have a requirement, i need to check if a particular field is initial or not in script.
i am checking like this
/: if &VTTK-DALEN& is initial.
its not working
even if not .... is initial is also not working.
i have used all capital letters only....
thanks in advance.You can not use that syntax in sapscript. You might try this.
/: IF &VTTK-DALEN& = ' '
Regards,
Rich Heilman -
How to Check whether incoming field is Alpha or Nuemeric in Mapping
Hi all,
I have the logic like this
If the incoming Location code value is totally Alpha means i have to concatenate Location code and the last three digits of Delivery No. else pass the location code as it is
RegardsHi Vamsi,
use this UDF it will work fine ,i tested in eclipse
Fist pass the two arguments as input to UDF one is LocationCode and Delivery No
(String LCode,String DevNo,Container.)
if (LCode.matches("[a-zA-z]")) {*
Sring Out = LCode+Dev.substring(0,3);
return Out;
else
return LCode;
let me know the length of Delivery Number,if it is constant value then you need to chnage the substing function index. -
How to check Le field is missed?
Hi,
When the protocol is T=1, I have problem with Le field.
When the card recieve Case 2 format command without Le(like '00B2010C' - Read Record) , how to check the Le field is missed?
I tried below but not working.
if(APDU.getProtocol() == APDU.PROTOCOL_T1 && apduBuffer[ISO7816.OFFSET_LC] != 0 && apdu.setIncomingAndReceive() != 0){
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
I look forward your feedback.
Many thanks in advance!
글 수정: user11280436
글 수정: user11280436Hi,
You should check the response from apdu.setOutgoing() to see what value was passed in as Le. This will return the number of bytes expected by the terminal.
You only need to call apdu.setIncomingAndReceive() if the INS expects data. You can also use it to ensure that there was no data passed in (returns 0).
Cheers,
Shane -
How can I enforce automatic spell checking for selected fields of data entered by form users?
I'd like to be able to enforce spell checking of selected fields in the forms that I've created using LiveCycle Designer 8.2 at run time, as opposed to design time. I understand the version LCD 8 has a nifty new spell checker for form designers. But I want to spell check the data entered by users using Acrobat Reader. And I want to enforce the spell checking automatically on selected fields only.
Presently it seems that users filling in my forms, must know how to manually right-click on each field and select "Spell Check" from the resulting dialog box in order to check for spelling errors in the data the user has entered in the form.
I would like to discover a way to enforce spell checking in selected fields, just as I am able to do in forms created using Acrobat Pro. In Acrobat Pro, I can set a property for each field to require spell checking. but that feature seems to be missing in Livecycle Designer.
I've check the Object model for XFA forms hoping that I might find a method I can call with a Javascript, to check spelling based on an event such as onBlur. But I haven't found a spell check method.
Am I missing something simple? Is there a way to set each field to be spell checked when a user is filling in the form using the free Acrobat Reader?
Our users are not sophisticated and requiring them to spell check each field separately just won't cut it...
Any help on this will be greatly appreciated.
Thanks!
-David BartholomewHi David,
Two things...
At design time set the locale of the form to one that Acrobat spell checks. For example English (US) and English (UK) locales have spell checkers; however English (Ireland) does not. Check the Warnings tab to see if spell checking is supported for your locale.
If your form locale supports spell checking then you can go to the button script below.
If you form locale does NOT support spell checking then Stephanie has a great work around to force spell checking (http://forums.adobe.com/message/2233945#2233945).
Bring a regular button onto the form and in the click event have the following:
app.execMenuItem("Spelling:Check Spelling");
Which will open the spell checker for all fields. Thanks to Paul for extracting all of the accessible menu items (http://forums.adobe.com/message/1912914#1912914).
Good luck,
Niall -
How to check lock status of field in current document?
Hi,
How to check the status of field in current document(master agreement), that is whether its locked or not.
I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
Is there any way to get current document field status?
Thanks,
SaloniHi,
If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
Meaning, if the box is checked, it will return a value = true and if not then false.
Hope this helps,
Regards,
Vikram Shukla
Maybe you are looking for
-
When sharing my 60 minutes iMovie project with iDVD inmediately message 'The project could not be prepared for publishing because an error occurred (Error in user parameter list)' appears. Could not find the user parameter list, so I've no more info
-
BAPI_ACC_PYMNTBLK_UPDATE_POST
Hi Does anyone know what payment block BAPI BAPI_ACC_PYMNTBLK_UPDATE_POST sets? Is it A or B...? I have had it run without error but I can not see any block in MIR4 or FB03 Any ideas? Sincerely Anders
-
I have a recordset that returns several results in a repeat region. It works fine until I try and insert a recordset navigation. I keep getting mysql_num_rows supplied argument is not a valid mysql result resource error on line 121 (which is: $totalR
-
Hi, I have a switch dlink DGS-1210 witch support LACP : so, i have made a Team with 2 ports on this swith, but the teaming state is faulted: Reason LACP Negotiation: error I have intel NIC When I use ANS intel I can create a team LACP. How can i use
-
Crawling iplanet portal server secured content.
Hi, All, I am new on the iplanet portal server. Try to come up a solution to crawling the secured content with a valid user name and password. What this the authentication mechanism of iplanet portal server keep the user's session? is iPlanet Portal