Background fill floating fields?
Is there a way to background specific text within a text object? I'm trying to shade my floating fields. It looks like the background fill
only applies like borders, so it only applies to the entire text object.
I know you can change the color of words within a text object. Seems like the ability to background fill particular words should be a basic feature.
Thanks
I figured this out. When you create the static text object at design time, make sure that it has a word with a different colour or font or something. That will ensure that its value property contains an exData object with contentType="text/html". Now you can change the contents at run time with (I've replaced the angle brackets with {}):
var theXML = "{body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"2.5.6290.0\"}{p style=\"text-decoration:none\"}The{span style=\"xfa-spacerun:yes\"} {/span}{span style=\"color:#ff0000\"}quick{/span} brown fox.{/p}{/body}";
StaticText1.value.exData.loadXML(theXML,true);
Jared Langdon
www.jlangdon.ca
Similar Messages
-
Floating Fields with Designer ES2
I just did an upgrade to Designer ES2.
I created a new form with static textfields and floating textfields
then i created a button that filles the floating field with a text using javascript.
xfa.resolveNode("form1.#subform[0].Textfield1").rawValue
= "it doen't work";
But it doesn't work
When i make the floating field visible, so i see the normally hidden field, the i see that the script works, but that te tekst doesn't show in my static textfield
Anyone else with this problem?
Can anyone tell me what i'm doing wrong?
In the previous Designer ES it worked fine and opening those forms in ES2 still work
But creating a new form with a floating text doesn't workI reinstalled Both Designer 8.x and ES2 several times, but i have the same problem with both versions.
Now i only have Designer 8.x installed on my WinXP.
i created a new empty form and add a static text field and a button.
within that static textfield i insert a floating field.
i add a Formcalc script to the click function of the button: Field.rawValue = "hello"
i save it as a dynamic form.
preview the form and when i click the button nothing happens
Then i change the presence of the floating field to visible, so a normally hidden field is visible
Now without changing anything i preview the document en click on the button
Now i see the text in the field i just made visible, but still not in the static textfield where i inserted that floating field. -
Floating fields and added pages
Hi everybody,
My problem is to know how I could bind some floating fields when I get several pages. The user fill in the page 1 of a form and the text appear on the page 1 and on the two following cards. But, but it doesn't work when I add many pages. The text is different on the page 2 and so on.
Here is a link to the file.
https://workspaces.acrobat.com/?d=4odkUJkUHtogzw2VDmU9ww
Many thanks for your helpSorry,
Here is the good one !
https://workspaces.acrobat.com/?d=QOygMhCwFneyv8Tr1VskTA
Many thanks -
Using a formula to fill a field
Post Author: dura13
CA Forum: Formula
Hi
Is there a means to use a formula to fill a field or add a filled text box.
I have a report that shows monthly sales for a year and i'm building a EOQ report that has a variable time frame (ie 5mnths, 6mnths,1 mnth, etc) that the user chooses to generate the EOQ numbers. I want to fill the monthly totals for the timeframe selected so they are highlighted and easier to distinguish on the report.
I've grouped the data by product and total sales for each month using whileprintingrecords. In this while printing records i'd like to fill or create a text box around the monthly total if the monthly timeframe is equal to or less than this month.
Is this possible?Post Author: dura13
CA Forum: Formula
I finally found the solution to this. It so much easier figuring out logic than the fancy bells and whistles to make the report work.
I used the format field and entered my formula into the background formula area.
I prompt the user for the number of months to go back to determine the avg monthly sales.
I then use this prompt in each months field :
IF 1 <= {?months} *this is the first months total field*
then
craqua
else
crnocolor
and repeat for each of the 12 months, using IF 2 <=, IF 3 <=, etc
Prob will try to get this to work for the font color as well by printing the font in black if its one of the months included and grey if its not. -
How do I refresh floating fields?
I read through some of the other topics, but could not solve my problem.
I have set floating fields to "prefill" from a database a client's name. The fields work great - once.
The floating fields use the same binding schema as the name fields within the form and prefill with the same information (during form load). However, I need the floating fields to change if the other field(s) change (while the user is filling in the form).
For example: If FirstNm (textobject) prefills with "Jim" during the form load, the floating text does too. If I change the text object to "John" (after the form has loaded), the floating field does not change.
I have tried with Global and binding schemas, and seem to get the values to update while the user is using the forms.
Is there a way to fix this?
Thanks for the help.I was hoping it was that simple, but - it's not working.
In my text objext (exit) event I tried:
xfa.form.remerge();
and
xfa.layout.relayout();
Neither one is working to refresh the floating fields.
I am probably missing something easy.
A little more detail of what I am looking at:
My text object (form1.P1.grpPart1.FirstNm1[0]::exit) needs to refresh my floating field (form1.P1.grpPart3.FirstNm1[2]).
I have about 10 of these groupings, but I am hoping that once I exercise this demon, the rest will fall in line.
Any more ideas?? -
Call transaction skip first screen and fill a field
Hi,
I have got a requirement where need to call transaction VA01 by filling the fields on the first screen like order type, sales area using set parameter IDs and need to skip first screen. There is additional requirement apart from this where I need to fill the field 'Proforma' with some value 'X' in the header 'Additional data A' while calling transaction VA01.
Is there any shortway to do this without using BDCdata?
Thanks
SDHi,
I had this kind of requirement earlier. But in my case I need to pre populate several values and then show the screen for user input. Here is my suggestion for you. Follow below code for filling BDC DATA internal table and call transaction in "E" error mode. This should show the screen finally for user input. In this code find for "?" and replace it with your field name and field value. Remember to check validity of screen # and names with you system.
Thanks,
Amara.
Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code. Do not use code tags to format text
Edited by: Rob Burbank on Dec 22, 2010 6:08 PM -
Hi!
I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
[I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
I've have never use Java scripts in my life: I started about three days ago.
1) I'm using Adobe Acrobat Pro X (Windows 7)
2) I've created a form using Microsoft Word and save it as a pdf file.
3) After I created a form using Acrobat Pro X;
3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
menus, and so...)
5) Choosed Properties and marked 7 fields as "required";
6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
if (!event.target.valueAsString) {
app.alert("My text My text", 3);
7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
8) So... What I really need? Here are the reasons for my request for help:
8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
var isFilled = true;
for (var i=0;i < this.numFields;i++){
var f = this.getNthFieldName(i);
if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
if (!isFilled) app.alert("You must complete all the required fields");
8.3.) With the help of UVSAR I used:
var mailto = this.getField('emaddr').valueAsString;
if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
the mail." });
else app.alert("Cannot submit form until the email address field is completed");
but gives me an error (Note: I named the filed with e-mail "emaddr")
Once again Thank you so very very much to all the kind people who take their time to share knowledge...
I'm not a native speaker, sorry for some errors
Best regards
ACHi Winnie
Unfortunately I have been sick and did not read the message before. I apologize.
I have not received help beyond what is on the page. But when I get I tell you.
I hope you can get answers. If you receive, I ask that you share with me.
thank you very much
best regards
AC
Date: Mon, 27 Feb 2012 09:33:10 -0700
From: [email protected]
To: [email protected]
Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
created by Win_Form in Forms - View the full discussion
Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Forms by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Filling Activity fields from the Interactive Script WinClient
Hi Experts,
I am working with Interactive Scripting (CRMM_TM_SCRIPT) and I already defined my interactive script. I am also creating Activities after I finish with the Script in order to register a case. I am doing this by defining an Action Type CIC-AB which calls an Action Box in the Interaction Center WinClient. In the Action field I define the name of the Activity I want to call from the Action Box of the Interaction Center.
When the Agent receives a call, he navigates in the Interactive Script in order to clasify the case he is treating. At the end of the Script, the case needs to be register following the clasification made by the Agent, and thats why we are calling an Activity. The thing is that we dont want the Agent to fill again the information he just defined in the Script in the Activiy, so we want to fill certain fields of the Activiy I am calling with Information of the Interactive Script I used before, in order to save time to the Agent that Register the Case.
Can anyome shed some light on this issue?
Thanks to everyone.Alberto
You can create an activity.i.e., you can create an Order from the Interactive Script if you already created the Script structurethen follow the below steps
I think it would be helpful
Procedure:
T-Code: EWFC0
Path: SPROIMGCustomer Relationship ManagementCustomer Interaction CenterVisible ComponentsAction Box SettingsDefine Configuration Profile for Action Box.
1. Choose F4 help to select one of the Action Box profiles you have created and you want to adapt and choose change.
2. Mark the Action box Configuration and create a new Action Box Group by choosing Create transaction group.
Enter a group ID, description and icon for the new transaction group and choose Continue.
3. Mark the new transaction group and create a new Action Box transaction by choosing Create transaction.
4. Enter a transaction ID.
5. Enter a Transaction Definition section, select Workspace.
6. In the Transaction Definition section, select Workspace.
Two additional fields will appear.
7 Choose F4 in the Workspace field to select the Script.
8. Choose F4 in the profile field to select the Interactive Scripting profile that you created in the previous steps above.
9. Enter a Slot Name if desired.
10. Choose Continue.
You are automatically taken to the Maintain Data Flow screen .No data flow parameters need to be maintained for the Interactive Scripting workspace.
11. Choose Back.
12 Choose Save.
Note: Since Only Workspace of this type can be open at once, you will need to close the Automatically Created Interactive Scripting Workspace before launching the Interactive Scripting Action Box call.
Regards
Surendra -
Hi,
I do have this nice script to add a file name into the picture. I would like to add a rectangle behind the text but I don't know how.
Could you please help me.
/ this script is a variation of the script addTimeStamp.js that is installed with PS7
//Copyright 2002-2003. Adobe Systems, Incorporated. All rights reserved.
//All amendments Copyright Brian Price 2004 ([email protected])
//Check if a document is open
if ( documents.length > 0 )
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PERCENT;
try
var docRef = activeDocument;
// Create a text layer at the front
var myLayerRef = docRef.artLayers.add();
myLayerRef.kind = LayerKind.TEXT;
myLayerRef.name = "Filename";
var myTextRef = myLayerRef.textItem;
//Set your parameters below this line
//If you wish to show the file extension, change the n to y in the line below, if not use n.
var ShowExtension = "n";
// Insert any text to appear before the filename, such as your name and copyright info between the quotes.
//If you do not want extra text, delete between the quotes (but leave the quotes in).
var TextBefore = "";
// Insert any text to appear after the filename between the quotes.
//If you do not want extra text, delete between the quotes (but leave the quotes in).
var TextAfter = "";
// Set font size in Points
myTextRef.size = 60;
//Set font - use GetFontName.js to get exact name
myTextRef.font = "ArialNarrow";
//Set text colour in RGB values
var newColor = new SolidColor();
newColor.rgb.red = 0;
newColor.rgb.green = 255;
newColor.rgb.blue = 200;
myTextRef.color = newColor;
// Set the position of the text - percentages from left first, then from top.
myTextRef.position = new Array( 2, 98);
// Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
myLayerRef.blendMode = BlendMode.NORMAL;
// select opacity in percentage
myLayerRef.opacity = 100;
// The following code strips the extension and writes tha text layer. fname = file name only
di=(docRef.name).indexOf(".");
fname = (docRef.name).substr(0, di);
//use extension if set
if ( ShowExtension == "y" )
fname = docRef.name
myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
catch( e )
// An error occurred. Restore ruler units, then propagate the error back
// to the user
preferences.rulerUnits = originalRulerUnits;
throw e;
// Everything went Ok. Restore ruler units
preferences.rulerUnits = originalRulerUnits;
else
alert( "You must have a document open to add the filename!" );Like this...
if (documents.length)
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
var txtLayer = activeDocument.artLayers.add();
txtLayer.kind = LayerKind.TEXT;
txtLayer.textItem;
txtLayer.textItem.size = 60;
txtLayer.textItem.font = "ArialNarrow";
var TXTColor = new SolidColor;
TXTColor.rgb.hexValue = '00ffc8';
txtLayer.textItem.color = TXTColor;
var X = ((activeDocument.width/100)*2);
var Y = ((activeDocument.height/100)*98);
txtLayer.textItem.position = new Array( X, Y);
txtLayer.textItem.contents = activeDocument.name.slice(0,-4);
var LB=activeDocument.activeLayer.bounds;
var textBackLayer = activeDocument.artLayers.add();
txtLayer.move( activeDocument.activeLayer, ElementPlacement.PLACEBEFORE)
var Height = LB[3].value - LB[1].value;
var Width = LB[2].value - LB[0].value;
activeDocument.selection.select([[LB[0],LB[1]], [LB[2],LB[1]], [LB[2],LB[3]], [LB[0], LB[3]]], SelectionType.REPLACE, 0, false);
//Background fill colour.
var FillColor = new SolidColor;
FillColor.rgb.hexValue = 'ffff00';
activeDocument.selection.fill(FillColor);
activeDocument.selection.deselect();
activeDocument.flatten();
preferences.rulerUnits = originalRulerUnits;
} else {
alert( "No Document Open"); -
Purchase order : user-exit to fill new field in table EBAN
Hi,
in EBAN table i created a new field named ZTYPE_SITE. Now i would like to fill this field when i save my purchase requisition. I don't found the user-exit or BADI to do that.
Thanks for help.
Cheers.up
-
Filling alloction field for a subledger account by posting invoice by MIRO
Hi, at this moment I am struggling with a problem concerning filling the field Allocation at line item of an GL account. When I am posting invoice by MIRO, I want to see certain information on line item of an GL Account. When I am posting an invoice by MIRO, this field is for P&L accounts and balancesheet accounts filled with the value such a determined in FS00, tab Control data, field Sort Key. So therefore all my accounts has the sort key Purchase order. When posting invoices by MIRO, the posting in FI, is showing me on line item level the PO-number in the field Allocation.
However, when I am posting an invoce by MIRO on an reconcilliation account for asset, the allocation field is empty, MIRO is not filling this field automatically. Although the settings of the sort key is the same as for other balance or P&L accounts.
Has anybody an idea how the allocation field can be filled automatically for an reconcilliation account for assetsHi
Run the program RM07CUFA
in SE38 Tcode and check the inconsistencies.
Also in FS00 go to details of the GL account and double click on field status group under create bank interest tab and then double click material management/additional assignments.
You can see the required or suppressed fields -
I have the Adobe Reader x 10.0.1. Free version.
I downloaded a PDF form and open the document but cannot fill in any of the fields. With the form opened I look at File/Properties/security which shows "Filling of the form fields": Allowed.
I do not find "Typewriter" under view.
How can I type in to fill the fields
RegardThe window snip will let you see:
-
Filling Activity fields in the Interactive Script in the IC WinClient
Hi Experts
My question is how to pass parameters between two workspaces. More specifically between the workspace of the Interactive Script WinClient and the workspace Activity.
The thing is that after i finish navigating in the script, i need to call an activity, which is working good. However what i want is to fill some fields of the activity i am calling with information coming from the script
Can anyone help me on this issue?.
ThanksHi Shwetha,
Lina is right SAP supports JRE 1.4.2, I also had similar problem however please see what version of JRE are you using. If you are using anything below JRE 1.4.2 you could probably upgrade to JRE 1.4.2. If you are using anything above JRE1.4.2 you may not be able to downgrade. In that case you could probabaly upgrade to 1.6.0. I could do all the functions in Interactive Script Editor with 1.6.0 except assigning Script to Script profile and you could do that alternatively through SPRO. One of my colleague had JRE 1.5 and was facing some issues. Secondly, Interactive Script Editor takes a while to populate therefore be a bit patient.
To know which version of Java is installed on your local machine Click on Tools -> Sun Java Console.
Regards,
Deepak -
Determine the number of lines of textfield or floating field
Hi,
Is there a way to determine the number of lines of text in a textfield or in a floatingfield.
My problem is that I'm creating a form with three tables(made of subforms) underneed each other that needs to be set to hidden when the total of rows is greater than 25.
Now it would be easy to just count the rows but these rows can exist of multiple lines of text.
The fields of my row are floating fields so when the text is bigger than the displayable width the text continous on a new line in the same row. So I need to know when this happens because now I can show only 24 rows.
I tried counting the characters but this doesn't work, when there are a lot of 'i,j,l' or other small characters I can place 40 characters in my textfield, but when there are a lot of 'm,w' characters I can place only 22 characters in my field.
I also tried to use xfa.layout.h(TextField1,"cm") to determine the height of the field, but it always retuns the value -1. I get the same -1 with the y or x - position.
Does anybody have an idea how to solve this problem?
Thanks in advance,
RonnyRoops ... i got it thanks.
code below -----
for(var i=0; i <= s.length-1; i++)
sCurrentLetter = s.substring(i,i+1);
if (s.charCodeAt(i) == 13)
// this is a line break -
Do I need Adobe Acrobat or just the Reader to fill in fields?
Do I need Adobe Acrobat or just the Reader to fill in fields on PDF documents?
If the document has interactive form fields, you can use Reader. In order to save the filled-in form with Reader, the document must be Reader-enabled by the creator of the form. This requires Acrobat or Adobe's LiveCycle Reader Extensions server-based software.
Maybe you are looking for
-
My iPhone won't let me download any apps anymore
2 weeks ago tried to download app but it said cannot access store I already changed my password twice no help
-
Can I delete a corrupt message diretly from the In Box in the Mail folder
I received an e-mail that has an .eml attachment. Mail would not download the entire message with the attachment - although it continued trying to download once it started to load in my in box. I deleted this e-mail message from the server. Now Mail
-
How do I find my serial number when I have uninstalled Acrobat?
-
Need to enter WPA key every time i re-connect?
I have a small network of one wired PC, one wireless PC and a wireless laptop. I messed something up while trying to add our new itouch to the network and now, the laptop is asking for the WPA key every time it re-connects. As of right now, the wired
-
i have an epson stylus sx 110(printer,scanner and copy) which works fine with cups and gutenprint till i install sane..when i do that administration printing doesn't recognize the printer anymore.i tried proprietary driver but same thing happens..is