Dynamic text in text symbols.
Hi,
Is there any way by which I can assign dynamic texts at runtime in a text symbol? Eg., say I have the following text to display :-
Error in calling the form name XYZ.
where the value XYZ is to be fetched from the program at runtime.
Hello Anirban,
AFAIK this is not possible. Anyways why bother?
Declare you text symbol as:
TEXT-001: Error in calling the form name
In your code:
DATA: LV_STR TYPE STRING.
LV_STR = TEXT-001.
CONCATENATE LV_STR V_FNAME INTO LV_STR SEPARATED BY SPACE.
BR,
Suhas
Similar Messages
-
Issue passing values to text symbols in Dynamic text PDF forms
Hello Everyone,
I am facing a problem related to Dynamic texts in Adobe PDF forms (Text node of type include text). I am able to pass the dynamic values to the Text node properties but i am not able to pass the values to Text symbols inside the Text node. When tested it says the field not found. I have the same structure and field in the CONTEXT as that of the text symbol. The problem i see is because in PDF the field names have $record.(fieldname) ?
Please share your thoughts if anyone has faced similar problem or know how to handle it.
Thanks a million in advance,
ChanduOpen the report up in the Designer and Click on Edit, Subreport Links. Likely what you can do is use Shared Variables to pass values from the main report to the subreport.
You need to do this in the report first. If you are using RAS then you can at runtime. If RAS is not available to you then no way in code.
See these samples:
Root Page
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
Enterprise Samples (including managed and unmanaged ras)
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
Non-Enterprise Samples
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
Exporting Samples (RAS)
http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
Also refer to the DSK help files for the Engine or RAS and search on the subreportcontroller.
If you are using RAS I'll move your post to the SDK forum.
Thank you
Don -
Dynamic text element (Text Symbols)
Hi,
How can we make text element dynamic?
Ex:
If I want a text "Consider date g_date" where g_date is populated from program. Can I pass g_text like <b>text-001 g_text</b>?
Thanks.If you need it for a message, just use a predefined generic one, i.e
MESSAGE s000(0k) WITH 'Consider date' gdate '' ''.
Then you don't even have to define 'Consider date' as a text-symbol. But you can. Then it is
MESSAGE s000(0k) WITH text-001 gdate '' ''.
Regards,
Clemens -
Dynamically writing text symbols
I have defined several text symbols in an ABAP program in the following pattern:
TEXT-C01 -
TEXT-C02 -
TEXT-C08 -
Now I have to write in the end of the list all this symbols.
I was thinking on using something like
DO 8 times.
ENDDO.
Inside of the DO loop I would define dynamically the symbol that I was writing. I know that this is possible using field symbols but Im not getting it right. Can anyone help me?
Thanks in advance.
Best regards
Sónia ReisHi,
Not sure whether your issue is solved. Because you marked this as answered. If not please find a solution.
DATA: w_te(8),
w_count(1) TYPE n.
FIELD-SYMBOLS : <fs> TYPE ANY.
w_count = 1.
DO 10 TIMES.
CONCATENATE 'TEXT-C0' w_count INTO w_te.
ASSIGN (w_te) TO <fs>.
WRITE: w_te, ':', <fs>.
NEW-LINE.
w_count = w_count + 1.
ENDDO.
You will get the value of each text element in the field symbol <fs>.
Kindly reward points if your question is answered.
Thanks
Vinod
Message was edited by: Vinod C -
Help with delivering dynamic text through an external file, through XML?
I'm struggling to find the best way to deliver dynamic text
from an external file, through XML, to a Flash file.
I use small Flash pieces to deliver multiple sets of content
through a single .swf file. An example is here:
http://www.esi-intl.com/public/government/federal.asp
In the .swf file at the bottom, I'm using a three-scene .fla
file. I'm putting the actionScript in the Actions layer atop each
frame. Example:
stop ();
loadVarsText = new LoadVars();
loadVarsText.load("fedNews.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.html=true;
scroller.htmlText = this.var1;
} else {
trace("not loaded");
In that .txt file, I'm putting the information like this:
var1=<font face="tahoma,verdana,sans-serif" size="11px"
color="#000000"><b><a href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
Grants ESI Course CON353
Equivalency</a></b><br>Advanced Business Solution
in Contracting (CON 353) is an equivalency for DAU's CON 3535
course, Advanced Business Solutions for Mission Support. <a
href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
color="#996633">Continue</font></U></a></font>
So much of this is pick-ups from what I've researched in
Google. I'm looking for a way I can feel more confident in my code,
and also have that code follow CSS.
Lastly, I recognize the problems in XML with using single
quotes / double quotes, and the & symbol. This is one of my
largest time sucks, and I'd like to find a better way to do this.
Thank youHi,
Did you ever find a resolution to this? I'm having a similar
issue that I can't seem to get multiline dynamic text working in
CS3.
The font is embedded but it just displays the first line, and
then a blank. I'm sure this worked fine in Flash MX.
Cheers, Ant -
I created a tool tip symbol and corresponding class that
follows the mouse cursor. The tool tip works fine when the swf that
it lives in is run by itself. When I load that swf as a child, the
dynamic text won't work. The tool tip clip appears and follows the
mouse but the text doesn't show. The tool tip class extends movie
clip and accesses the dynamic text as follows.
import flash.display.*;
import flash.text.TextField;
public class tooltip extends MovieClip{
public var dynTextInstance:TextField;
public function setTipText(textPassedToFunction:String):void
this.dynTextInstance.htmlText = textPassedToFunction;
Any help will be greatly appreciated...
ThanksCould you please post entire class or, at least, the full
code for how you create the textfield instance and set its
parameters? -
Setting dynamic text not working in AS2
I'm working on a complex file given to me by another designer
and I'm having a problem with being able to set dynamic text.
Basically, I just want to set the text of a nested instance (e.g.,
with an instance called foo and a instance inside foo called bar,
I'm using foo.bar.text = "test".) This works beautifully and as
expected in a test file. But when I move the symbols and code to
the other designer's file, nothing happens. I.e., the dynamic text
is blank.
I feel confident that I'm not making any errors (I'm using
tested code and symbols!), but I cannot think what else could be
causing the error. Mine is the only ActionScript in the entire
file.
Are there bugs with dynamic text? Could this have to do with
font substitution? I did change the fonts to Arial and "device
fonts" without effect.
Thanks!I appreciate your taking the time to help me and others on
this board. (I actually have another -- probably related question
-- that has never been answered, but that one is more confusing
because it involved multiple language support and worked *until* I
embedded the font.)
My understanding of Flash is definitely a mixed bag. I have
encountered so many problems (really quirks) with Flash that I kind
of start with the assumption that I'm dealing with something
quirky.
In this case, since I don't know your style, I just couldn't
see where you were going with your questions. In any case, thanks.
I'm smarter re Flash as a result of your help. -
A drag and drop game with dynamic text response
Hi,
I am a teacher and my school has recently upgraded to Adobe Design Premium. Our previous version was about 5 versions out of date.
I teach A Level which requires students to create an Interactice Multimedia product.
In the previous 6 years, I have taught students how to create simple drag and drop game with dynamic text responses.
Since the upgrade to Actionscript 3.0 the dynamic text response has ceased working.
When creating the game from scratch, I need to move to Actionscript 2.0 as 3.0 does not allow me to add actionscript to objects - I know and am sure that this is a better way of doing things, but I would prefer to keep working the way I am used to.
I use a switch case statement which I have copied below to make the drag and drop work. The objects I apply the code to work in that they can be dragged, however, my dynamic text box with a variable name of "answer" is no longer displaying the response when an answer is left on a dropzone (rectangle converted to a symbol and given an instance name).
on(press) {
startdrag(this);
on(release) {
stopdrag();
switch(this._droptarget) {
case "/dropzoneB":
_root.answer="Well done";
break;
case "/dropzoneA":
case "/dropzoneC":
_root.answer="Hopeless";
break;
default:
_root.answer="";
break;
Any help would be much apeciated.
Thanks
AdrianTo drag in as3
blie_btn is the instance of the object drawin on the stage. In AS3 you have to assign a even listener, in this case MOUSE_DOWN, and MOUSE_UP, as we want the drag to stop if the mouse is not clicked. Then we fire the functions, and tell the object to start drag.
// Register mouse event functions
blue_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
blue_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
red_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
// Define a mouse down handler (user is dragging)
function mouseDownHandler(evt:MouseEvent):void {
var object = evt.target;
// we should limit dragging to the area inside the canvas
object.startDrag();
function mouseUpHandler(evt:MouseEvent):void {
var obj = evt.target;
obj.stopDrag();
if you want to make the text do what you want then something like this might work.
In the function, you could add a text box onto the stage, give it a instance of something like outputText
and then:
outputText = ("Bla Bla Bla");
(^Not sure if this will work exactly^)
PS. I am currently a A-level student -
I have a dynamic text which is subject of a motion tween. Before the tween starts I assign it a new text value. Now I noticed that at both the first and last keyframe of the tween the text value is reset to its design time value. Is there a way to avoid this, so that it retains the newly assigned value?
TIA
StevenIf you are tweening the textfield itself, you should find that it is now living inside a symbol (graphic) in your tween keyframes such that whatever code you assigned to the textfield before the tween doesn't affect the one that is involved with the tween. Place the textfield inside a movielcip and tween the movieclip to get around this.
-
Dynamic text box, HTML Text with Image
Hello Everyone,
I am using Flash version 8. I have used the text tool and
created a dynamic text box and have attached the UIScrollBar
component to it. This text box is configured to allow the use of
html text to be inputted to it. I have code that reads a file which
contains a list of text files that I then read and place them into
the text box. The user can use the scroll bar to scroll through all
the text.
I have created an image that is a picture of the tab portion
of a file folder. On the tab I have place some text. This was all
done in Photoshop. This tab image is used to separate the different
stories in the text box. The image is save as a jpeg file
Everything you have just read works with out any problems.
Now for the problem!
This image is only 20 pixels tall and the text is not very
readable. As we all know the HTML tags are very limited in Flash 8.
Ideally I would like to put the text and image in to the text
box as I would normally do. Then place text on top of the image and
have it all scroll properly with in the text box.
I have taken the tab image and converted it in to a graph
symbol and then put the text on top of the image. This looks good;
however I don’t know how (or if it is even possible) to place
the graphic symbol in to the text box at the correct place within
the text.
Does anyone have ideas on what may work? Remember that the
image I am working with is only 20 pixels tall which is why the
text quality on the image is so poor.
Thank you all for any help you may provide,
SteveYes Tim I am using the <img> tag and I know that I
can’t place text over the image. I have set the height and
width to be the exact size of the image. However When you go to the
webpage it will open the movie to the maximum size based on the
resolution of your display; however I do maintain the aspect ratio
of the movie. For testing I did set a fix size to the size of the
movie. Sometimes the fix size (1000x750) looks better and sometimes
a larger size (example 1280x1024). I believe that the main problem
is the fact the size of the image is 670 pixels wide by 25 pixels
high and of the 25 pixels the text is only 18 pixels tall. In
Photoshop this makes it about a 1.75 point font. As you can see the
real problem is that I don’t have enough pixels to make up
the text. This is why I am looking for an alterative way to create
the text.
I tried importing the image into flash as a graphic symbol
and then using the text tool to create the text. The results looked
real sharp, the text was nice and crisp (just what I wanted). The
problem is that I could not find a way to place the graphic symbol
into the dynamic text area like id did using the <img> tag.
This symbol needs to scroll as you scroll the text in the text
area.
This is why I am asking for help. I am looking for some ideas
that may work.
Thank you,
Steve -
Text Symbol Translation Based on Customers Default Language
I have a task to translate the text in an email acknowledgement based on the Customer's default language. The email is just a basic report program. I have created Text Symbols for the text and created the various language translations. Is there any way to trigger the translations to occur based on the Customer's default language instead of the language of the User's sign on?
Thank you. Though this command doesn't work for what I need, it lead me in the right direction.
SET LANGUAGE is the command that will dynamically change the language.
Thank you for your response. -
Creating Dynamic Text Field for Flash CS3 in Illustrator CS3
I've created a series of buttons in an illustration and made
them into movie clip symbols in Illustrator. I then created some
text fields for the button labels and assigned them as dynamic text
in the Flash Text panel in Illustrator.
When I import the illustration into Flash and test the movie,
I get this error message:
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.text::TextField@d18cef9 to flash.display.MovieClip.
at
flash.display::Sprite/flash.display:Sprite::constructChildren()
at flash.display::Sprite$iinit()
at flash.display::MovieClip$iinit()
at menu2_fla::MainTimeline$iinit()
It seems like Flash is misinterpreting the text fields
brought in from Illustrator as Movie Clips?Download the TinkSpark source from http://code.google.com/p/tink/source/checkout and add the package to your project:
Then write the following code:
import ws.tink.core.Library;
import ws.tink.events.LibraryEvent;
import ws.tink.managers.LibraryManager;
private function loadLibrary():void
var library:Library = LibraryManager.libraryManager.createLibrary( "assetsLibrary" );
library.addEventListener( LibraryEvent.LOAD_COMPLETE, onAssetsLibraryLoadCompleteHandler, false, 0, true );
library.loadSWF("board.swf" ); //provide the path of board.swf, pls note board.swf is alos exported as AS3.0
private function onAssetsLibraryLoadCompleteHandler( event:LibraryEvent ):void
EventDispatcher( event.currentTarget ).removeEventListener( event.type, arguments.callee );
var library:Library = LibraryManager.libraryManager.getLibrary( "assetsLibrary" );
var AssetScore:Class = library.getDefinition( "Score" );
var score:* = new AssetScore() as Sprite;
score.scoreDisplay.text = "100";
addChild( score );
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com/ -
Selection Texts, Text Symbols
Hi,
I would like to set the text symbol depends on the sy-langu in my report dynamically. How can I do it?
Another similiar question is that I would like to set the selection texts dictionary Flag dynamically in my report ? How can i implement this?
Regards,
Irianhi,
SELECTION-SCREEN COMMENT [/][pos](len)
{text|{[text] FOR FIELD sel}}
[VISIBLE LENGTH vlen]
[MODIF ID modid]
[ldb_additions].
in this situation it is used,
text-001.
double click on this maitain text for that. -
Getting Dynamic Text To Act Like Static Text
Hi, need help.
I currently have 7 text/symbols that each move to the right
when a button beneath expands in a mouseover.event.
Working fine.
With one exception: I need to set the text value of that text
dynamically using loadVars (the text is dates that vary).
No problem, I can do that with dynamic text, except for a few
somewhat ugly problems.
Problem 1 - I want the text just to display. The dynamic text
gets the I-Beam mouse cursor.
Problem 2 - Dynamic text lets the user select some or all of
the text, which then shows in highlighted color.
I don't want the user to have any interaction with the text,
and I'd like to have the "hand" mouse pointer over it, which
carries through from the button underneath, just like the static
text currently does.
I've tried the label component, but when you move it, it
evaluates the HTML that sets the color too slowly, so you only see
the start and end points. I've tried on (load) and on (draw), and
the text looks like it's taking a huge hop from starting point to
ending point, instead of moving gracefully across the real estate
(default is black, html makes it white).
Any idea how I can get text to move, to format, to get its
text at startup and still look like and act like it's the text on
top of a button?
I'd very much appreciate any help!
Thank you. Sign me stymied! :-)
Alan Arthur KatzProblem 1 and 2: Set the textfields to not be selectable in
the Properties panel. If that's not a solution, say a little more
about how you have it pieced together. -
RollOver movieClip to display dynamic text
I have no ides how to do this.
It must be easy but I can't seem to get it. I have a movie
clip called A_mc and a dynamic text field called instance name
"Names", when the mouse rolls over the A_mc I want a name assigned
to the A_mc to show up in the Names text field.
It seemed simple enough, I have seen it used in educational
SWF when the mouse rolls over the A_mc the name of that part or
area shows us in the text field.
But I need help HHEELLLPThanks Gibbah
For your help, I don't think I thgink the right way for
Flash, I know it takes time but this seems to be driving me mad.
The code you gave me, that is attached to the A_m (Movie
Clip).
The Dynamic Text called names appears on the swf along with
the A_m symbol but no action
I get and error
The class or interface 'Event' could not be loaded.
CODE
on(rollOver){
A_mc.addEventListener(MouseEvent.MOUSE_OVER,showName);
function showName(e:Event):void {
A_mc.Names.text= "Rob Beckett";
I must be doing something else wrong
Rob
Maybe you are looking for
-
Audio equivalent of keying?
Hi, this is something I've wondered about from time to time, but I've never known how to search for it in the manual or elsewhere, so while I'm thinking of it, I thought I would ask here. Is there an audio equivalent of keying? For example, I have a
-
Output device problem in mail notification?
Hi, i written a program which is generating the PDF and mails data .....i have used CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' and ....CALL FUNCTION l_form_name CALL FUNCTION 'CONVERT_OTF'..these are the FMS i have used to generate the PDF...but once
-
How to bill the customer as per billing plan according to a contract
Hello All Plz help me out I am stuck, scenerio is I am doing a contract with Perodic billing plan for every month. in contract the billing date shows rightly. but when I do vf01 for first month billing it shows all the billing plan days . but when
-
ORA-39165: During Expdp Strange Issue
Hi All, DB -- 11.1.0.6.0 OS --HPUX Itanium. Today , I came across with one strange issue , where EXPDP tells us the scehma does not exist. we then tried to look into this this particular schema into the database and discovered it's does exist there.
-
Dear all, Enabled action menu using form personalization for launching reports , when user clicks on Actions-->ReportName it is throwing error --> "Function not available to this responsibility, change the responsibility or contact the system adminis