Agentry - Dynamic text for Platform wizard button?
Hi,
I want to reuse the same screen set navigating from 2 different places.
The text for the "Move to the Next Screen (cannot back up) platform wizard button should be different in each case to make it easier to understand for the end user. Apparently the only option is to hardcode a text, but I would like to know if it could be possible to use a rule or something to display a dynamic text for the wizard button.
Thank you,
Marçal
Hi Marcal,
Unfortunately that idea was shot down a while ago, though it would be nice. The general dividing rule I use is if the question is appropriate for Agentry regardless of whether it is installed standalone (like Work Manager 5.3) or on any version of SMP, then it should be in SAP for Mobile. These are usually application development or customization types of questions. The Agentry landing page is in SAP for Mobile for that reason. Though the line is definitely getting blurry now that Agentry apps are moved or moving to the SMP.
If the question relates to Agentry issues which directly involve SMP (usually installation, implementation, or configuration), then it should be in SAP Mobile Platform Developer Center.
I am planning to put together a blog or several to help go through where and why different posts should be placed. Also one about tagging!
Thanks, Mike
SAP Customer Experience Group - CEG
Similar Messages
-
Dynamic Text for Recurring Documents
Hello all,
I want to know how to use dynamic texts for Document Header field in recurring documents.
We run the recurring program each month (F.14). I would like the document header text to have the dates of that month eg "01/06/08 - 30/06/08". If we hard code this in, each month we need to go into the recurring template and change the dates for the appropriate month - this defeats the purpose of having recurring documents.
Any help would be greatly appreciated.
Thanks,
Belindahi Belinda,
Welcome to SDN
I think this could be done with a substitution exit. Prerequisite will be the recurring document number and if that matches, the text has to be built up acc. to the current periods. It requires some coding, but I believe it is makable.
hope this helps
ec -
Dynamic Text for data series ?
Hi, is posible setting dynamic text in data series when use dynamic value ?
We need show Actual Year value and Last Year value in Label for Series.
Thank you.This is not possible unless you have enhancement pack 1 for visual composer which I think is still in rampup...
Here is the enhancement noted in the article below.
Taken from blog:
Option to dynamically define element titles
For chart views, form views, table views, HTML views, nested iViews and popup iViews (popup signal), you can now define dynamic titles using the Expression Editor. A new (ellipsis) button to the right of the field in the Configure Element task panel displays the Title Editor dialog box, in which you enter either or define a custom expression.
/people/judy.kestecher/blog/2008/08/26/whats-new-in-visual-composer--enhancement-package-1-for-sap-netweaver-70 -
I am displaying a selection screen a checkbox and a select-option in the same line
the code is like this:
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_check AS CHECKBOX MODIF ID bk1.
SELECTION-SCREEN COMMENT 2(9) text-100 FOR FIELD p_check.
SELECTION-SCREEN POSITION POS_LOW.
SELECTION-SCREEN COMMENT 12(18) text-101 FOR FIELD s_bwart1.
SELECT-OPTIONS:s_bwart1 FOR mseg-bwart DEFAULT 411 TO 412.
SELECTION-SCREEN POSITION POS_HIGH.
SELECTION-SCREEN END OF LINE.
now I want to edit the checkbox text and can change and can pass it to the output as a header.
Can we do this?
please help me...
in my ALV (using function modules)Hi SC,
you could try the following code snippet:
PARAMETERS: p_xcheck AS CHECKBOX.
AT SELECTION-SCREEN OUTPUT.
%_p_xcheck_%_app_%-text = 'hola'.
(extracted from [SAP ABAP Help - Dynamic Parameter Texts in Selection Screen|http://help-abap.zevolving.com/2009/04/dynamic-parameter-texts-in-selection-screen/] and Dynamic changes to the text field label on a screen
Kind regards,
Alvaro -
Tool-tip text for Selection screen buttons.
Hi all,
Got another requirement and need your help.
I have a user-defined selection screen in my program. I would like to know if it is possible to have a tool-tip text ( quick info ) for the Pushbuttons on this selection screen.
Any help is appreciated.
Regards,
Anand Mandalika.Function Buttons.
For report programs you declare the selection screen appearence with select-options, parameters and selection-screen commands, function key is one of them.
So a quick example
REPORT ZYX.
TYPE-POOLS: ICON.
TABLES: SSCRFIELDS.
DATA: WA_FNTXT TYPE SMP_DYNTXT.
SELECTION-SCREEN FUNCTION KEY 1.
INITIALIZATION.
WA_FNTXT-ICON_ID = ICON_GREEN_LIGHT.
WA_FNTXT-TEXT = 'Go Faster'.
WA_FNTXT-QUICKINFO = 'NO Speed Cameras'.
SSCRFIELDS-FUNCTXT_01 = WA_FNTXT.
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN 'FC01'.
etc. -
Dynamic Text for Field lables on screen
Hi Friends
I have an internal table with fields namely fieldname, language and description. Depending on the
Field lable name declared on Dialog screen and the SAP logon language, i want to display the description on screen from internal table. Please let me know incase this is possible, if yes what's the approach.
Thanks:)Hi,
here a short example:
TABLES: DD03M. "Tabellenfelder mit Datenelementen, Texten, Domänen
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS: P_FIELDN LIKE DD03M-FIELDNAME.
SELECTION-SCREEN: COMMENT 55(40) T_DDTEXT.
SELECTION-SCREEN: END OF LINE.
DATA: IT_DD03M TYPE TABLE OF DD03M.
DATA: WA_DD03M TYPE DD03M.
AT SELECTION-SCREEN OUTPUT.
READ TABLE IT_DD03M INTO WA_DD03M WITH KEY FIELDNAME = P_FIELDN.
IF SY-SUBRC = 0.
T_DDTEXT = WA_DD03M-DDTEXT.
ELSE.
CLEAR T_DDTEXT.
ENDIF.
INITIALIZATION.
SELECT * FROM DD03M INTO TABLE IT_DD03M
WHERE TABNAME = 'KNA1'
AND DDLANGUAGE = SY-LANGU.
Hope it helps.
Regards, Dieter -
Dynamic Text preparation for Command button in ADF (Tr component)
We have one command link and our requirement is to preapre the command button text dynamicaly .?
Details are givin below :
I need to get the button text value form the UCMS file based on the dynamic preparation .
The key value of UCMS is "setupfamily_group_1-8FAM4".
In the above mentioned key value the part 1 is "*setupfamily_group*_" is static text and part 2 "*1-8FAM4*" is dynamic which i will get throuth the List of Objects.
i.e managedServices.product.productId. here managedSercies is varible contains the Objects from the list.
please let me know how to append the part1 and part 2 as mentioned above in Command button text field ?
<tr:forEach items="#{pageFlowScope.myExtrasBean.managedServicesExtras}"
var="managedServices">
<tr:commandButton text="#{myExtrasBundle.setupfamily_group_+#managedServices.product.productId}" id="setup_service"
actionListener="#{pageFlowScope.myExtrasBean.manageMyFamilyProducts}"
action="vfFamilyFlow">
<f:attribute name="productId" value="#{managedServices.product.productId}"/>
</tr:commandButton>
</forEach>
We not getting how to append the Static and dynamic text for command button text filed ? pleas let me know the syntax .
ThanksHI
We have tried with above both options .its issues not resolved .
for the first one we are getting the compile time error
and for the second option ,when we run the dynamic value its self printing in the JSF .
We are trying to prepare the command button text as some part dynamically and some part static and its will act as key in the XML and get the corresponding value from the UCMS .
Thanks -
Adding Scrollbar and buttons to Dynamic Text
Hello,
I am trying to connect dynamic text to scrollbar and buttons. I did tutorial and Lynda.com and practically pasted the code in with my file names and for some reason it does not work. It says I have a "Access of Undefined Property mask_mc" Did I need to create a variable for this? I didn't in the tutorial.
Right now I have the dynamic text loading successfuly in 2 different places and I wantd to add the scrollbar. I put the variables on frame 1 code and then I put the actually load code on the frame where it is needed.
Any suggestions?
Thanks! Sandra
HERE IS CODE FOR FRAME 1:
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest;
var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
var targetScroll:Number = philText_mc.y;
var easing:Number = 5;
var scrollAmt:Number = 15;
var scrollDirection:Number = 0;
HERE IS CODE FOR FRAME WHERE TEXT LOADS:
textReq = new URLRequest("text_philosophy.txt");
function philosophyTextLoaded(event:Event):void {
philText_mc.philosophy_txt.text = textLoader.data;
minScroll = philText_mc.y;
maxScroll = minScroll - philText_mc.height + mask_mc.height;
function dragScroller(event:MouseEvent):void
var dragX:Number = line_mc.x - scroller_mc.width/2 + 1;
var dragY:Number = line_mc.y;
var dragW:Number = 0;
var dragH:Number = line_mc.height - scroller_mc.height;
scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
stage.removeEventListener(Event.ENTER_FRAME, scrollText);
function stopDragging(event:MouseEvent):void
scroller_mc.stopDrag();
function setScrollPercent(event:Event):void
scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
if(scrollPercent < 0)
scrollPercent = 0;
else if(scrollPercent > 1)
scrollPercent = 1;
targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
philText_mc.y -= (philText_mc.y - targetScroll) / easing;
function scrollUp(event:MouseEvent):void
setDirection(scrollAmt);
function scrollDown(event:MouseEvent):void
setDirection(-scrollAmt);
function setDirection(dir:Number):void
scrollDirection = dir;
stage.addEventListener(Event.ENTER_FRAME, scrollText);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
function scrollText(event:Event):void
targetScroll += scrollDirection;
philText_mc.y -= (philText_mc.y - targetScroll) / easing;
if(philText_mc.y > minScroll)
philText_mc.y = minScroll;
targetScroll = minScroll;
else if(philText_mc.y < maxScroll)
philText_mc.y = maxScroll;
targetScroll = maxScroll;
scrollPercent = (philText_mc.y - minScroll) / (maxScroll - minScroll);
scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
function stopScrolling(event:MouseEvent):void
scrollDirection = 0;
textLoader.load(textReq);
scroller_mc.buttonMode = true;
philText_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
textLoader.addEventListener(Event.COMPLETE, philosophyTextLoaded);
up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);Hello again,
Maybe I am asking this question wrong. Instead of making you try and figure out what's going on in my file what I really need to know is how you would take this code I am attaching and make it happen on another frame besides frame 1 and it doesn't appear on frame 1. I think this may help me understand a little better.
Also another way I was thinking to get around this would be to pull in an external swf into the spot where I want this text to go because I can make the scrollbars and external text work when it is the only thing going on in the movie. Would this be a bad way to set this up? and also SInce it is an external movie would I have maintimeline issues with mouse/scroller control?
thanks! sandra
Here is working code:
var textLoader:URLLoader = new URLLoader();
var textFile:URLRequest = new URLRequest("text/external.txt");
var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
var targetScroll:Number = text_mc.y;
var easing:Number = 5;
var scrollAmt:Number = 15;
var scrollDirection:Number = 0;
function textLoaded(event:Event):void
text_mc.external_txt.text = textLoader.data;
minScroll = text_mc.y;
maxScroll = minScroll - text_mc.height + mask_mc.height;
function dragScroller(event:MouseEvent):void
var dragX:Number = line_mc.x - scroller_mc.width/2 + 1;
var dragY:Number = line_mc.y;
var dragW:Number = 0;
var dragH:Number = line_mc.height - scroller_mc.height;
scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
stage.removeEventListener(Event.ENTER_FRAME, scrollText);
function stopDragging(event:MouseEvent):void
scroller_mc.stopDrag();
function setScrollPercent(event:Event):void
scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
if(scrollPercent < 0)
scrollPercent = 0;
else if(scrollPercent > 1)
scrollPercent = 1;
targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
text_mc.y -= (text_mc.y - targetScroll) / easing;
function scrollUp(event:MouseEvent):void
setDirection(scrollAmt);
function scrollDown(event:MouseEvent):void
setDirection(-scrollAmt);
function setDirection(dir:Number):void
scrollDirection = dir;
stage.addEventListener(Event.ENTER_FRAME, scrollText);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
function scrollText(event:Event):void
targetScroll += scrollDirection;
text_mc.y -= (text_mc.y - targetScroll) / easing;
if(text_mc.y > minScroll)
text_mc.y = minScroll;
targetScroll = minScroll;
else if(text_mc.y < maxScroll)
text_mc.y = maxScroll;
targetScroll = maxScroll;
scrollPercent = (text_mc.y - minScroll) / (maxScroll - minScroll);
scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
function stopScrolling(event:MouseEvent):void
scrollDirection = 0;
textLoader.load(textFile);
scroller_mc.buttonMode = true;
text_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown); -
Language translations for dynamic texts
Hi
can somebody pls help me on doing the translations for dynamic texts, for eg, I am getting some values into a checkbox group and dropdowns at runtime , these values are not stored in any .xlf files,
pls let me the know the procedure of translating these dynamic values.
appreciate your help
Thanks
RADHi poojith,
thanks for your response,
how can I use this message pool in my code. I know the message pool has been used for warning messages and can be called in the application as wdcomponentAPI.getmessagemanager.reportWarning (.....)..
but in my case it is a checkbox group where fields will be fetched from a database dynamically when we run the application
for (int i = 0; i < abcprp.length; i++) {
ICheckboxGroupElement theElement = wdContext.nodeCheckboxGroup().createCheckboxGroupElement();
strName = abcprp<i>.getName().toString();
theElement.setFieldNames(strName);
wdContext.nodeCheckboxGroup().addElement(theElement);
I have got more than 50 fields which I will get from the above code..
can somebody pls explain me in the above scenario hw can we use the translation
Edited by: RAD on Sep 15, 2010 10:03 AM
Edited by: RAD on Sep 15, 2010 10:21 AM -
Dynamic Text - partially working
If anyone is willing to assist me with this, it would be
greatly appreciated.
I've created an interactive animation. On load, a number
appears in the dynamic text box. When button one is pushed, the
number needs to change; when button two is pushed, the number needs
to 'clear' - be replaced by '-.-'.
The '-.-' shows up; the second number does not. For
reference, in the code below, the 4.5 is in temp_txt on load; when
the minmax_btn is pressed, no numbers show up in min_txt or
max_txt; when the reset_btn is pressed, the '-.-' shows up in
min_txt and max_txt.
What have I got wrong in here?It's me again...
Here is a simplified version of my code which doesn't change
the result but which is only using recognized properties in AS2 (I
got rid of "viewableRows" which was questionable...)
The only problem is:
How to make the second (or the third, the fourth, etc) page
start printing at line (row) 81 instead of 20?
I think the script "believes" that it must print 80 lines
whichever the text is.
To do so, it prints the FIRST 80 lines on page one then it
prints the LAST 80 lines of the text.
Is it a schizo script? :-)
Gerry
In real world, printFld has fixed dimensions (525, 650) and
is automatically populated by other functions (text is always the
result of a search and the search functions automatically format
the text and send it to this field) -
DISPLAY DYNAMIC TEXT ON THE APPLICATION TOOLBAR
Hi Abappers,
On the application toolbar i want to display dynamic text depending on which button is selected. can this be done...
regards,
Mansi.write the conditional setting of titlebar in
at selection-screen output .
if <condition> eq 'X' .
set titlebar 'MAIN' with 'Maintain' .
else .
set titlebar 'MAIN' with 'Display' .
endif .
now double click on MAIN, the system will ask youto creat the title click yes
in the title field you can write static text along with & sign
(& Test & & &)
now if you say
set titlebar 'MAIN' with 'Display' '1' '2' '3' .
it will display as
Display Test 1 2 3 .
Regards
Raja -
Dynamic text disappears when clicking bold button.
Dear friends,
I have dynamic text inside a movieclip, that I can make it rotate.
the dynamic text properties are : anti-alias for anmations and I emdedded all characters.
When I click on the bold button the the text disappears.
bold_btn.addEventListener(MouseEvent.Click, on_bold);
function on_bold(e:MouseEvent):void
var my_format:TextFormat = new TextFormat();
my_format.bold = true;
my_mc.my_txt.setTextFormat(my_format);
How can I solve this problem.the easiest (and not very elegant way) is to add textfields that contain those fonts (and embed them). you can remove your textfields from the display list or otherwise, make them not visible on-stage.
-
Help with code for score-keeping with dynamic text box
Hi All,
I'm having an actionscript 2.0 problem with keeping score.
I have a dynamic text box with a variable called score.
I have the following action code for that variable:
_root.score = 0;
For the correct answer button I have this action:
_root.score = Number (score) +10;
This works fine to increase the score by 10 for each correct answer.
The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with:
onRelease = function () {
(My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
Nothing works. Any suggestions please?
PamBelow is a link to a small sample file. See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
http://www.nedwebs.com/Flash/AS2_score_sample.fla -
Dynamic text in buttons : instance name goes "instanceX"
Hi,
Another weird one (for me at least !)
I've added a dynamic text to a button and named it, say,
myTxt.
If I put this button on stage as a movieclip I can target
text as
:_level0.btn1.myTxt
If I put the button on stage as the button it really is,
debugger tells
me text instance is now : _level0.btn1.instance1
Why ?
Thanks in advance.
PJbecause buttons aren't movieclips and don't have timelines.
so you can't reference items on, what appears to be a button
timeline, with normal dot notation.
the only real mystery is why flash allows you to apply an
instance name to an object on that button's pseudo timeline. -
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/
Maybe you are looking for
-
No Audio with my touch Smart 600
I have a touch smart 600, and have ran all the diagnostics and updates but it still does not have any sound to it!
-
New iPad with iTunes 10.3.1 and Snow Leopard?
Just got a new iPad (iPad "3") and want to transfer a bunch of photos from my MacBook Pro running Snow Leopard 10.6.8 and iTunes 10.3.1-- CAN I DO THIS using the cable connector (not WiFi)? I do this every day with my iPod Touch (Gen 1, Dec 2007 run
-
I'm having problems with the three external HDs I use with my MBP; one's a WD Passport 500, the other two are LaCie Ruggeds. I load them with media and use them as scratch disks to edit in Final Cut. Sometimes... SOMETIMES... they mount. But then, af
-
I have a problem with the last update of iphoto.
I have recently updated iphoto (version 9.5.1) In Mavericks. My iphoto gallery is ok, the problem is that I have a book project and I can't have it sent to get it print. It gives me an error and it freezes. Anybody can tell me how to fix this problem
-
10g in a Cold Failover Cluster
Hallo, I have some doubts about configuration of a single instance in a two node cluster for a cold failover solution. I mean, 1 - in listener.ora I should put the floating-ip hostname? 2 - to create a dbconsole, do I have to use ORACLE_HOSTNAME vari