Marketing attribute in the text field, interactive script
Hello Gurus,
We are facing a problem in the interactive script, of the sap crm 7.0.
We know the possibility of set some of the customer data into the
script by filling bdc field inthe test field and then adding this text
field to a script question.
We did it in the customer data "***" by filling the bdc field with "ext
field marketing attribute interactive script" and this data is showed
in the script, but we can not show marketing attribute data in the
script by using text field and bdc field.
There is a possiblility of showing the marketing attribute in the text
field or it is imposible due the structure of bol in crm.
Thanks in advance.
Hello ,
To display or change the marketing attributes of a business partner in the script follow these steps:
1. Run the Interactive Script Editor.
2. Create a new Question and in the Answer Area drag and drop the "Marketing Attribute" dynamic answer.
3. Select the "Marketing attribute will display here when executing the script" object and go to tab "Dynamic Content Parameters".
4. Select the attribute set and the attribute name.
5. Save the question.
6. Drag and drop the question to your script.
7. Change the template of the question node to either "Person Marketing Attributes" or "Organization Marketing Attributes" depending on what type of business partner is expected to be confirmed at run time in the IC_AGENT role.
8 Save the script.
9. Run IC_AGENT or similar IC role.
10. Confirm an organization ( if you used "Organization Marketing Attributes" ).
11. Run the script.
When you reached the question maintained above, the marketing attributes will render for that business partner, if they exists or will be created if they don't exists . To be created a button that will do a navigation is required. It means that the question will have to be linked to a next question or to itself by this button (to itself is required only if it is the last or the only question in the script). To suggest to the user that he or she has to click on the button, to save, is probably better to name the button "Save".
Octavian
Similar Messages
-
Marketing attributes with free selection entry in Script IC Web 5.0
Hi Experts,
We are working with script in IC Web Client (CRM 5.0). Answers are updating marketing attributes. Next time agent is calling he has the information of the last call.
There are some information that requiere free selection of text entry. We can obtain such marketing attributes leavind the value field empty. This works fine for type "characters" or "date" of marketing attributes.
How can I obtain the update of such marketing attributes in IC Web Client?
Hoping for your help.
CristinaHave a look at cookbook (para CRM 4.0) to see how to publish the BDC contexts.
-
Change font color in the Text Field of a Popup Key LOV
Hello,
I have a question concerning Popup Key LOV.
I want to change the font color in the Text Field of the Popup Key LOV Item.
I searched the forum but I cannot find an answer about this! Although I searched the CSS and the Popup Key LOV Template, but I do not know where to modify the font color.
Has anyone an idea how to solve that problem?
Regards,
TimHey,
thank for your reply!
I use style="color:#000000;" and it work in Firefox, but not in Internet Explorer 7.0!
And that is not the first time, that there are differences in displaying those tags in the HTML Form Element Attributes and in css files, etc.
Does anybody know I to solve that?
Thank you,
Tim -
Print just what is typed in the text field without printing the text fields
Hello,
I'm trying to print a form after I filled in the text fields, but would like it to print just what I typed in the field, not the text field and the color in the text field. I use CS3.
Any help would be appreciated!Hello Teddy and wellcome to the group!
If you want to change fonts or other things then you might need to use the PrePrint method. What I normally do is select PrePrint from the "Show" section in the Script Editor (If you do not have it go to the toolbar at the top, Windows, and select Script Editor). After you select PrePrint you can now either type the name of the subform and field you want to change (or you can put your cursor in the Scripting Dialog box, hold CTRL and then select the field with your mouse) and then type in the JS to change the font. it is something like TextField1.fillcolor = "255, 255, 255"; (that changes the background fill to white). You can also replace fillcolor with font or border to change the color of the font or the border. I put a link to an Adobe website that goes over JS color changes below. You just need to add a PrePrint method for each field that you wish to remove the necessary highlighting on. Then once the user either hits a Print button that you have on the form or uses CTRL+P to print the form it will remove any highlighting.
Now On the Text Field not printing itself that I am not sure what you are asking for. Are you asking for the caption not to print or for there not to be a box around the data that is entered? If you do not want to have a box surround the text field that is in the Object section of the field (see image below). You just need to select None if you just want the text. If you want to change that with JS I put another link below that has the code to change the border color to white and the user cannot see it. If you do not want the caption to print the only method is to delete the caption from the text field and replace it with static text that can be hidden, but I am assuming that is not what you are talking about (correct me if I am wrong though).
http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingFieldAndSubf ormBGColors.pdf
https://forums.adobe.com/thread/1409617 -
How can I get the "text" field from the actionEvent.getSource() ?
I have some sample code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.ArrayList;
public class JFrameTester{
public static void main( String[] args ) {
JFrame f = new JFrame("JFrame");
f.setSize( 500, 500 );
ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
buttonsArr.add( new JButton( "first" ) );
buttonsArr.add( new JButton( "second" ) );
buttonsArr.add( new JButton( "third" ) );
MyListener myListener = new MyListener();
( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
JPanel panel = new JPanel();
panel.add( buttonsArr.get( 0 ) );
panel.add( buttonsArr.get( 1 ) );
panel.add( buttonsArr.get( 2 ) );
f.getContentPane().add( BorderLayout.CENTER, panel );
f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
f.setVisible( true );
public static class MyListener implements ActionListener{
public MyListener() {}
public void actionPerformed( ActionEvent e ) {
System.out.println( "hi!! " + e.getSource() );
// I need to know a title of the button (which was clicked)...
}The output of the code is something like this:
hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
I need this: "first" (from this part: "text=first" of the output above).
Does anyone know how can I get the "text" field from the e.getSource() ?System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
In a real-world application, no.
In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button). -
How to open a new window by clicking the string in the text field ?
Hi
is it possible to do this ?
Some string value is retrieved from database and it is placed in the text field. [ done with this part ]
i have to provide link to that string to open a new window. [ yet to do ]
Please help me in this.
Note : if this is not possible , give me some other idea to do this.
-Arunwhether this is useful ?
I am using string field here.
public StringField(java.lang.String name,
java.lang.Object listener,
java.lang.String callback,
java.lang.String value)Constructs a StringField
Parameters:
name - Name of field
listener - Listener to update
callback - Callback of listener
value - Value of field
-Arun -
Is there a way to print the check register with the Text field
Hi,
Is there a way to print the check register with the Text field and also each item's Text field?"
When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults to the generic text. Just wanted to know if the check register could draw in the individual line item detail where we can enter text that relates to just that line item. Sort of like the MIR7 draws in the detail for each item.
Kindly help me in full fill the above requirement.
Thanks
SunithaHi,
Can any one help me on this issue?
Thanks
Sunitha -
How to use the separate symbol in the text field in the adobe form.
Hi,experts,
I dont know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
Action:
1. config the ADS successfully.
2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
3. create a WDA for invoke the form and transfer the 'remark' context data.
I use the following codes to display the paragraph in the PDF document:
CONCATENATE
'1、aaaaaaaaaaa;'
'2、bbbbbbbbb '
'3、ccccccccccc'
'4、ddddddddd'
INTO remark .
lo_nd_z_hr_php_payslip->set_attribute(
EXPORTING
name = `REMARK`
value = remark ).
But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
My email is : [email protected]
Best regards,
Tao
Edited by: wang tao on Apr 8, 2008 1:58 AMHi,
If it is just a one word value then you could use this in the exist event;
this.rawValue
= util.printx(">?<*",this.rawValue);
This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
If you wanted something more general ... if they could also enter a middle name then you could call a function like;
function toTitleCase(textValue)
return textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
This uses a regex to change all lowercase letters following a word boundary to uppercase.
Bruce -
How to use the text module in script
hi,
i script how to use the text modules and how to write the code in layout of the script?Hi,
You canr use text modules in script. You have to use standard texts .
Standard text are maintained in SO10 transaction.
you can create translation text for other languages also . So based on logon language it will print translation text.
go to SO10
give textname it say Ztextname id as ST and language as EN
say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
so now you have created a text called ztextname which you can use in your script.
Inorder to insert the texts in your script do as below
go to any window editor and select path
Insert->texts->symbols->standard symbols
then you will get popup in which you have to mention all the parameters that you have created earlier.
after inserting just change language EN to sy-langu
Reward points if useful
About text elements Sravan already given some informatiomn
Regards,
Nageswar -
How can I program the text fields in my email forum to have rounded corners
How can I program the text fields in my email forum to have rounded off edges or corners.
this is the code im using.
// insert code here// insert code here// prepare email field
var email = sym.$("email")
email.html("Enter your Email: ");
inputEmail = $('<input />').attr({'type':'text', 'value':'', 'id':'email'});
inputEmail .css ('font-size', 14);
inputEmail .css ('width', 350);
inputEmail .css ('background-color', '#4e4e4e');
inputEmail .appendTo(email);
// prepare topic field
var topic = sym.$("topic");
topic.html("Topic: ");
inputTopic = $('<input />').attr({'type':'text', 'value':'', 'id':'topic'});
inputTopic .css ('font-size', 14);
inputTopic .css ('width', 350);
inputTopic .css ('background-color', '#4e4e4e');
inputTopic .appendTo(topic);
// prepare message field
var message = sym.$("message");
message.html("Message: ");
inputMessage = $('<textarea />').attr({'type':'textarea','rows':'10', 'cols': '25','value':'', 'id':'message'});
inputMessage .css ('font-family',"Arial,Helvtica,sans-serif");
inputMessage .css ('color',"#ffffff");
inputMessage .css ('font-size', 14);
inputMessage .css ('background-color', '#4e4e4e');
inputMessage .css ('box-shadow', '#4e4e4e');
inputMessage .css ('width', 350);
inputMessage .css ('height', 150);
inputMessage .appendTo(message);
var submitBtn = sym.$("btn");
submitBtn.html("Submit");
submitBtn.css("text-align", "center");
submitBtn.css("font-size",14);
submitBtn.css("font-weight","bold");
submitBtn.css("color","#ffffff");Try this: inputEmail.css ('border-radius', '25px');
attachment
more details -
How can I create a form for users wherein the text field will expand to accommodate additional text?
You need to use LiveCycle (PC Only) to create a dynamic form like that.
The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.) -
Text field properties-Using the 'required' option in the text field properties.
Using the required' option in the text field properties.
The 'help' manual describes the 'required' function as this: Required Forces the user to fill in the selected form field. If the user attempts to submit the form while a required field is blank, an error message appears and the empty required form field is highlighted.
My users ARE not submitting the form, they open the pdf, fill it out and print it. HOW can I, make a field "required', I don't want them to skip/leave blank specific fields. However, if I choose the box 'required' in the text field properties, and I begin filling out the form, I can just tab past that field that I've choose as 'required', and I do not get
prompt/error message or anything, it allows me to save, or print.
I WANT SOME TYPE OF message (similar to enter a company order form
off the web, where you can't continue without filling out 'required' fields).
Is there a step/option I am not doing?Then you are going to have to write some JavaScirpt to be executed by the "Will Print" document action to check all the requried fields, either by name or by the 'required' property and handle the issue of the imcomplete fields. You will not be able to stop the print, but you could display and error field so the user knows the form is incomplete and the printed form also conatains this information.
-
How to color the text elements in script?
how to color the text elements in script?
byeeeee
plz send the answersHi,
Please go through my blog to know how to do color printing in SAP scripts.
White Paper on 'Color Printing in SAP Scripts'
Regards,
Sireesha Ch -
Populating CRM marketing attributes using the APD
Hi Experts
We are having problems with populating CRM marketing attributes using the APD. When we run our process we get the error message:
CRMBW_ATTR_WRITE005: Error when processing function module CRMBW_UPDATE_BPMKT_5. Message no. RSAN_MDL024
As you can see, we are using the new function module CRMBW_UPDATE_BPMKT_5 since the old CRMBW_UPDATE_BPMKT did not work either.
Do we have to add a reference to a infoobject in transaction CRMBWTARGETS? We have not done this because the marketing attribute in CRM doesnt have decimals and all the objects in BI have. Could this be the cause of the error?
Kind regards
ErikHi Ramesh,
Thanks for quick reply.
I have already followed the procedure you have described. Since there is not common objects between ODS and Bpatner infoobject, i am not able to do mapping.
for eg. my ZBPARTNER infoobject has attributes like zfooty, ztennis and zrugby but my ODS has char name , char value, counter for multiple values infoobjects.
I am following the example in the demo content to work out the process but could not understand how the data is getting uploaded from ODS to Business partner.
http://help.sap.com/saphelp_nw70/helpdata/en/bf/5df63bf9deaf09e10000000a114084/frameset.htm
Thanks,
Sandeep Jogde -
How to populate data from dynamic drop down list to the text field
Hi,
I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
Please see the link below.
https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
Thanks for your help
CindyHi Rosalin,
Loop the hidden table, get the values and populate drop down in each iteration.
DropDownList1.addItem("Text","Value");
You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
Hope this helps.
Thanks & Regards,
Sanoosh
Maybe you are looking for
-
Until the Firefox 23 update I had no difficulty opening or saving pdfs in Firefox, but since the most recent update (Firefox 23) I often get error messages about damaged files when I use the download button and try to open or save files. I've checked
-
Repeatedly the same error in the omsca.log file during 11g installation
Hi Experts, One of my customer is getting the below error in the OMSCA.log file: java.lang.Exception: CREATING_WEBTIER_INST_FAILED at oracle.sysman.omsca.adapter.wls.OMSWLSAdapter.adapterConfigWebTier(OMSWLSAdapter.java:1808) at oracle.sysm
-
[NEVER ACTUALLY BROKEN] seamonkey doesn't display current url
I've scroogled this over and over, maybe I just don't know what to call this problem. I have a bunch of tabs open in seamonkey. If I switch tabs, or click the back button, the url in the location bar doesn't change. If I've typed in a url it goes to
-
Weird behavior from logic... help !
1) since a week, just out of the blue, I could not reconised my templates. All the buses labeled and auxes are disapered or at the wrong place. It's all messed up, suddenly. I feel that I have to trash my préférences or reinstal logic but I dont want
-
SPROXY partially working but not working
I am running PI 7.0 stack 13 and ECC 6.0 stack 10. When I run SPROXY on ECC I get the typical message: No connection to Integration Builder (only generic data visible) I have read through the forum and found close but no cigar solution. On ECC: I run