Asign Numeric Field Value to Another Numeric Field
I have 3 numeric fields on 3 different pages and I want to populate all 3 with the same value. If the value changes in 1 the other 2 should change. I've tried many variations, but I can't get it to work. Here is what I have right now. This is in the change event of "TopmostSubForm.Page1.SurveyNumber"
TopmostSubForm.Page2.SurveyNumber2.rawValue = TopmostSubForm.Page1.SurveyNumber.rawValue;
Any help is appriciated.
Greg
That is an interesting solution that I will use for next time - or I may use this idea now.
In this case, the survey form is being emailed back and the XML data is already being stored in a database and then reported on. I would need to change all of the queries that produce the reports and change existing data. Not the end of the world.
Even if I do go that route, it seems I should still be able to use the change event to populate the other field. What am I doing wrong?
Greg
Similar Messages
-
Set the default field value to transaction code field, when calling from WD
Hi all,
Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
Is there any way to set the default field value to transaction code field, when calling from WD?
Please suggest, if anyone have any idea.
Thanks
SanketHi,
I am using the below code to open a standard transaction. It will help you to explain my point more easily.
DATA: url TYPE string,
host TYPE string,
port TYPE string.
*Call below method to get host and port
cl_http_server=>if_http_server~get_location(
IMPORTING host = host
port = port ).
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
INTO url.
*get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
call the url which we created above
lo_window_manager->create_external_window(
EXPORTING
url = url
RECEIVING
window = lo_window ).
lo_window->open( ).
Note*
One more query I want to add to this thread, that is there any possibility to call a custom transaction as well? -
Hi
Please could someone tell me if it is possible to make a text field visible only if another text field is visible and has content?
I have this which works for the content part, but sometimes the field is hidden, so the script must not apply.
var v1 = getField("Text1").value;
event.target.display = v1 !== "" ?
display.visible : display.hidden;
What I need is something along the lines of:
var v1 = getField("Text1").value;
event.target.display = (v1 !== "" && v1!=="Hidden") ?
display.visible : display.hidden;
Thanks for any advise.Thanks for the hints which led me to the right solution. I created a query to check if the trigger for the visibility was there or not, and this works. The script I have used is:
var v1 = getField("Text1").value;
var v2 = getField("Checkbox").value;
var v3 = getField("Text2").value;
event.target.display = (v1=="" || v3=="" && v2=="On" ) ?
display.visible : display.hidden; -
Adding field values together using Advanced Field Management
Hi All
I have 5 currency fields on the Revenue page, that I need to add together into one field, Total Amount (currency field also). I have made Total Amount field read only, and using adv field mgt set the following default and ticked post default:
[<Revenue>]=[<cCorporate_Income_ITAG>]+[<cDonation_Income_ITAG>]+[<cFlower_Income_ITAG>]+[<cHost_ITAG>]+[<cMerchandise_Income_ITAG>]
It does not seem to work, is this possible at all or am I not doing something right.
Help....I'm having a very similar issue. I'm trying to do the calculation as a default field value and receive the following error:
[1] An error occurred calculating the default value for field 'ZCur_5' in business component 'Revenue'.(SBL-DAT-00412) [2] Could not evaluate expression 'Expr: '=[<cMetal_Rate_ITAG>]*[<nQuoted_Weight_ITAG>]*[<nDross_Factor_ITAG>]'' for field 'ZCur_5' in business component 'Revenue'.(SBL-DAT-00394) [3] Generic SSA NOTOK error message.(SBL-DAT-00472)
I can make the update work via workflow, but this does not help during the initial creation of the record.
Any ideas? -
Copying a Calculated Field Value to another Field in the same List
Hello! I have a calculated field that uses an if statement to determine a score. IE A field called Downtime Score contains this calculate: IF Downtime Minutes =10, 100. (not correct formatting, just basic to get point across)
I simply want to use a workflow to copy the calculated value in Downtime Score (100) to another field called Final Downtime Score.
In the workflow, I current have the following: Set FinalDowntimeScore to CurrentItem:Downtime Score
When I log both to workflow history, they both show 0 in history. Nothing is copying.
The calculated field is a number and I tried both number and text fields for FinalDowntimeScore.
This is within SharePoint 2013 and using SharePoint Designer 2013.
Any help would be appreciated!Ok, I did the same test as you and it failed. I still return a 0 when I should see a 100.
Not sure if this helps but when even though we are using sharepoint designer 2013, we only have "SharePoint 2010 Workflow" available in Platform type when creating workflows.
Could you test again using SharePoint 2010 workflow as your platform type and see if you return the same results?
Thanks! -
Read field value from another page
Hallo,
I have PAGE1.HTM (with MVC) with 2 input fields (country and state). For field STATE there´s a F4-button which calls PAGE2.HTM (page with logic) and in order to display the correct information for states I need to get the value in field country.
I cannot send the value from page1.htm because the code is client-side for F4 (specially if it changes) and I cannot use
var = document.getElementById("country");
in page2.htm because it´s Javascript code inside ABAP code, which is not allowed (I think).
Does somebody have an idea on how to collect that value or if I can use Javascript code in the event OnInitialization ??
Thanks a lotHi,
that´s something I do when the content of the view is created and works Ok. The values of that content come from the data bank. The problem is when the user enters a new value and does not saves it !! in this case, the new value is not transmited to PAGE2.HTM because now we´re on client side.
This is the code that creates the input field:
tag_if = cl_htmlb_inputfield=>factory( id = s_id
value = fieldname
visible = isvisible
disabled = isdisabled
isappendunit = 'True'
showhelp = dfies-f4availabl
dovalidate = 'TRUE'
onvaluehelp = openf4code ).
and as far as I know, input field supports no event. -
Allocation of one field value to another filed
Hi
i'm having fileds as
CMC no
Area Code
Division
Demand
for example
CMC no = RD/FD
Area code =1
Division = 2
after entering this values
in DEMAND FIELD i had written Key next item trigger...in this trigger the code for concatenating values as
select AREA,
CONCAT('T',concat(:WATER_CON.WATER_AREA,CONCAT(:WATER_CON.WATER_DIVISION,WCMC)+1))
into :global.AREA,TEMPNO
from cmc_temp_no
where AREA=:WATER_CON.WATER_AREA;
after this i got a value as 'T1200001'
this value is allocated for the DEMAND field as like this
:WATER_CON.DEMAND :=TEMPNO;
now after calculating this concatenated value i want to assign this value to the CMC no instead of assigning to the DEMAND Field
so please tell me what should i doin the CMC NO field i have the trigger KEY-NEXT-ITEM
in that one i had written the code is
DECLARE
W_COUNT NUMBER;
W_COUNT1 NUMBER;
ALERT VARCHAR2(50);
CCNAME VARCHAR(75);
CDNO VARCHAR(75);
CPNO VARCHAR(75);
CSNAME VARCHAR(75);
CSCODE VARCHAR2(20);
CLOC VARCHAR(75);
CPIN NUMBER;
C NUMBER;
BEGIN
IF :WATER_CON.WATER_CMC_NO='RD/FD' THEN
GO_ITEM('WATER_CON.WATER_NAME');
ELSE
SELECT COUNT(*) INTO W_COUNT FROM APPS.RA_CUSTOMERS WHERE CUSTOMER_NUMBER=:WATER_CON.WATER_CMC_NO;
if W_COUNT=0 then
SET_ALERT_PROPERTY('DALERT',ALERT_MESSAGE_TEXT,' RECORD NOT FOUND');
ALERT:=SHOW_ALERT('DALERT');
GO_ITEM('WATER_CON.WATER_GROUP');
ELSE
SELECT CUSTOMER_NAME INTO CCNAME FROM APPS.RA_CUSTOMERS WHERE CUSTOMER_NUMBER=:WATER_CON.WATER_CMC_NO;
:WATER_CON.WATER_NAME:=CCNAME;
:WATER_CON.WATER_AREA:=SUBSTR(:WATER_CON.WATER_CMC_NO,1,2);
:WATER_CON.WATER_DIVISION:=SUBSTR(:WATER_CON.WATER_CMC_NO,3,3);
END IF;
SELECT COUNT(*) INTO W_COUNT1 FROM XXCMW.CMW_BC_CUSTOMER_ADDR_HISTORY WHERE CUSTOMER_NUMBER=:WATER_CON.WATER_CMC_NO;
if W_COUNT1=0 then
MESSAGE('ADDRESS WAS NOT FOUND');
:WATER_CON.WATER_NAME:='';
:WATER_CON.WATER_DOOR_NO:='';
:WATER_CON.WATER_PLOT_NO:='';
:WATER_CON.WATER_STREET:='';
:WATER_CON.WATER_STREET_CODE:='';
:WATER_CON.WATER_LOCATION:='';
:WATER_CON.WATER_PINCODE:='';
GO_ITEM('WATER_CON.WATER_GROUP');
ELSE
SELECT NEW_DOOR_NUMBER,STREET_NAME,STREET_CODE,LOCATION,PIN_CODE INTO CDNO,CSNAME,CSCODE,CLOC,CPIN FROM XXCMW.CMW_BC_CUSTOMER_ADDR_HISTORY WHERE CUSTOMER_NUMBER=:WATER_CON.WATER_CMC_NO;
:WATER_CON.WATER_DOOR_NO:=CDNO;
-- :WATER_CON.WATER_PLOT_NO:=CPNO;
:WATER_CON.WATER_STREET:=CSNAME;
:WATER_CON.WATER_STREET_CODE:=CSCODE;
:WATER_CON.WATER_LOCATION:=CLOC;
:WATER_CON.WATER_PINCODE:=CPIN;
:WATER_CON.WATER_AREA:=SUBSTR(:WATER_CON.WATER_CMC_NO,1,2);
:WATER_CON.WATER_DIVISION:=SUBSTR(:WATER_CON.WATER_CMC_NO,3,3);
GO_ITEM('WATER_CON.WATER_GROUP');
END IF;
:WATER_CON.WATER_AREA:=SUBSTR(:WATER_CON.WATER_CMC_NO,1,2);
:WATER_CON.WATER_DIVISION:=SUBSTR(:WATER_CON.WATER_CMC_NO,3,3);
:WATER_CON.WATER_AREA1:='';
IF :WATER_CON.WATER_AREA='10'THEN
IF :WATER_CON.WATER_DIVISION>=142 AND :WATER_CON.WATER_DIVISION<=150 THEN
:WATER_CON.WATER_AREA1:='A';
ELSE IF :WATER_CON.WATER_DIVISION>=151 AND :WATER_CON.WATER_DIVISION<=156 THEN
:WATER_CON.WATER_AREA1:='B';
ELSE IF :WATER_CON.WATER_DIVISION>=923 AND :WATER_CON.WATER_DIVISION<=928 THEN
:WATER_CON.WATER_AREA1:='A';
END IF;
END IF;
END IF;
END IF;
END IF;
END;
IN THE DEMAND field i have key nest item trigger
in this trigger i had generated TEMPno
not in the CMC no field
the code in the DEMAND field is
declare
tempno varchar2(30);
begin
IF :WATER_CON.WATER_CMC_NO='RD/FD' THEN
select AREA,CONCAT('T',concat(:WATER_CON.WATER_AREA,CONCAT(:WATER_CON.WATER_DIVISION,WCMC)+1)) into :global.AREA,TEMPNO from cmc_temp_no
where AREA=:WATER_CON.WATER_AREA;
MESSAGE(TEMPNO);
:WATER_CON.WATER_CMC_GROUP :=TEMPNO;
end if;
end;
GO_ITEM('WATER_CON.WATER_flat_dem');
please tel me how can i assign this demand field to CMCno field after this trriger fired
Regards
Ranga -
Copy a field value to another field using scripting
Iam trying to capture a ALV grid fieldss using the scripting.
we have a ALV grid in my R/3 program and in that there are 2 date fields VALUTL and VALUTP with 2 rows. Now if the date is blank in any of the field then value that exist in the corresponding field should be copeid.
Do i need to loop the grid values ?
Could any one you help me in corecting the below code.
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell 0,"VALUTP","19.04.2011"
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell 0,"VALUTL","06.06.2011"
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").currentCellColumn = ""
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").selectedRows = "0"
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
Thanks,Iam missing something in the below code.Not able to update the date in the feild that was empty.Could some check
Set GRID = session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell")
RowCT = GRID.RowCount
For Row = 0 To RowCT - 1
GRID.setCurrentCell Row, "VALUTL"
GRID.selectedRows = CStr(Row)
cell = GRID.getcellvalue(Row, "VALUTL")
cell1 = GRID.getcellvalue(Row, "VALUTP")
If cell <> "" And cell1 <> "" Then
GoTo 50
End If
Next
50 For Row = 0 To RowCT - 1
GRID.setCurrentCell Row, "VALUTL"
GRID.selectedRows = CStr(Row)
valu = GRID.getcellvalue(Row, "VALUTL")
valp = GRID.getcellvalue(Row, "VALUTP")
If valu = "" Then
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell Row, "VALUTL", cell
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
session.findById("wnd[1]/tbar[0]/btn[0]").press
ElseIf valp = "" Then
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell Row, "VALUTP", cell1
session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
session.findById("wnd[1]/tbar[0]/btn[0]").press
ElseIf RowCT = GRID.RowCount Then
'session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
'session.findById("wnd[1]/tbar[0]/btn[0]").press
End If
Next -
Copy person & group field value to another person or group field programmatically
Hi
I have one user list in SharePoint sitecollection1 having User in Title(having simple user name) and UserName in Person or Group type field.
I want to copy this list into my site list with same column names programatically using timer job.
How I can copy the person or Group field from siteColletion1 to person or group field of sitecollection2(my site),
as both column types are same.
Pleas suggest any solution.I am getting user name and user id using following code,
foreach (Microsoft.SharePoint.Client.FieldUserValue userValue in oclistItem["UserName"] as Microsoft.SharePoint.Client.FieldUserValue[])
string username = userValue.lookupValue.tostring();
But how to get the login name ? or how can I get the User Object from this field?
Anybody got this type of issue before.
Please suggest any solution -
Retain all form field values after input text field validation failure
Hi,
I have a form with 1 input text field, one Command button and one h:selectManyListbox. when User enteres some values in input field and clicks on command button named Add, the value is validated. If input is invalid, then an error message appears next to the field. If input is valid, then the value is added into h:selectManyListbox. Adding to list box is done using Ajax4Jsf.
Probelm:
Let's assume user entered 3 valid values one after another and all are added into the list box. When he enters a wrong value, and error message appears. however, the entered values in list box goes away. Is there a way to retain the values even after validation failure.
Code is given below;
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<h:panelGroup>
<h:outputLabel for="inputEmailId1" value="Email Id: " />
<t:inputText value="#{bean.newEmailId}" id="inputEmailId1" maxlength="100" size="40" immediate="true">
<t:validateEmail message="Enter a valid Email Id." />
</t:inputText>
<t:message for="inputEmailId1" styleClass="errorStyleClass" />
</h:panelGroup>
<t:panelGroup style="text-align: left;" >
<a4j:commandButton value="Add" styleClass="buttonsSub" action="#{bean.addSharedEmails}"
reRender="inputEmailId1, selectedSharedEmails" />
</t:panelGroup>
<t:panelGroup style="text-align: left;">
<h:selectManyListbox id="selectedSharedEmails" size="8" style="width:100%;" immediate="true">
<f:selectItems value="#{bean.sharedEmails}" />
</h:selectManyListbox>
</t:panelGroup>
Thanks in advance,Use the attribute "binding" instead of a "value". This will remember the value. You can also make sure that you dont have anything in your constructor or class level that initialises that value to "" or null. Because if JSF is remembering your value but your initialization that gets triggered before the page loading resets it to default values then you need to change that part of the code.
-
Not able to get the taxonomy field value of meta data field type
Hi Everyone,
Not able to get the taxonomy filed value from the metadata filed type.
Any one can help me on this.
Label, TermGuid, ValidatedString are showing empty when i debug the code.
Below is the code which i used to get the taxonomy filed valueHi,
Can you please try getting this way?
var taxonomyField = listItem.Fields.GetFieldByInternalName(fieldName) as TaxonomyField;
if (taxonomyField.AllowMultipleValues)
var fieldValuesCollection = listItem[taxonomyField.Title] as TaxonomyFieldValueCollection;
return fieldValuesCollection.Select(x => new Guid(x.TermGuid)).ToList();
else
var fieldValue = listItem[taxonomyField.Title] as TaxonomyFieldValue;
return new List<Guid>() { new Guid(fieldValue.TermGuid) };
Hope it helps!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Fb60 business place field value assign to branch field
Hi Experts,
for vendor invoice creation in fi by using fb60 t.code i am giving business place & all required fields. My requriment is that business place value assign into branch name by using j_1i7_get_bussiness_place function module.suggest how to assign & how to develop logic in this function module(in ecc6.0).
Regards,
babuThanks a lot,
I am not referring to "Business area" here, but i am looking for the "Business Place / Section Code" fields.
While doing Down Payment Request to Vendor in F-47, I want to fill "Business Place / Section Code" fields but they are suppressed.
And this field cannot be controlled through FSG / Posting Keys.
Thanks,
Pavan. -
Send Multiple field values to Single Target field in Message Mapping
Hi,
My Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
Regards,
Madhu>>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
I don't think it's complex but just that it occupies more mapping area
Just write a simple UDF - a one line code and pass all your input variables.
return var1+var2+var3+var4+...+var15; -
Making a text field mandatory if another text field is populated
Hi all,
I had this question at the bottom of another thread which might have been missed. Apologies if I've broken forum rules by starting a new thread...
Question is about Acrobat X Professional form's
I have fields called Milestone and Baseline which are both text boxes, initially empty when the form opens and default to non-mandatory.
When someone enters something in the Milestone box I want to ensure that they have to complete a Baseline date.
Thanks in advanceHi George
I put your code into the Java box on the Milestone but it never quite did the trick..
Do the images below help ? -
Can I bind multiple field values to a single field?
Here's the scenario: I have a form with 2 pages. On the first page, there are three fields for a person's first, middle, and last name. On the second page, there's a field that just says "Name". I want the user to fill out the first, middle and last name fields, and then have the "name" field on the second page reflect all three fields from the first page. How can I accomplish this?
Add client-side script to the calculate event on the name field on page 2 to concatenate the name fields on page 1. For JavaScript, something like this:
this.rawValue = form1.page1.subform1.firstName.rawValue + " " + form1.page1.subform1.lastName.rawValue;
Steve
Maybe you are looking for
-
Help required in installation of designer package
Hi , I am new to Forms. I have got request from one of our users that he is not able to install Designer package of Oracle Forms 6i. He says "I have successfully isntalled a version of the runtime application but I am unable to install the Designer P
-
CS4 - EXPORTING FILES IN MULTIPLE FORMATS
Is it possible to export one file into different file formats while exporting, all at one time, or will I have to export each format speparately?
-
hi Where can I find the how many digits can be assigned to a cost center. I mean maximum leght in digit. Where can I check the configuration. thanks,
-
My MacBook Pro is running slow lately
I notice it particularly when I'm working in iPhoto. It lags terribly while I'm looking at pictures. I have over 10,000 pics on my computer. I don't have any idea if this is too many. I also notice it when playing games. Here is my report from E
-
Want to restrict access...
We are using RoboHelp at our company and we have some books that we would like to only allow certain users access to. Such as proceedures for our billings and well, we all know certain people should not have access to those types of things. All of ou