Populate CL_GUI_TEXTEDIT editor with text for user to modify
Hi, What method of class CL_GUI_TEXTEDIT can I use to prepopulate the onscreen editor for someone to modify? Also, an example would be greatly appreciated!
Thanks
I am using this program to maintain a string field URL in a table. If you have a better way it would be greatly appreciated!
REPORT ZDW_1ST_RX_LINK_MAINT.
DATA: DOCKINGLEFT TYPE REF TO CL_GUI_DOCKING_CONTAINER.
DATA: TEXT_EDITOR TYPE REF TO CL_GUI_TEXTEDIT.
DATA: REPID TYPE SYREPID.
DATA: TEXTLINES TYPE TABLE OF TLINE-TDLINE.
DATA: WA_TEXT TYPE TLINE-TDLINE.
DATA: REPORT_URL TYPE STRING.
DATA: TEXT_ITAB TYPE TABLE OF SOLISTI1.
DATA: TEXT_ITAB2 LIKE LINE OF TEXT_ITAB.
PARAMETERS: P_REPGRP TYPE ZDWRPTGRP. " Report
PARAMETERS: P_SFORCE TYPE /BIC/OIZDWSFORCE. " Report Qualifier
PARAMETERS: P_REPDES TYPE C LENGTH 60.
PARAMETERS: P_ACTION TYPE C. " Action
AT SELECTION-SCREEN OUTPUT.
REPID = SY-REPID.
CREATE OBJECT DOCKINGLEFT
EXPORTING REPID = REPID
DYNNR = SY-DYNNR
SIDE = DOCKINGLEFT->DOCK_AT_BOTTOM
EXTENSION = 280.
CREATE OBJECT TEXT_EDITOR
EXPORTING PARENT = DOCKINGLEFT.
START-OF-SELECTION.
CALL METHOD TEXT_EDITOR->GET_TEXT_AS_STREAM
IMPORTING
TEXT = TEXT_ITAB
EXCEPTIONS
OTHERS = 1.
LOOP AT TEXT_ITAB INTO TEXT_ITAB2.
CONCATENATE REPORT_URL TEXT_ITAB2-LINE INTO REPORT_URL.
ENDLOOP.
DATA: S_SFURL TYPE ZDW_SFURL.
S_SFURL-REPORT_GROUP = P_REPGRP.
S_SFURL-SALES_FORCE = P_SFORCE.
S_SFURL-REPORT_URL = REPORT_URL.
CASE P_ACTION.
WHEN 'I'.
INSERT ZDW_SFURL FROM S_SFURL.
WHEN 'D'.
DELETE FROM ZDW_SFURL
WHERE REPORT_GROUP = P_REPGRP
AND SALES_FORCE = P_SFORCE.
WHEN 'U'.
UPDATE ZDW_SFURL FROM S_SFURL.
ENDCASE.
Or you can use the methods in this example.
report zrich_0001 .
data:
dockingleft type ref to cl_gui_docking_container,
text_editor type ref to cl_gui_textedit,
repid type syrepid.
data: itext type table of tline-tdline,
xtext type tline-tdline.
parameters: p_check.
at selection-screen output.
repid = sy-repid.
create object dockingleft
exporting repid = repid
dynnr = sy-dynnr
side = dockingleft->dock_at_left
extension = 1070.
create object text_editor
exporting
parent = dockingleft.
xtext = 'http:\www.sap.com'.
append xtext to itext.
call method text_editor->set_text_as_r3table
exporting
table = itext
exceptions
others = 1.
start-of-selection.
call method text_editor->get_text_as_r3table
importing
table = itext
exceptions
others = 1.
loop at itext into xtext.
write:/ xtext.
endloop.
Regards,
RIch Heilman
Similar Messages
-
Best way to pre-populate material variable with values for users
Hi, I have a requirement to prepopulate a material variable with about 5 materials and that is the materials that will default when the query is called. The users would also need the ability to change those values.
My thought is to create a User-exit variable that derives the values from a user maintained table (infoobject).
Does anyone else have any suggestions or ideas on the best way to handle this?I don't know if there is a best solution...
Infoobject
With this option you have to create a new infoobject (ZMATERIAL) without attribute (you need only a list material codes) and then to set the authorization profile for the user in order to manage the content.
The creation of an infoobject corresponds to a table creation, but you don't need any other specific options that belong to the infooject (as technical object)...
Table
With this option you have to create a Z table with only one field and then to allow the maintenance of the table by SM30....
In the ending, if you want to be a purist use the table, otherwise use an infoobject (but there are no significant differences !
Bye,
Roberto -
Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
Appreciate for any help rendered.Mikko777 wrote:So what is the best?
I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
Mikko777 wrote:PS:You produce a lot of text and welcome smile
Yeah. Wonder why I'm still employed? So do I ... -
"With Xib for user interface" option Disabled
I was able to use the "With Xib for user interface" a couple of days ago but now when I try to create new object-c file with xib interface, I cant use the checkbox. It is disabled. What may be the problem? How can I create a file with xib again?
Does the following Stack Overflow question help you?
How to create new View Controllers in XCode 4.3
If not, you're going to have provide more information for anyone to help you. What version of Xcode are you using? What type of Objective-C file are you creating? What type of project are you adding the file to? -
Dropdown list (predefined list) along with provision for user to enter text
Hi,
Is there any provision in J2ME to have
" a drop-down list , which contains predefined variables. if the user does not want to use those predefined variables, then a provision for user to enter text."
thanks in advanceAppend Method
I would create a box / div in Animate then when you publish it and put it on your page just append a form with an email input ( <input type="email></input>" ) and submit button.
<form action="url">
<input type="email" name="usremail">
<input type="submit">
</form>
This page provides a lot of information on how to use Edge Animate and how to do more advanced things.
http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html -
How to make an input text for user to type name in?
I'm making a game in which the user can type their name, and later in the game it'll say something like:
"Oh, Kaitlyn, how was your day?" But all I really know how to do is make it so the name will appear but NOT be in an actually sentence. The problem with that is the spacing and punctuation. I tried following a tutorial which gave me this to put in the actionscript for the output box:
output_txt.text = "Hello "+myText+"!";
Here's the tutorial:
http://www.danfergusdesign.com/classfiles/oldClasses/VCB331-richMedia1/exercises/inputOutp utText.php
I think it's because it's for as3 that it doesn't work, but I'm kinda new to flash and it doesn't seem too difficult. Please give very discriptive instructions.What you show will work in AS2 as well as AS3. Have you assigned an instance name to the textfield (it shows as ' output_txt ' in your example)? Instance names are assigned by selecting the object on the stage and entering the name in the Properties panel.
You need to store the name that the user enters into a variable. This can be done a couple different ways. Do you have something in place for that? -
Body of text for User Decision
Hi Experts,
In my scenario while sending user decision mail for approve or cancel, here I need to send mail with body of text
Like :
Scheduling agreement number: &PURCHSCHEDAGREEMENT.PURCHASINGDOCUMENT&
Scheduling agreement date:
Material Description:
Rejected by:
Rejection reason:
Now I can include subject of mail using parameters (decision tab).
But here I am not able to include body of text.
Please any one can suggest solution for this.
Advance Thanks,
Regards,
BBCHi Suresh,
Thanks for your quick replay.
As suggested, yes I can see the container, here only it is showing few things like adhoc_objects, attach_objects, Wi_group_id, work_item, and note reference.
I need to get values from scheduling agreement relevant methods and all...
In work flow I can call the scheduling agreement methods relevant container parameters in other steps.
Please can you suggest how to see what ever available methods and all in workflow?
Regards,
BBC -
DATABASE_LINK with CURRENT_USER for user identified externally
Hi,
My database is in standard edition 10.2.0.5 on windows.
I have a user OPS$xxx identified externally.
the connection with this user "sqlplus /@service_name" is ok.
A database link has been created with these options :
select * from dba_db_links;
OWNER DB_LINK USERNAME HOST CREATED
OPS$xxx TEST_DB CURRENT_USER SERVICE_NAME 19/10/11
This database link references the same database
( it is an external application which has created it).
if we test with sqlplus, we have :
sqlplus /@service_nameSQL*Plus: Release 10.2.0.5.0 Production on Fri. Oct. 21 09:58:40 201
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to :
SQLPLUS> select count(*) from user_tables@TEST_DB;
ORA-1017: invalid username/password; logon denied
So is it possible to use this type of database link ? And if it is, how can you do that ?
Or only "user identified globally " can use database links with current_user...
Thank you in advance for your help.
Best regards
MarieA connected user link should work per the reference:
The ability to use a connected user database link depends on several factors, chief among them whether the
user is authenticated by the database using a password, or externally authenticated by the operating system or
a network authentication service. If the user is externally authenticated, then the ability to use a connected user link
also depends on whether the remote database accepts remote authentication of users, which is set by the
REMOTE_OS_AUTHENT initialization parameter.HTH -- Mark D Powell --
insert line breaks to try to limit width
Edited by: Mark D Powell on Oct 21, 2011 9:17 AM
Edited by: Mark D Powell on Oct 21, 2011 9:18 AM -
Assistance with prompting for users and then adding them to a command in PowerShell
I'm trying to create a very simple script to add members to a Distribution Group. I want to do something like I added below. I would like to prompt for user1, user2, user3, etc.. until I have no more users to add instead of manually typing out
the command below. Each time there will be a different number of users to be added. I do not want to do a csv import since it creates extra work when sometimes I only need to add 2-3 users. I find using a csv works great but takes too long when
I only have a few to add. I would like a way to just keep typing user aliases until I have no more and then hit enter and have it take my entries and enter them into the command below or some other similar command. I would like everything embedded
in the ps1 file with no other files to deal with. Any help will be appreciated. Thank you in advance.
$DLName = Read-Host "Enter the name of the DL that members will be added to."
"user1","user2","user3" | Add-DistributionGroupMember -Identity $DLNameHere's another option:
$DLName = Read-Host 'Enter the name of the DL that members will be added to.'
((Read-Host 'Member List, separated by commas').Split(',')) | ForEach { Add-DistributionGroupMember -Identity $DLName -Member $_.Trim() }
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Online photo editor with text option
Hello,
Would anyone suggest a photoshop version that has an online editor which still provide high res fonts, such as the fonts won't look pixalated when I make the image into a jpeg? this is want currently happens with an online editior I am using, also I find that the creative cloud slows down my computer at times, does anyone know why this is?
Thanks,
KristinaHere's another article about Adobe Online:
http://news.zdnet.com/2100-3513_22-6164836.html
Well, now we'll have a place to send someone who is a borderline troll who complains that Elements is too hard to learn...and why can't Elements be as easy as brand x.
BTW, this isn't referencing anyone currently posting...I'm thinking of past trolls.
Terri -
Table for user status field in CJ20n transaction project defination
HI ALL,
what is table for user status field in CJ20n transaction project defination creation. This field is in Basic Data tab.
Thanks.Hi,
Check following tables for Usre status:
TJ30 - User status
TJ30T - Texts for user status
TJ20 - Status profile
JEST - Object status
JSTO- WBS status profile.
Check this code:
REPORT zps_get_userstatus .
PARAMETERS: p_posid LIKE prps-posid.
*-- Constants
CONSTANTS: gc_yes(1) TYPE c VALUE 'X',
gc_no(1) TYPE c VALUE ' '.
*-- Variables
DATA: l_objnr LIKE prps-objnr.
*-- Internal tables
DATA: BEGIN OF lit_jest OCCURS 0,
objnr LIKE jest-objnr,
stat LIKE jest-stat,
END OF lit_jest.
DATA: BEGIN OF lit_jsto OCCURS 0,
objnr LIKE jsto-objnr,
stsma LIKE jsto-stsma,
END OF lit_jsto.
DATA: BEGIN OF lit_status OCCURS 0, "Combination of JEST & JSTO
objnr LIKE jest-objnr,
stsma LIKE jsto-stsma,
stat LIKE jest-stat,
END OF lit_status.
DATA: BEGIN OF lit_usrsta OCCURS 0, "Uer status for all wbs
objnr LIKE jest-objnr,
stsma LIKE jsto-stsma,
stat LIKE tj30t-estat,
txt04 LIKE tj30t-txt04,
END OF lit_usrsta.
DATA: BEGIN OF lit_usrtxt OCCURS 0, "User Status text - TJ30T
stsma LIKE tj30t-stsma,
stat LIKE tj30t-estat,
txt04 LIKE tj30t-txt04,
END OF lit_usrtxt.
* get WBS object number
SELECT SINGLE
objnr FROM prps
INTO l_objnr
WHERE posid = p_posid.
* get WBS active status from table JEST
SELECT
objnr
stat
FROM jest INTO TABLE lit_jest
WHERE objnr = l_objnr AND
inact <> gc_yes.
* get WBS status profile from table JSTO
SELECT
objnr
stsma FROM jsto
INTO TABLE lit_jsto
WHERE objnr = l_objnr.
* combine JEST and JSTO table for user status
LOOP AT lit_jest.
IF lit_jest-stat CP 'E++++'.
READ TABLE lit_jsto WITH KEY
objnr = l_objnr.
IF sy-subrc = 0.
lit_status-objnr = lit_jest-objnr.
lit_status-stsma = lit_jsto-stsma.
lit_status-stat = lit_jest-stat.
APPEND lit_status.
ENDIF.
ENDIF.
CLEAR: lit_jsto, lit_status.
ENDLOOP.
* get text for user status
SELECT DISTINCT
stsma
estat
txt04 FROM tj30t
INTO TABLE lit_usrtxt
FOR ALL ENTRIES IN lit_status
WHERE stsma = lit_status-stsma AND
estat = lit_status-stat AND
spras = sy-langu.
Let me know if you have any question.
Regards,
RS -
How can I make (automatic) accounts for users of my adobe muse site?
Adobe, google, facebook and more site haves accounts for his users, but how can I make a system with accounts for users of my adobe muse site?
Hi,
Try some suggestion given in this thread
http://forums.adobe.com/message/5362643#5362643 -
Authorization for limited vendor for user in FBL1n
Hi,
I have certain user in my company, to whom, i want to give t-code FBL1N access. But for some vendors only.
Please let me know, how it can be done.Hi Durga
As far as I see I can suggest you 2 options:
1. You can create a validation with sets for users and vendors. This way you can restrict to only the t-codes you want the restriction to apply
2. You can co-ordinate with BASIS to restrict using authorization object F_BKPF_BEK. You have to assign authorization group to vendors and give authorization to users for specific authorization groups. In this case, you cannot restrict only to FBL1N. The restriction would be applicable to all the transaction codes for the users where vendors are impacted.
Regards
Sowmya -
Parallel ledger with values for past period
hi
we are creating addl ledgers with different fiscal year variant
is it possible for me to fill up this ledger with values for a past period?
my fiscal year variant is V3 April - March, however I need the parallel ledger for calender year Fiscal Yr Variant K4.
Going live with this in april is it possible to populate this ledger with values for jan-march period
regards
sameerHI,
I am not sure if it is helpful but what you can do is to define an asset movement type limited to a valuation area, which allows you to post for example acquisitions only in on valuation area, but not in the other one.
Thus you can post ABSO with one asset movement type for one valuation area (APC-value X) for another valuation area use another movement type and post APC value Y.
Anyway the difference of the APC value (thats not ativated) needs to be posted to an P&L account.
Maybe there are other/better suggestions from other people.
Best regards, Christian -
How to Generate Audit table entries for user navigation in ADF application?
Hi all,
I have a requirement that I need to have audit table entries for each user action in my application. Along with entries for user actions like insertion,deletion and updation I also need to have entries in the audit log even when a user simply navigates to or views any page.
Although I was successful in creating the entries for user actions like insertion,deletion and updation I failed to do so for simple user navigation through the pages.
Can anyone please help me out?
Thanks in advance,
ArijitHi,
Thanks for the quick reply. I am using JSF for my ADF application.Could u please elaborate how to use the PhaseListener for Auditing user navigation?
Arijit
Maybe you are looking for
-
Can I use a second monitor and have an extended desktop
Thinking of getting a new imac. Maybe the "20. I was wondering will I be able to hook up a second monitor and be able to either mirror the desktop or have an extended desktop. Will it work in windows? ibook Mac OS X (10.4.7) ibook Mac OS X (10.
-
Combobox Autocomplete editor inside Jtable cell
I have a custom combobox editor which supports the autocomplete feature as follows: as soon as the user keys in any character, this editor searches for the item that starts with keyed in character. This item is displayed in the editor text field and
-
Integration of 9i Reports with 10g portal
Hi All: I am new to develop portal and using 10g Portal.I have to integrate reports,created with 9i report builder,with 10 g portal. Please let me know about some useful documents to do this task. I have searched alot and get some documents but these
-
Elements 13 crashes when opened from Lightroom 5
Lightroom is set with Elements 13 as default external editor an this is shown as 'elements editor' in Preferences > External Editing. However when I use this Elements editor crashes. I read in earlier discussion the following which relates to earlier
-
Error in interpretation of keyframes
Hi there, today I want to report something, that look like an error in the way, FCPX interprets keyframes, which I set for moving a clip on the screen. This happens with FCPX version 10.1.4 and at least 10.1.3 (for earlier versions I am not sure, if