Don't Print 0.00 ina calculated field.
How do you make a calculated field not print the 0.00 in Adobe 7.0.9 Professional? I would like to be able to print a blank form with out the 0.00 but can not figure out how to change it without getting rid of the calculate field which I also need. Am I going to have to have two seperate forms? Thanks.
Thanks, again, so much. I think I got it, the procedure that is! But, but the 0 is still there.
This does now sound like a simple thing if you know the code. But apparently I'm not there yet!
This is what I did.
Under Advanced, Document Processing, JavaScript Functions.
Entered two different scripts, as follows (this is exactly how I entered them):
SCRIPT 1
Name: ds_format
Script:
function ds_format()
if (+event.value) {
//$ format for nonzero values
AFNumber_Format(2,0,0,0,"$",true);
} else {
//Don't show anything if result is zero event.value="";}
SCRIPT 2
Name: ds_keystroke
Script:
function ds_keystroke() {
AFNumber_Keystroke(2, 0, 0, 0, "$", true);
Then, under the calculated field properties (in my case, Total Cost),
Format Tab, Custom Format, Custom Format Script section, I selected edit and typed in:
ds_format();
Ditto above, but under Custom Keystroke Script:
ds_keystroke();
Similar Messages
-
Office 2010 Don't print blank lines when data fields are empty
How do you do this in office 2010? Where do we go now?
This used to be under the Tools menu in previous versions:
On the Tools menu, click Mail Merge.
In the Mail Merge Helper dialog box, click Merge.
NOTE: You must select the main document and data source for the merge before doing step 2.
In the Merge dialog box, under When Merging Records, click either:
Don't print blank lines when data fields are empty.
-or-
Print blank lines when data fields are empty.
Click Close in the Merge dialog box, and then click
Close in the Mail Merge Helper.
NOTE: If you made no changes in the Merge dialog box, the
Close button is not available. Click Cancel instead.
Back to the topHi,
In Word 2007 or Word 2010, you can add
Mail Merge Helper to the Quick Access bar, and perform the steps then.
To add the
Mail Merge Helper command in the Quick Access Toolbar in Word 2007, follow these steps:
a.
In Word 2007, click the
Microsoft Office Button, and then click Word Options >
Customize.
In Word 2010, click File > Options > Customize Ribbon.
b.
Click
All Commands in the Choose commands from, and then click
Mail Merger Helper in the Choose commands from list.
c.
Click
Add, and then OK.
Best Regards,
Sally Tang -
Don't print empty fields...?
I need a little help... I am creating a User Request Form and i would
like the form to print only with the fields/boxes that are checked or
filled. I am not too experienced with scripts so i was looking for some
advice and or where i could find out how to accomplish this. Many
thanks!You will have to get a list of all objects on the form, test then one by one to make sure you have a field, see if the field is empty and if so then set it to be Visible (screen only).
This script is not trivial for a non-programmer. If you want to try it here is the basis for creating a script object that will allow you to get all fields and set the relevant property to -print so that it will be excluded from the print. This is a function meant to go into a scripting object. To call the scripting object use:
scriptobjectname.NoPrintEmptyFields(form1);
Function: NoPrintEmptyFields
Description: This function will set all empty fieldsso that they will not print.
IN: The parent subform. It could also be an element that contains subform like form1
OUT : nothing
function NoPrintEmptyFields(myParentObject){
var allChildElements;
var intNumElements;
var currentElement;
var j;
//Get all the child nodes of the parent element
allChildElements = myParentObject.nodes;
//Total number of element in the object
intNumElements = allChildElements.length;
//Loop through all the child elements
for(j=0; j< intNumElements;j++){
currentElement = allChildElements.item(j);
//If the element is another subform we'll recusively call the function again
if(allChildElements.item(j).className == "subform"){
LockAllFields(currentElement);
//If the objects are fields and they are empty then we will set the relevant property to -print
else if((currentElement.className == "field") && (currentElement.rawValue == null)){
currentElement.relevant = "-print";
//Check for exclusion groups - Radio Buttons
else if(currentElement.className == "exclGroup"){
for(k=0; k< currentElement.nodes.length;k++){
if(currentElement.nodes.item(k).className == "field"){
//set the relevant property for the radio buttons individually
currentElement.relevant = "-print";
}//end function -
Calculated fields don't update after changes are made
Hi, I am having trouble with calculated fields updating. Here is what I have:
Field a + field b = calculated field c
Field d + field e = calculated field f
Then I have another calculated field (call it field g) to add up field c and f. At first it works fine, but if you change what was input in a b d or e, it doesn't update the calculation in field g.
ThanksThe field calculation order is probably not correct. How you set it depends on what version of Acrobat you're using:
Acrobat 9: Forms > Add or Edit Fields, then: Forms > Edit Fields > Set Field Calculation Order
Acrobat 10: http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7de2.w.h tml
Set it to what makes sense for your form. -
How to change the column value which is coming from DO by a calculated field?
Hi all,
I want to change a column value based on my calculated field value. I have a column which is coming from DO which is based on External Data Source. I have a calculated field in my report. When there is any change in the calculated field then the column which is coming from DO needs to be changed. It means the DO needs to get updated when there is a change in the calculated field. Or like if the calculated field meets some condition then I need to change/update the same in the DO. This has to be done on the fly. the report should not submitted for this. when there is a change in the calculated column the DO column needs to get updated.
Thanks,
Venky.Ok, I've been a customer for very many years, I'm on a fixed retirement
income. I need to reduce my bills, my contract ends in Dec. I will be
pursuing other options unless I can get some concessions from Verizon. My
future son-in-law was given this loyalty plan, so I know this is a
reasonable request. My phone number is (removed) acct number
(removed)
>> Personal information removed to comply with the Verizon Wireless Terms of Service <<
Edited by: Verizon Moderator -
Updatable property of Calculated Field in ViewObject does not work
Hello,
I have set the Updatable property of some ViewObject attributes to "while new".
In the page those attributes are shown as <af:inputListOfValues> components.
When creating a new row, those components properly appear as enabled and let me insert any values, since the row is new.
However, after a following commit, once the table in the page is refreshed, I still see some components enabled on the row I committed before. This only happens with attributes based on calculated fields, not with those based on real table fields, as if the "while new" property specified on the ViewObject calculated fields was ignored.
Do you know why? Is there a solution or work around?
Below are the ViewObject XML section and the af:component definition based on the attribute.
<ViewAttribute
Name="Cod"
IsPersistent="false"
PrecisionRule="true"
Precision="15"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="COD"
Expression="COD"
SQLType="VARCHAR"
IsUpdateable="while_insert"
LOVName="LOV_Cod">
<DesignTime>
<Attr Name="_DisplaySize" Value="15"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="input_text_lov"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<af:inputListOfValues id="ilov1"
popupTitle="Search and Select: #{bindings.BLOCK.hints.Cod.label}"
value="#{row.bindings.Cod.inputValue}"
model="#{row.bindings.Cod.listOfValuesModel}"
required="#{bindings.BLOCK.hints.Cod.mandatory}"
columns="#{bindings.BLOCK.hints.Cod.displayWidth}"
shortDesc="#{bindings.BLOCK.hints.Cod.tooltip}"
autoSubmit="true">
<f:validator binding="#{row.bindings.Cod.validator}"/>
</af:inputListOfValues>Helga,
The question is what does this "require" flag do? We read the book of life (cl_htmlb_inputfield), and see that this flag only controls in the first instance a little red * that is rendered next to the input field. This is a pure visualization for the user of the page.
In addition you can ask that a check be done in the browser. This you can do with:
<htmlb:inputField id = "wander"
value = "E"
required = "TRUE"
doValidate="true" />
However, I would not serious recommend this. Now even if you user presses a cancel button, or link, or breadcrumb, or..., the check will still complain.
What we currectly do (and recommend), is to set the required flag on the <htmlb:<b>label</b>/> tag. And then do the actual checking on the server (must be done in anycase). If no value, or not correct, then also set the "invalid" flag, render out error message and redo page.
++bcm -
Running total of calculated field in pivot
VERSION: ORACLE 11
TABLE:
create table chart_detail (
DIS NUMBER,
BLD_MO VARCHAR2(7),
BLD NUMBER(10),
RPLC NUMBER(10));DATA:
insert into chart_detail values (60,'2011-03',0,2);
insert into chart_detail values (150,'2011-04',10572,0);
insert into chart_detail values (120,'2011-04',26449,5);
insert into chart_detail values (30,'2011-04',0,1);
insert into chart_detail values (60,'2011-04',0,7);
insert into chart_detail values (90,'2011-04',0,9);
insert into chart_detail values (120,'2011-05',5714,0);
insert into chart_detail values (90,'2011-05',24557,1);
insert into chart_detail values (60,'2011-05',0,4);
insert into chart_detail values (30,'2011-05',0,0);
COMMIT;EXPECTED RESULTS:
2011-04 2011-05
DIS RPLC BLD TBLD IPTV RPLC BLD TBLD IPTV
30 1 0 37021 0.03 0 0 30271 0.00
60 7 0 37021 0.22 4 0 30271 0.13
90 9 0 37021 0.46 1 24557 30271 0.17
120 5 26449 37021 0.59 0 5714 5714 0.17
150 0 10572 10572 0.59 0
180 0 0
TOTAL 22 37021 5 30271 PROBLEM: I need to have a running total of IPTV like in the above example. I can get the IPTV for each DIS/bld_mo but I don't know how to get the running total of it. In the script below I just used an example where I tried summing the IPTV like was done for build. I know it can't be done that way because IPTV is a calculated field in the query but if I substitute "APR_IPTV" with the formula for IPTV I get an error that window functions aren't allowed here. I do not know a way around this. I commented out the bad piece of code.
PROBLEM SCRIPT:
WITH pivot_results AS
SELECT dis
, NVL (apr11_rep, 0) AS apr11_rep
, NVL (apr11_bld, 0) AS apr11_bld
, NVL ( SUM (apr11_bld)
OVER (ORDER BY dis DESC)
, 0
) AS apr11_tbld
, DECODE(NVL ( SUM (apr11_bld)
OVER (ORDER BY dis DESC)
, 0),0,0,ROUND(NVL(apr11_rep, 0)*1000/ NVL ( SUM (apr11_bld)
OVER (ORDER BY dis DESC)
, 0),2
)) AS apr11_iptv
, NVL ( SUM (apr11_iptv)
OVER (ORDER BY dis DESC)
, 0
) AS apr11_tiptv
, NVL (may11_rep, 0) AS may11_rep
, NVL (may11_bld, 0) AS may11_bld
, NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0
) AS may11_tbld
, DECODE(NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0),0,0,ROUND(NVL(may11_rep, 0)*1000/ NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0),2
)) AS may11_iptv
, DECODE(NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0),0,0,ROUND(NVL(may11_rep, 0)*1000/ NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0),2
)) AS may11_tiptv
FROM chart_detail
PIVOT ( MAX (rplc) AS rep
, MAX (bld) AS bld
FOR bld_mo IN ( '2011-04' AS apr11
, '2011-05' AS may11
SELECT CASE
WHEN GROUPING (dis) = 0
THEN TO_CHAR (dis)
ELSE 'Total'
END AS dis
, SUM (apr11_rep) AS apr11_rep
, SUM (apr11_bld) AS apr11_bld
, SUM (apr11_tbld) AS apr11_tbld
, CASE
WHEN GROUPING (dis) = 0
THEN SUM (apr11_iptv)
END AS apr11_iptv
, SUM (apr11_tiptv) AS apr11_tiptv
, CASE
WHEN GROUPING (dis) = 0
THEN SUM (apr11_tpiptv)
END AS apr11_tiptv
, SUM (may11_rep) AS may11_rep
, SUM (may11_bld) AS may11_bld
, SUM (may11_tbld) AS may11_tbld
, CASE
WHEN GROUPING (dis) = 0
THEN SUM (may11_iptv)
END AS may11_iptv
FROM pivot_results
GROUP BY ROLLUP (dis)
ORDER BY pivot_results.dis
;Thank you,Hi,
So you know how to compute iptv for an individual row; the problem now is that you want to get a running total of iptv; is that it?
The problem there is that computing iptv requires an analytic function, and analytic functions can't be nested. To get the results of nesting f (g (x)), where f and g are analytic funtions, you have to compute g in a sub-query, and then use the results as the argument to f in a super-query.
Here's how to apply that to your situation:
WITH pivot_results AS
SELECT dis
-- April, 2011
, NVL (apr11_rep, 0) AS apr11_rep
, NVL (apr11_bld, 0) AS apr11_bld
, NVL ( SUM (apr11_bld)
OVER (ORDER BY dis DESC)
, 0
) AS apr11_tbld
, NVL ( 1000 * apr11_rep
/ NULLIF ( SUM (apr11_bld) OVER (ORDER BY dis DESC)
, 0
, 0
) AS apr11_iptv
-- May, 2011
, NVL (may11_rep, 0) AS may11_rep
, NVL (may11_bld, 0) AS may11_bld
, NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0
) AS may11_tbld
, NVL ( 1000 * may11_rep
/ NULLIF ( SUM (may11_bld) OVER (ORDER BY dis DESC)
, 0
, 0
) AS may11_iptv
FROM chart_detail
PIVOT ( MAX (rplc) AS rep
, MAX (bld) AS bld
FOR bld_mo IN ( '2011-04' AS apr11
, '2011-05' AS may11
SELECT CASE
WHEN GROUPING (dis) = 0
THEN TO_CHAR (dis)
ELSE 'Total'
END AS dis
-- April 2011
, SUM (apr11_rep) AS apr11_rep
, SUM (apr11_bld) AS apr11_bld
, SUM (apr11_tbld) AS apr11_tbld
, CASE
WHEN GROUPING (dis) = 0
THEN ROUND ( SUM (SUM (apr11_iptv))
OVER (ORDER BY dis)
, 2
END AS apr11_iptv
-- May 2011
, SUM (may11_rep) AS may11_rep
, SUM (may11_bld) AS may11_bld
, SUM (may11_tbld) AS may11_tbld
, CASE
WHEN GROUPING (dis) = 0
THEN ROUND ( SUM (SUM (may11_iptv))
OVER (ORDER BY dis)
, 2
END AS may11_iptv
FROM pivot_results
GROUP BY ROLLUP (dis)
ORDER BY pivot_results.dis
;Output:
APR11 APR11 APR11 APR11 MAY11 MAY11 MAY11 MAY11
DIS _REP _BLD _TBLD _IPTV _REP _BLD _TBLD _IPTV
30 1 0 37021 .03 0 0 30271 .00
60 7 0 37021 .22 4 0 30271 .13
90 9 0 37021 .46 1 24557 30271 .17
120 5 26449 37021 .59 0 5714 5714 .17
150 0 10572 10572 .59 0 0 0 .17
Total 22 37021 158656 5 30271 96527As you can see, this is not quite what you wanted on the row where dis='150'. You asked for NULLS in the may11_rep, may11_bld and may11_iptv columns. You can get those results if you need them; just explain the rules that govern whether to display the values and when to display NULL.
The way you posted the sample data and results, and the quantity of sample data were all excellent; it really helped me find a solution. Thanks.
It would have also helped it you had explained how iptv is computed. Basically, iptv = 1000 * rep / tbld, right?
It looks like most of this code:
, DECODE(NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0),0,0,ROUND(NVL(may11_rep, 0)*1000/ NVL ( SUM (may11_bld)
OVER (ORDER BY dis DESC)
, 0),2
)) AS may11_iptvwas a way of avoiding divide by 0 errors; it would have been helpful if you had explained that. -
Hi,
To begin with I am just learning EJB and JAVA so please bear with me. I want to create a calculated field in a query from two fields in the table being queried, using SQL I would write the query like this:
SELECT ledgerdate, description, quantity, unitprice, [quantity*unitprice] FROM ledger
I have created a class called ViewLedger to contain my results, it has the following elements:
DATE ledgerdate,
STRING description,
INTEGER quantity,
BIGDECIMAL unitprice,
BIGDECIMAL amount
The query that I have been attempting that fails is:
SELECT NEW ViewLedger(l.ledgerdate, l.description, l.quantity, l.unitprice, l.quantity*l.unitprice) FROM Ledger l
The error says that there is an unexpected * in the query
The following do not work either:
SELECT NEW ViewLedger(l.ledgerdate, l.description, l.quantity, l.unitprice, (l.quantity*l.unitprice)) FROM Ledger l
The error says there is an unexpected ( in the query.
SELECT NEW ViewLedger(l.ledgerdate, l.description, l.quantity, l.unitprice, [l.quantity*l.unitprice]) FROM Ledger l
The error says there is an unexpected [ in the query.
Any help would be greatly appreciated.
Thanks.I don't think JPQL allows functions (*) in the SELECT clause.
You can use a native SQL query as a workaround. If you are using EclipseLink or TopLink Essentials, you can also use a ReportQuery.
You may also want to vote for the bug,
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814|https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814]
James : [http://www.eclipselink.org|http://www.eclipselink.org] -
Best Solution for Creating an Onlne Purchase order form with multiple calculation fields
I am a bit confused. Our school has a Forms Central account which works great for our registration forms but I need to find a solution for creating an online purchase form with multiple calculation fields - I know that forms central does not support calculation fields (too bad) but I know that Acrobat Pro does... soooo...
Can you create the forms in Acrobat and then somehow integrate the advanced features into forms central? Do they talk to each other? Is this easy to do? .... I guess another way to putting it is can you create the forms in Acrobat including all of the advanced features for payment calculation and then host it online using Forms Central to manage and collect the data? (I guess that really is my question)
Thanks (how does this compare to a solution like Formstack?)Hi, thanks.
The naming convention was the consistant up until a point when I read that you need a '.' syntax (?!) - does anyone know if this is true?
Attached is a version with Bernd Alheit's suggestion and with all the naming of the fields being consistant. It's still not working for me though after doing this and I'm stuck as to why, because I think it should work. I've also tried writing the calcualting line of code in the same manner that Bernd Alheit suggests before I came on here, and it wouldn't work then.
As with any coding, it must be something to which I have done, but I can't see it anywhere
Any ideas? Thanks for helping me
Cheers -
Date VS Date Time in Calculated Field
I have a property for a patients records called Date of Birth. On the table defining it I saved it as a "date" type and It displays only
the date on the screen as I would like. For some reason though when I needed a calculated field in the Medication record I added a property to the patient records table that concatenated two fields BirthDate and the Age. I used the following code and then
added an other screen data item on the medication screen to pull the DoBA property up but got a Date/Time instead of just a Date.
partial void DoBA_Compute(ref string result)
// Set result to the desired field value
result = "DoB:" + BirthDate + " Age:" + Age;
//This is for the property "Date of Birth and Age"
//I also used the following code to calculate "Age"
partial void Age_Compute(ref int result)
// Set result to the desired field value
int age = DateTime.Now.Year - BirthDate.Year;
if (BirthDate > DateTime.Now.AddYears(-age)) age--;
result = age;
ImagesI'm using cast instead of Convert.ToInt because the last round to value to upper int if value > 0.5 or to lower if value < 0.5 ( I don't remember now if equal goes to < or > ... read function doc ) while Cast to int do not round the value.
In my code the day of the birthday
still
marks
the
previous
age,
from the
day after
one more year.
by adding
+
1
age
increases
by the
day
of the birthday -
Is it possible to edit a calculated field?
Is there a way to make a calculated field editable, overriding the calculation? My form table calculates HST on pay amounts. But not everyone charges HST so I'd like the user to be able to put $0 in the field manually. I can create an HST option box for each row but...that's a lot of "contriving" and not a practical solution ( I don't think). Is there an easier way to do this?
Thanks.The HST is variable because the form is used in all provinces.
In order to make it a no-brainer for the user, I have incorporated a check box on each row. If the check box is checked (value=1) then the HST calculation happens, otherwise the value=0. So this makes sense but doesn't work. I have adjusted the calculation order, doesn't make a difference.
Note: I've never used java but I used to work with Access databases so I do have an understanding of the language/logic, hopefully enough to help me learn this quickly.
Here is what I tried. HST option is the value of the checked Check box, which is "1". This code is returning the else value fine but otherwise isn't working and doesn't change when I toggle the Check box. Can you help me adjust this.
var h = this.getField("HSToption");
var f = this.getField("TOTALbeforeHST");
var g = this.getField("HSTPercentageValue");
if(h == 1){
event.value = f.value * g.value;
}else{
event.value = "0"; -
Plus signs displaying in calculated field
I have created a form with a table that has a row that calculates automatically. I then created another form that I copied and pasted the table into. In the second form, when my users display or print the form with Adobe 7.0 Standard, the calculating field now displays a plus sign when nothing is entered to calculate. How do I make the plus sign disappear?
Actually, that was my first instinct as well, but it is not the issue. No matter how large I make the fields, no matter where I put them (IE not touching any other fields) - the plus signs still display. The really frustrating thing is that they won't display for me, just for other users. I have Adobe 7.0 Pro and we have just updated our users with Adobe 7.0 Standard. The plus signs do not display for me, but they do for the other users. To make the problem even less consistent, I had the exact same table in another form and in that form the users have used that table without any issues. I merely copied and pasted the table into the new form. I can't see any settings that have been changed. Any ideas?? Even a work around would be great.
Thanks,
Rebecca -
Calculated field hidden when field is blank
This is actually similar to a discussion from a few months ago.Our forms are intended to be filled out online, printed and e-mailed, faxed, or snail-mailed. Many times the customer will simply print out the form and fill it out by hand. When I create forms with calculations the "$" or "0.00" appear; thus making it difficult for someone filling the form out by hand to work around those symbols/numbers. A few months ago, I had a similar situation involving percents and the gurus on this forum (Thank you, gurus!) helped me with the following code and it worked perfectly at hiding the calculated fields unless something was entered in the fields to be calculated.
For a field with a format of "None" user a Custom validation script:
if(event.value == 0) {
event.value = ""; // set field to null;
AFNumber_Format(0, 0, 0, "", "", true); // set format to number 0 decimals, no currency;
} else {
event.value = event.value; // keep value;
AFPercent_Format(2, 0, 0); // set percent format 2 decimal places.
This time, the problem involves simple numbers (not percent, not currency). I used the same logic and the fields actually show/hide like I want, but the numbers need to be formated with a comma separating the thousands and a decimal point with two digits after. I can't figure that out! Can someone please offer some advice? Thanks in advance for your help.Make sure you are using the correct quotation marks. Use either the double quotation marks or the single quotation marks and not 4 single quotation marks.
if(event.value == 0) {
event.value = ''; // set field to null (2 single quotation marks);
Supress Zero -
Create Calculated Field in PHP Form
Hi,
I'm trying to create a calculated field that will work out the average of ratings given during the input of a form. This field will then submit the average value with the form at the end (which is why I need the value to calculate before the form submits - i.e., as the form is filled in).
I have found the following code (designed for HTML forms rather than PHP forms, but I'm hoping it might work). It doesn't seem to do anything - the field doesn't show any information. Help?
<script language=javascript>
<!--//
function dm(amount)
string = "" + amount;
dec = string.length - string.indexOf('.');
if (string.indexOf('.') == -1)
return string + '.00';
if (dec == 1)
return string + '00';
if (dec == 2)
return string + '0';
if (dec > 3)
return string.substring(0,string.length-dec+3);
return string;
function calculate()
Opp1 = 0; Inv1 = 0; Com1 = 0; wlb1 = 0; Com2 = 0; Atm1 = 0; Per1 = 0; Inc1 = 0; Rew1 = 0; Env1 = 0; Gro1 = 0;
if (document.form1.Opportunity.value > "")
{ Opp1 = document.form1.Opportunity.value };
document.form1.Opportunity.value = eval(Opp1);
if (document.form1.Investment.value > "")
{ Inv1 = document.form1.Investment.value };
document.form1.Investment.value = eval(Inv1);
if (document.form1.Community.value > "")
{ Com1 = document.form1.Community.value };
document.form1.Community.value = eval(Com1);
if (document.form1.WLB.value > "")
{ wlb1 = document.form1.WLB.value };
document.form1.WLB.value = eval(wlb1);
if (document.form1.Communication.value > "")
{ Com2 = document.form1.Communication.value };
document.form1.Communication.value = eval(Com2);
if (document.form1.Atmosphere.value > "")
{ Atm1 = document.form1.Atmosphere.value };
document.form1.Atmosphere.value = eval(Atm1);
if (document.form1.Performance.value > "")
{ Per1 = document.form1.Performance.value };
document.form1.Performance.value = eval(Per1);
if (document.form1.Inclusion.value > "")
{ Inc1 = document.form1.Inclusion.value };
document.form1.Inclusion.value = eval(Inc1);
if (document.form1.Rewards.value > "")
{ Rew1 = document.form1.Rewards.value };
document.form1.Rewards.value = eval(Rew1);
if (document.form1.Environment.value > "")
{ Env1 = document.form1.Environment.value };
document.form1.Environment.value = eval(Env1);
if (document.form1.Groups.value > "")
{ Gro1 = document.form1.Groups.value };
document.form1.Groups.value = eval(Gro1);
Totamt =
eval(Opp1) +
eval(Inv1) +
eval(Com1) +
eval(wlb1) +
eval(Com2) +
eval(Atm1) +
eval(Per1) +
eval(Inc1) +
eval(Rew1) +
eval(Env1) +
eval(Gro1) ;
document.form1.GrandTotal.value = dm(eval(Totamt));
//-->
</script>
Any suggestions gratefully received.@uscart - Thanks for your thoughts. I think I may try and pursue the javascript option (considering how far I've gone with it) but don't quite understand your response. Does it matter if the input field isn't a text box? The fields are radio buttons (giving options 1-10), liek so:
<input name="Investment" type="radio" class="star" value="1"/>
<input name="Investment" type="radio" class="star" value="2"/>
<input name="Investment" type="radio" class="star" value="3"/>
<input name="Investment" type="radio" class="star" value="4"/>
...etc, etc, etc... for each of the input fields listed above.
Where do I put the calculate() function? After each "option", or is there a different reference? And does it need to be added to the GrandTotal field as well (the field in which the calcualtion is to be displayed)?
Thank you! -
Calculated field in List not reaching workflow
I have a list that looks up a value in another list. I also have a calculated field in the list that finds the ID number from the lookup field by finding the ;.
When my item created SPD workflow runs, the calculated field has invalid data (#Value!). When I view the list the calculated field indeed shows me #Value! initially, but when I refresh the screen I see the ID number. It as if the workflow
is running before the calculated field has been calculated.
I've tried pausing the workflow for 2 minutes to no avail. I set the calculated field to show NULL if it could not find the ; in the lookup field, and then have the workflow wait until the calculated field no longer had NULL but the never stopped
waiting. And I don't see a way of using a string function in the workflow instead of doing it in the list as a calculated field.
Why is this happening and how can I fix it?
Please help.
JohnHi John,
I tested the scenario per your last post, and the workflow and calculated column worked fine if I used the Pause for Duration step in the workflow(text is the field where the calculated column gets data and loop is the lookup column):
In the third step it can log the ID obtained from the calculated column.
The third step in the workflow runs faster than the calculated column, so we need to add a pause after setting the text field where the calculated column gets data.
Best regards.
Thanks
Victoria Xia
TechNet Community Support
Maybe you are looking for
-
Hi My client wants that in the production order in components/operations the user should be able to insert new record or delete a record, but cannot change an existing record. Is it possible? Pls suggest the method. Regds
-
I am completely new to PS and i would appreciate if I get some help in answering below questions. I am in middles of coding a report program and I need to find list of all " Open WBS Elements with No Cummilative Balace". Which table and field do I ne
-
Hi guys, we are going to do role migration according to new authorisation concept of 7.0.I have few doubts about this. 1.does this new concept recommend reporting on multiproviders? 2.on what BW objects are these reporting roles based?(I am hearing t
-
Client not connecting to server. please help
I have been trying to run a sample client-server program, but it doesn't seem to reconise the host name that has been declared in the client program. i get the following error: Client Error: java.net.UnknownHostException: Paradoxical can anyone tell
-
Developing a custom AuthenticationProvider without idstore or credentials
From the thread: How to integrate a SSO based in cookie with ADF Security ========================================================== At work they asked me to integrate a existing SSO based in cookie with the new ADF + Jdeveloper 11g + WLS. After goog