Get form field value using an offset
I have a Form created using Perl that has a table with a row for each invoice in a large table. I display all the rows in a table and allow the user to edit some info for each record:
for ($item_cntr = 0; $cntr < $record_cnt; ++$item_cntr)
{ print qq(<tr>
<td><input type="text" name="c_freight_$item_cntr" value="$i_freight[$item_cntr]" onBlur="linetotal($item_cntr)" ></td>
<td><input type="text" name="c_miscamt_$item_cntr" value="$i_miscamt[$item_cntr]" ></td>
<td><input type="text" name="c_price_$item_cntr" value="$i_price[$item_cntr]" ></td>
</tr>);
I want to create a Function that is called when they change the Freight value and that causes the rows total Price (freight + miscamt = price) to be calculated again (without hitting a Submit button on the Form).
I created a Function:
function linetotal(whatline) {
var fixed_freight = "document.editform.c_freight_" + whatline;
var fixed_misc = "document.editform.c_miscamt_" + whatline;
var linetotal = parseFloat(fixed_freight.value) + parseFloat(fixed_misc.value);
document.editform.c_price_whatline.value = linetotal; } }
So, if the first row in the table is 0, then the Function is passed "0" and should get the value of the form fields:
'c_freight_0' and 'c_miscamt_0' and set 'c_price_0' to a new value in the form.
The fixed_freight is showing that the string it has is correct, but it does not get the value from the form. Any ideas?
DrClap wrote:
DrLaszloJamf wrote:
DrClap wrote:
Although there are [Java sites|http://www.javaranch.com/] which do have an [HTML and Javascript forum|http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=20].
Don't forget the free hugs forum there, too!
You must mean [this one|http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=44].
Oh yeah. Are you a JavaRanch regular, Dr.C? I was for a while, but not recently.
Similar Messages
-
Getting form field values for radio button
Hello to the forum.
I have a form in which I want to control the value selected in a radio buttons field on whether to allow access to another field.
I can't find info neither here nor in the examples.
Anybody know how to do?
Thank in advance.Hi,
You can use the change event of the radio button list.
Select the readio button list exclusion group, in script editor select the "change" event. As an example if we have two selections "aa" and "bb" which have values 1 and 2 respectively.
You can write this Javascript code to change event.
if(this.rawValue == 1)
xfa.host.messageBox("aa");
else if(this.rawValue == 2)
xfa.host.messageBox("bb");
Hope helps,
Asiye -
Forms personalyzation, passing Form field values to SRS concurrent request.
Hi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transactions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil.Hi,
You can use FND_REQUEST.SUBMIT_REQUEST to submit a concurrent progrm with parameters given.
For example, get the invoice number into v_invoice_no and call a function included code bellow.
FND_REQUEST.SUBMIT_REQUEST(
<app_short_name>,
<concurrent_short_name>,
to_char(SYSDATE,'DD-MON-YYYY HH24:MI'),
FALSE,
v_invoice_no,chr(0),'','','','','','','','',
'','','','','','','','','','');-- 100 ARGUMENTS FROM THE BEGINNING
Where chr(0) must be the last argument. -
Hi,
How to access a Form Field value [Inventory Transfer] in a query:
Tried all these combination:
$[http://940.18.1], $[http://$940.18.1], $[OWTR.Filler]
What is the right format to access the field value & Is there a way to check [debug] what the values are ?
Am using: SAP B1 2005B SP:00 PL:34
Regards.First, Enable System information from the View Menu. This will enable you to see the table name and the field name when you click on the field.
Once you get this info, you can access it by $[[TableName.FieldName]]
Remote the http:// that you see above
$ [ ] are all required.
Suda -
How to get form upload value...?
Hi, I'd like to know how to get form upload value?
I have my initial page, index.cfm that has a upload input box
(named "fileToUpload")that submits to action.cfm. In action.cfm I
tried to get the value of the input by doing
<cfoutput>#form.fileToUpload#</cfoutput> but instead I
got a string like
("E:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\neotmp5263.tmp"),
I expected it to be the value that was in the upload input field
(i.e. "E:\My Pictures\Flowers.jpg"). How do I get this?
Thanks,
noijetCFFILE.ServerFile
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000192.htm#2712126
CFFILE ACTION=Upload variables
File variables are read-only. Use the CFFILE prefix to
reference file
variables; for example, CFFILE.ClientDirectory. The File
prefix is
deprecated in favor of the CFFILE prefix.
CFFILE.AttemptedServerFile
CFFILE.ClientDirectory
CFFILE.ClientFile
CFFILE.ClientFileExt
CFFILE.ClientFileName
CFFILE.ContentSubType
CFFILE.ContentType
CFFILE.DateLastAccessed
CFFILE.FileExisted
CFFILE.FileSize
CFFILE.FileWasAppended
CFFILE.FileWasOverwritten
CFFILE.FileWasRenamed
CFFILE.FileWasSaved
CFFILE.OldFileSize
CFFILE.ServerDirectory
CFFILE.ServerFile
CFFILE.ServerFileExt
CFFILE.ServerFileName
CFFILE.TimeCreated
CFFILE.TimeLastModified
Ken Ford
Adobe Community Expert
"noijet" <[email protected]> wrote in
message
news:efc7gq$n7s$[email protected]..
> Hi, I'd like to know how to get form upload value?
> I have my initial page, index.cfm that has a upload
input box (named
> "fileToUpload")that submits to action.cfm. In action.cfm
I tried to get
> the
> value of the input by doing
<cfoutput>#form.fileToUpload#</cfoutput> but
> instead I got a string like
>
("E:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\neotmp5263.tmp"),
> I
> expected it to be the value that was in the upload input
field (i.e.
> "E:\My
> Pictures\Flowers.jpg"). How do I get this?
> Thanks,
> noijet
> -
Actionscript & changing form field values
I am building a form using flash forms. I have a particular
field that by default the value is 0.00. I want to make an onchange
actionscript that will dynamically change the form field value to
0.00 if the end user deletes the value out of the field and leaves
it blank.
Please be gentle...I know my actionscript'ing is poor (and
probably looks a wee bit more like JS than AS) LOL
<cfsavecontent variable="zero_myfield>
if (myfield.text == '') {
myform.myfield.text == "0.00";
</cfsavecontent>
<cfinput type="text" name="myfield"
onchange="zero_myfield">
I know you can manipulate the value of a form field easily
with javascript, but how to do the same thing with actionscript?
Any pointers would be appreciated!
Thanks!!ROFL, I figured as much...like I said, my AS is *very*
rudimentary right now heheh
I picked up an AS book yesterday evening to hopefully help me
out some, I know not all AS is available to use in ColdFusion flash
forms, but it will give me a good reference I hope.
I'll try my hand at the listener and see what I can come up
with. Thanks for the pointer!! :) -
Check list field values using LINQ
I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME.
If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions.
I think LINQ would be the correct way of doing this but I have no clue how to do that.
Any ideas pls, thanksHi,
Yes, you can query the list using LINQ.
You need to get the SPList Object firstly, and then you can query list item value using LINQ.
More information about how to check list field value using LINQ:
http://msdn.microsoft.com/en-us/library/office/ee538250(v=office.14).aspx
http://www.wolfsys.net/query-sharepoint-lists-with-linq/
http://geekswithblogs.net/TanviBlog/archive/2013/06/06/linq-in-sharepoint-and-querying-list-items.aspx
More information about how to use Server Object Model in SharePoint lists:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx
http://msdn.microsoft.com/en-us/library/office/ms456030(v=office.14).aspx
Best regards -
I have the PDF form with several fields. I want to set the value of one field depending on selection made by the user in other field. I am trying to use if statement but it does not work for me. I have copied below the script I am trying to use.
form1.#pageSet[0].Page1.Table.Table3[0].Row1.Cell1::change - (JavaScript, client)
if (oField.rawValue == "Service Alert")
this.resolveNode("Cell4").rawValue = "A";
else if (oField.rawValue == "Service Bulletin")
this.resolveNode("Cell4").rawValue = "B";
When user selects Service Alert in Cell1 I want the value of Cell4 to be set to A and if Service Bulletin is selected I want the value of Cell4 to be set to B.
Can someone help me with the script. I have done a bit of searching and tested verious syntax but nothing did work. I hope someone will help me to have it working.
Regards,
TonyThank you very much for your help, but it did not work for me. I have decided to reply and to send you the form. Could you please have a look on what I have done and try to fix it. I want to add action to Cell1 to modify Cell4 in row 1 of the form, top on the blue background.
Regards,
Tony Pluta
Engineering Technical Coordinator / Graphics Designer, Engineering
Rail
Description: C:\Users\tony.pluta\AppData\Roaming\Microsoft\Signatures\UGLLimited.gif
16 Broadmeadow Rd | Broadmeadow NSW 2292 | Australia
Direct: +61 2 9492 1277 | Mobile: +61 403 399 167
Fax: +61 2 9462 1383
Email: [email protected]
Web: www.ugllimited.com<http://www.ugllimited.com/>
Please consider our environment footprint before printing this e-mail
From: kvdvijaykumar [email protected]
Sent: Wednesday, 29 May 2013 4:14 PM
To: Tony Pluta
Subject: modify form field value
Re: modify form field value
created by kvdvijaykumar<http://forums.adobe.com/people/kvdvijaykumar> in LiveCycle Designer - View the full discussion<http://forums.adobe.com/message/5360639#5360639 -
How to get Metadata column values using powershell(CSOM)
Hi,
I am trying to get list column values using Powershell (CSOM), but I am getting for Metata data columns.
I am getting internal value as System.Collections.Generic.Dictionary`2[System.String,System.Object]
Can anybody let me know how to get the values for metadata columns?
Any help would be greatly appreciate.
Thank you.
AA.Hi
Go through the links. It'll help.
SharePoint 2013 Code Tips – Setting a Managed Metadata Field with the Client Object Model(CSOM and JSOM)
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !! -
How to get item field values for old versions?
I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
created.
It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
Anyone tried doing anything similar here?
Thanks
Dylantry these links:
https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing -
Referencing form field values in javascript
I am attempting to call a report from a button on a form in Portal. I have been successful in calling a report from a OnClick JavaScript event handler, but I also need to send a parameter to the report based on the value in a field on the form.
I have been unable to find any information on how to do this. Does someone know how to do this? Thanks.
Bruce Cable
Kids123.comPerhaps this technote below may be of help:
Addressing field values in forms
For forms all of the form field values are kept in the "session storage", which is an internal
data structure object
and has some methods to access the data
to access them you must have following information:
1. Block name
- DEFAULT for forms on tables
- MASTER_BLOCK for the master section of MD form
- DETAIL_BLOCK for the detail section of MD form
2. Attribute name (is the column name plus 'A_' prefix)
3. Column datatype (NUMBER, VARCHAR2, DATE)
Example:
declare
my_empno number;
begin
my_empno := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_EMPNO');
end;
In case of MD form, there are 2 blocks - MASTER_BLOCK for master section of the form
and DETAIL_BLOCK for the detail section. Since there is more that 1 record in detail section
you must specify a row index for the detail row
Example:
declare
my_empno number;
begin
my_empno := p_session.get_value_as_NUMBER(
p_block_name => 'DETAIL_BLOCK',
p_attribute_name => 'A_EMPNO'
p_index => 5);
end;
Writing custom buttons code
Every event handler has p_session argument, for any event handler it is a reference to the
session storage object, by calling
appropriate methods you can get and set values of the fields in the form.
Attribute names are create by adding 'A_' to your table's column names, so DEPTNO becomes
A_DEPTNO
Note, if you add a button to detail section of the form for each detail row then you'll have to
examine p_instance value which will be set to a number indicating for which row button has been
pressed. (1 for the first detail record, 2, 3, etc.)
Example:
bold - generated part
italic - custom code
procedure WWV_DETAIL_GENSYS_99
p_block_name in varchar2,
p_object_name in varchar2,
p_instance in integer,
p_event_type in varchar2,
p_user_args in varchar2,
p_session in out DNONKIN.wwa_api_module_session
is
begin
declare
my_action varchar2(4000);
var1 integer;
var2 varchar2(4000);
begin
my_action := p_session.get_value_as_varchar2(
p_block_name => p_block_name,
p_attribute_name => '_DETAIL_ACTION',
p_index => p_instance
if my_action = 'DELETE' then
var1:=p_session.get_value_as_NUMBER(
p_block_name => p_block_name,
p_attribute_name => 'A_EMPNO',
p_index => p_instance
var2:=p_session.get_value_as_VARCHAR2(
p_block_name => p_block_name,
p_attribute_name => 'A_ENAME',
p_index => p_instance
--- Add a record to my log table
insert into my_log values (var1,var2);
end if;
exception when others then
my_error_handler_if_any;
raise;
end;
end WWV_DETAIL_GENSYS_99;
null -
How to get a field value in the report
hi all :-
i need to get the field value in the formate trigger inside a specified field in the report?please post your request in the report category forum
-
How to get a field that using variable in order to create a query
Hi,
I found a difficulty when creating a query. so, I would like to ask you some question.
1. How to get a field that using variable which that field I want to put it in my query?
For example, I would like to take quantity field in inventory audit report. And when I put my cursor in
quantity field, there was only variable, item, etc. How to get this and put it in query?
2. How to combined the invoice quantity with inventory audit report quantity?
3. I have a query like this:
SELECT distinct T0.[DocDate] as 'Tanggal', T0.[DocNum] as 'No.Faktur', T1.[ItemCode] as 'Kode Barang',
T1.[Dscription] as 'Deskripsi', T1.[Quantity] as 'Quantity', ((T1.[LineTotal])/(T1.[Quantity])) as 'Harga
Satuan', T1.[LineTotal] as 'Harga Total', T3.[CalcPrice] as 'HPP Satuan', ((T3.[CalcPrice]) * (T1.
[Quantity])) as 'HPP Total', T4.[ItmsGrpNam] as 'Jenis Barang', T5.[SlpName] as 'Nama Sales', T1.
[WhsCode] as 'Kode Gudang' FROM [dbo].[OINV] T0 INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry =
T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OINM T3 ON T2.ItemCode
= T3.ItemCode INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod INNER JOIN OSLP T5 ON
T0.SlpCode = T5.SlpCode WHERE T3.[TransType] = '13' and T3.[CreatedBy] = T1.[DocEntry] and T0.
[DocDate] >=[%0] and T0.[DocDate] <=[%1] and T4.[ItmsGrpNam] =[%2] and T1.[WhsCode] =[%3]
Is it possible if I just take one invoice with invoice quantity and only show up at once although I have a
lot item cost for that item? (because I'm using FIFOmethod).
Please help me.. cause I'm stuck with this thing :l.
Thank you very much, and I'm waiting your respon soon.
Regards,
SiscaTry this one:
SELECT distinct T0.DocDate as 'Tanggal', T0.DocNum as 'No.Faktur', T1.ItemCode as 'Kode Barang',
T1.Dscription as 'Deskripsi', T1.Quantity as 'Quantity', ((T1.LineTotal)/(T1.Quantity)) as 'Harga
Satuan', T1.LineTotal as 'Harga Total', T3.CalcPrice as 'HPP Satuan', ((T3.CalcPrice) * (T1.
Quantity)) as 'HPP Total', T4.ItmsGrpNam as 'Jenis Barang', T5.SlpName as 'Nama Sales', T1.
WhsCode as 'Kode Gudang'
FROM dbo.OINV T0 INNER JOIN dbo.INV1 T1 ON T0.DocEntry =T1.DocEntry
INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
INNER JOIN OINM T3 ON T2.ItemCode = T3.ItemCode AND T3.TransType = '13' and T3.CreatedBy = T1.DocEntry AND T3.Warehouse = T1.WhsCode
INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod
INNER JOIN OSLP T5 ON T0.SlpCode = T5.SlpCode
WHERE T0.DocDate >=[%0\] and T0.DocDate <=[%1\] and T4.ItmsGrpNam =[%2\] and T1.WhsCode =[%3\]
Thanks,
Gordon -
How to pass the FORM Fields value by Form Personalization
Hi ALL,
I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
can any one suggest what to do???
i tried with these syntax
TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
Regards
RaviHi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil. -
How to get STPOV structure values using BOM number and Plant number
hello All,
could you please help me out
'How to get STPOV structure values using BOM number and Plant number'
is there any function module where can i give input as bom and plant number .
waiting for your response.
regards
srinivasI did a quick where-used lookup in SE11 on the structure STPOV in function module interfaces and came up with the following:
Function Module Short Description
CK_F_TOTALCOST_COMPUTE
CS_ALT_SELECT_COUPLED_PRODUCT
CS_WHERE_USED_CLA Bills of material; class use
CS_WHERE_USED_CLA_ANY Bills of material; direct class use or via other class
CS_WHERE_USED_CLA_VIA_CLA Bills of material; class use via classes
CS_WHERE_USED_COP
CS_WHERE_USED_DOC Bills of material; document use
CS_WHERE_USED_DOC_ANY:Bills of material; direct and (indirectly) document use via
CS_WHERE_USED_DOC_VIA_CLA Bills of material; document use via classes
CS_WHERE_USED_KNO Bills of material; use object dependency
CS_WHERE_USED_MAT Bills of material; where-used list
CS_WHERE_USED_MAT_ANY:Bills of material; where-used list as article or class item
CS_WHERE_USED_MAT_VIA_CLA Bills of material; where-used list via classes
EXIT_SAPMC29M_001 BOM; Article Where-Used List
It appears that this structure is primarily used for where-used look-ups for components within the BOM. I don't know if any of these are what you're in need of.
Hope this helps,
Mark Schwendinger
Maybe you are looking for
-
Questions on Apple Universal Dock
So first off let me say I found it for $38 while it still goes for $60 most anywhere online. Anyways two questions: 1. I dont have any speakers to test the audio of the dock but -should- headphones work in the audio out? 2. The remote with it no matt
-
How and where the sales order net value will be communicate with credit management as a open order value?
-
Aggregation level - design question
Hi, All we are in BI-IP ( Netweaver 2004s SPS16). I have a design question for this scenario. User needs to plan the amounts for a duration (start period and end period), Jan2008 -Dec2008 (001.2008, 012.2008) = 12000. We need to distribute this to th
-
Raw + JPEG : How do you view only the Camera Raw?
Hi there, Here's my problem.... I started importing many of my pictures (shot Camera Raw + JPEG) using the import window. Using the import window caused both the Camera Raw and the Jpeg to appear side by side in any album. Later on, I accidentally di
-
Standard dynpro field input "help"
For any editable field when user enter value, this value is remeberd by SAP client, and later last few of them can be chosen in "drop down" list. I want to disable this "feature" for particular field, for example for quantity entering in document pos