Dynamic text for checkbox
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
Similar Messages
-
Dynamic Object for Checkbox in HTMLB control
Hi all,
I want to create dynamic object for Checkbox in HTMLB control.
I have created dynamic check box in JSP using JSPDynpage. I can select multiple values in the list of checkbox.After clicking the submit button , I have to read the value of checkbox. For this first i want to create the object for checkbox in controller.
How can i create the dynamic object?
Help me in this regard.
Thanks & Regards
Hemalatha JKrish
Will this link helps you ????
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/7d/9b0e41a346ef6fe10000000a1550b0/frameset.htm">Check Box</a>
Thanks
Jack
Allot points if it helps -
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çalHi 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 -
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 -
Hi,
I am creating CheckBox dynamically based on the entries in the table.
Is it possible to give them label dynamically as I am creating it. I want to do it in simple ABAP. I am in Basis and do not want to go to Module programming or Dypro etc.
I will be glad if it is possible via simple ABAP.
Regards,
SCHi 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 -
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 -
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 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 -
Dynamic text not displaying when publishing for flash 8
This dynamic text works fine when the movie is published for
flash 7, but when i export for the flash 8 player it seems to be
invisible. Is there any obvious reason for this happenning?
thanks
jonOk, thanks, looks like you've pointed me in the right
direction. I havent fixed it yet though. Heres where i am at:
eval(theTarget+".buttonPrime").tex.embedFonts = false;
now i can see my text. of course its using a default font.
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "arial14b";
eval(theTarget+".buttonPrime").tex.embedFonts = true;
eval(theTarget+".buttonPrime").tex.text = "wasssup?";
eval(theTarget+".buttonPrime").tex.setTextFormat = my_fmt;
this isnt working. I have added a font object to the library
and linked it for actionscript using the monkier "arial14b".
however my text is quite invisible. i have checcked, 'export in
first frame' for the font object i even tried it with this
deselected. i have deselected the embed font option on the text
feild itself. that doesnt work either (unless i dont try to set the
text format, so long as i accept a default font, its fine).
so err, help?
confused
jon
ps further to this is have discovered more about this strange
behaviour. i can set the text to a different string, provided i do
not try to embed the font in any way. if i set the font to embed, i
can have the text display with the correct font, until i change the
text. then it dissappears. also i cannot seem to affect properties
like font size by means of my TextFormat object. the textFormat
object also does not seem to affect the font of the text.
in short, when exporting for flash 8, i cannot seem to
successfully embed fonts for dynamic text. the only thigs i have
gotten to work are: static text (or a dynamic text feild with
unchanged text) with an embedded font, or dynamic text with a
default font. -
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 -
I am looking to create a good dynamic text scroller like the
one that
is a component. Any one have information on how to make one
it is
really appreciated.
Thanks
RandyIn your program and dynamic actions use structure RP50D for return dates (RP50D-DATE1 and RP50D-DATE2 to retrun values)
0000 06 75 I INS,0041,,,(RP50D-DATE1),(RP50D-DATE2)/D
0000 06 76 W P0041-DAR01='01'
0000 06 77 W P0041-DAT01=RP50D-DATE1
PROGRAM ZHPADYN.
TABLES : RP50D,
P0000,
P0041.
*& Form GET_DATE
* text
FORM GET_DATE .
DATA : I0041 LIKE P0041,
L_DAT LIKE P0041-DAT01,
L_DAR LIKE P0041-DAR01.
PERFORM READ_INFOTYPE(SAPFP50P) USING P0000-PERNR
'0041'
P0000-BEGDA
P0000-ENDDA
'1'
'NOP'
I0041.
DO 12 TIMES
VARYING L_DAR FROM I0041-DAR01 NEXT I0041-DAR02
VARYING L_DAT FROM I0041-DAT01 NEXT I0041-DAT02.
IF L_DAR = 'HR'.
RP50D-DATE1 = L_DAT.
ENDIF.
IF L_DAR = 'PE'.
RP50D-DATE2 = L_DAT.
ENDIF.
ENDDO.
ENDFORM. "GET_DATE
Hope this helps,
Puneet -
Dynamic Texts from Bex ( for Key Figures ) not coming to WEBI Query
Hi Gurus,
We have a Query in BEx : Each Key figure column text changes dynamically - Like based on Present month
it will Display Month +1 Month +2 up to Month +12. Used dynamic Text variables .
But when i created the universe and Webi report , i am missing the text in the column for Key figures .
How should i get the column text in Webi which is same as in Bex : Points will be awarded for helpful
answers.
Thanks
MaggeHi,
text variables with replacement path are supported in BO4.0, see following document: SAP BusinessObjects BI4 - Supported BEx Query Elements
As an example after entering 2012 in the prompts window, the name of the corresponding key figure will dynamically change:
After refreshing and selecting 2013, the column name will update:
Im not sure though if this is the case with unv universe access to BEx queries.
Best regards,
Victor -
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/ -
If else conditional statements for dynamic text fields (as 2.0)
This is about a self assesment quiz.There will be four options and each one has a scale from1-5 ie "option a" has 1mark, "option b" has 2marks,"option c" has 3 marks, "option d" has 4marks and "option e" has 5 marks and we count the answerd and we display the scor for example if there are 20 question in it if they answered "option e" 5 times the score will be
25 and option d 5 times the score will be 20,anf if "option c" for 5 times the score will be 15,and "option b" for 3 times the score will be 6 and "option a" two times the score will be 2, and we add up all the score and display in a dynamic text field called "scor" and the total score is 68.And i have another dynamic text field called "tsc" where i have to display the tags like excellent , good, better ......ect.
Till now every thing is fine but i am unable to compare them it is displaying excellent even if i get 10 marks, i am unable to configure where i am going wrong.
If the score is greater than 55 "tsc" should display Excellent, if the score is greater than 41 or less than 55 "tsc" should display Best, if the score is greater than 26 or less than 40 "tsc" should display Better,if the score is none of the above "tsc" should display Poor.
This is my code on the submit button:
on (release) {
gotoAndStop("sQ");
if (scor>=55) {
tsc = "Excellent";
} else if (scor == 41 && scor<=55) {
tsc = "Best";
} else if (scor == 26 && scor<=40) {
tsc = "Better";
} else if (scor == 10 && scor<=25) {
tsc = "Good";
} else {
tsc = "Poor";
where:
"sQ" is the frame name where i am displaying the score details
"scor" is the var name for the dynamic text field for displaying total score
"tsc" is the var name for the dynamic text field for displaying the tags llike good, Excellent, better, poor.....etc
Plese help.......Use trace commands to make sure that what you think you are processing is what is actually hapenning.
Your middle conditionals are not written as you described them... any "==" should be ">="
It is recommended you get away from using the textfield var option... it can be troublesome to work with. Just assign an instance name to the textfield and assign the values to its text property... for instance, say you name it tscField, then you would use tscField.text = "Excellent";
Also, realize that the gotoAndStop command will not happen until after all the code executes in case that matters
on (release) {
gotoAndStop("sQ");
trace(scor);
if (scor>=55) {
tsc = "Excellent";
} else if (scor >= 41 && scor<=55) {
tsc = "Best";
} else if (scor >= 26 && scor<=40) {
tsc = "Better";
} else if (scor >= 10 && scor<=25) {
tsc = "Good";
} else {
tsc = "Poor";
Maybe you are looking for
-
I've a few issues, my old computer was out of memory. I changed to a new one which already had another itunes account (for my business) when i upgraded to os5 my library has dissappeared as it has syncd with the new computer. Is there any way i ca
-
Photoshop elements 5.0 on mac OS X mountain lion?
Is it possible to install photoshop elements 5.0 on my mac OS X mountain lion? I found a cd with photoshop elements 5.0 on which it said mac but when i tried to install it, some kind of error showed on the screen, but it was only after a little while
-
FAMOUS ERROR: There was a problem reading this document (8)
There is a discussion of this issue two years ago with no answers/soluitions. The problem results from working with a new form. After adding fields and filling in the form the size of the file balooned to 9 MB. I needed to add one more field so I
-
Re: BT complaints / Ofcom / Legal action
I have been battling BT for months. They do not listen, they do not tell the truth, they make appointments and fail to keep them, wasting other peoples time and money. They failed to connect our services for 2 months before I cancelled the order. The
-
I can't download a free app. The phone told me to sighn in after sighting in the phone said that I need to use another panther payment method when I only have one please do something