How to use OTR Text!
Hi gurus,
I am using the CRM Survey Suite to create a Survey form.
I am supposed to create a PBO through which the OTR Texts will be displayed based on conditional checks.
I have also created the OTR Texts via transaction Sotr_edit and I am able to retrieve them via FM sotr_get_concept.
Pl. let me know how I can show them on the web page, i.e. my survey form.
I have searched and found that they can be used readily in BSP but how to use them in a Survey Form.
Regards
Atul
Hello
I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
Regards
Ranganath
Similar Messages
-
How to use OTR text in normal ABAP UI (Not in webdynpro)
Hello ,
I hav a requirement to assign an OTR text to a UI element in ABAP screen. How can we do that...?
I tried the syntax $OTR:<pkgname>/<aliasname> in the properties tab of the UI element,
But on executinf the screen am gewtting the syntax itself as tooltip....
Please give some inputs...
Linda.Hello
I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
Regards
Ranganath -
How to use OTR short text for description of select options
Hi Experts,
Can some one guide me how to make the description of select option language independant.
Can't I use OTR text for description? if yes, how is that?
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'SEL_OPEN_LINES'
IT_RESULT = LT_RANGE_TABLE
I_AS_CHECKBOX = ABAP_TRUE
I_READ_ONLY = L_READ_ONLY
I_DESCRIPTION = 'Select Open Lines' ).
how can i pass OTR text for the string type I_DESRIPTION export parameter of ADD_SELECTION_FIELD method?
or is there any other way of doing this.
Any clue is highly appreciated. Thanks.
Regards,
AjayHi,
Try this out -
Use cl_wd_utilities=>GET_OTR_TEXT_BY_ALIAS get the alias text into a string and pass this string variable to the I_DESCRIPTION.
DATA:
lv_str type string.
CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
EXPORTING
alias = 'ZPKG/header'
language = sy-langu
RECEIVING
alias_text = lv_str.
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'SEL_OPEN_LINES'
IT_RESULT = LT_RANGE_TABLE
I_AS_CHECKBOX = ABAP_TRUE
I_READ_ONLY = L_READ_ONLY
I_DESCRIPTION = lv_str ).
Regards,
Lekha.
Edited by: Lekha on Sep 14, 2009 6:36 PM -
How to use the text module in script
hi,
i script how to use the text modules and how to write the code in layout of the script?Hi,
You canr use text modules in script. You have to use standard texts .
Standard text are maintained in SO10 transaction.
you can create translation text for other languages also . So based on logon language it will print translation text.
go to SO10
give textname it say Ztextname id as ST and language as EN
say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
so now you have created a text called ztextname which you can use in your script.
Inorder to insert the texts in your script do as below
go to any window editor and select path
Insert->texts->symbols->standard symbols
then you will get popup in which you have to mention all the parameters that you have created earlier.
after inserting just change language EN to sy-langu
Reward points if useful
About text elements Sravan already given some informatiomn
Regards,
Nageswar -
How to use standard texts in smartforms
Hi Friends,
How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
thanks in advance,
regards,
sharma.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to use Standard Text in ALV
How to use Standard Text in ALV header part? Can you please help me by giving the answer?
Hi ,
You can read the Standard text using read_text function module and then print in LV header part. -
How to use long texts in explanation tool tip?
Hi ,
Can anyone tell me how to add long text in Explanation tool tip?
I am able to use short OTR texts in explanation tool tip but not able to use long OTR texts.
Thanks and regards,
Vivek Shetty.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to use apex_item.text in a collection or tabular form
Hello,
I have a table with table names. (simplified)
create table test (tab_nm VARCHAR2(30) )
Now I want to present this tables on a tabular form with a checkbox and a text item to put the short name for this table name.
So I was thinking in the way of
select apex_item.checkbox(1,ids) check,
tab_nm,
apex_item.text(2,c001) short_name
from test;
Ibut this doesn't work since the c001 column does not exist.
So I probably should go for a collection, but how do I do that and how to process the text put in in the text item?
ThanksHi Marc,
I think the purpose is different. I want to create a 3 column report with a checkbox to select the tables I want to use and because I do not store the shortname in the table I want the user to be able to give the shortnames himself for the selected tables.
So
checkbox tab_nm from table item( filled in by user but not stored in table)
x table 1 tab1
x table2 tab2
table3 tab3
writing this I 'm considering to save the short names because it can give conflicts if a shortname is used twice
Purpose is to generate tables, with sequences and triggers dynamically from the selected tables.
Erwin -
I'm storing files in a blob field in a 9i database, sometimes I need to query using the details stored in the database about the file and sometimes I need to search the files to find matches with some text (like search engine), I was told that oracle text can help me accomplish this functionality , however I don't know if it supports arabic text and I don't know how to use it from my application developed in 9i.
Regards.Friend by using these step you can easily use Oracle inter text media
j a h a n z e b
[email protected]
Oracle Developer
6th Floor, State Bank of Pakistan
I.I.Chundrigar Road, Karachi.
Please note that in SqlPlus you can use '?' in stead of $ORACLE_HOME, and this works on Unix and Windows so if you want to execute $ORACLE_HOME/rdbms/admin/catalog.sql you can simply use:
on Unix sql> @?/rdbms/admin/catalog.sql
on Windows sql> @?\rdbms\admin\catalog.sql
5.2.1 Explanation of installation steps
1. Connected to database as SYSDBA and create CTXSYS user:
Ctxsys user is created by calling following script:
@?/ctx/admin/dr0csys.sql <ctxsys> <system> <temp>
Where:
change_on_install - is the ctxsys user password
DRSYS - is the default tablespace for ctxsys
TEMP - is the temporary tablespace for ctxsys
This will create user CTXSYS and grants full privileges to CTXSYS in order to create and insert into result tables, execute callbacks, rewrite queries, and perform system cleanup. At this point CTXSYS will not own any objects.ss
2. Connected to database as CTXSYS and create all necessary objects
All necessary object are creates by calling following script:
connect CTXSYS/change_on_install
@?/ctx/admin/dr0inst <replace with $ORACLE_HOME>/ctx/lib/libctxx9.so;
Please not that you have to put full path to your ORACLE_HOME, for example home as paramter
On Solaris/Aix/Linux with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
@?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.so
On HP-UX with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
@?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.sl
Windows NT/2000 with D:\oracle\product\8.1.7
@?/ctx/admin/dr0inst.sql D:\oracle\product\8.1.7\bin\oractxx8.dll
This will installs all Oracle database objects required by the Oracle Text system. This includes:
a) Data dictionary tables, views, sequence, packages
b) Server management tables, views and packages
c) Dispatcher packages
d) Service queue objects
3) Install appropriate language-specific default preferences.
The next step is to install appropriate language-specific default preferences.When you use CREATE INDEX to create an index or ALTER INDEX to manage an index, you can optionally specify indexing preferences in the parameter string. There are seven preference classes:
- Lexer, defines the language being indexed. ( language specific )
- Wordlist, defines the expantion of stem and fuzzy queries. ( language specific )
- Stoplist, defines words and themes that are not be indexed. ( language specific )
- Datastore, defines document storage.
- Filter, defines standards for converion of documents to plaintext.
- Storage, defines the storage of the index tables.
- Section group, enables possibilities to define document sections.
There is script which creates language-specific default preferences for every language Oracle text supports in <ORACLE_HOME>/ctx/admin/defaults directory, such as English(US), Danish(DK), Dutch(NL), Finnish(SF), French(FR), German(DE), Italian(IT), Portuguese(PR), Spanish(ES), and Swedish(S). They are named in the form drdefXX.sql, where XX is the language code. To manually install US default preferences, for example, log into sqlplus as CTXSYS, and run 'drdefus.sql' as described below:
@?/ctx/admin/defaults/drdefus.sql
create user textuser identified by textuser
default tablespace users
temporary tablespace temp;
-- You must grant 'ctxapp' role to textuser
grant connect, resource, ctxapp to textuser;
connect textuser/textuser
drop table quick;
create table quick (
quick_id number
constraint quick_pk primary key,
text varchar2(80) );
insert into quick ( quick_id, text ) values (1,'The cat sat on the mat');
insert into quick ( quick_id, text ) values (2,'The quick brown fox jumps over the lazy dog' );
insert into quick ( quick_id, text ) values (3,'The dog barked like a dog');
commit;
create index quick_text on quick ( text )
indextype is ctxsys.context;
col text format a45
col s format 999
select text, score(42) s from quick
where contains ( text, 'dog', 42 ) > 0
order by s desc; -
How to use the text type in SAP Routine
Hi,
The following fields has to be populated in Stock transport order text fields at the time of saving the document & to be copied into delivery document
1) Material type
2) Receiving storage location
3) Production supply Area
STO
Delivery
EWM Delivery
Origin of the field value
Material type
New text type to be created
(90)
New text type to be created (Z003)
New text type to be created
(Z003)
Available in EKPO table (field name is MTART)
Receiving storage location
New text type to be created
(91)
New text type to be created (Z004)
New text type to be created
(Z004)
Available in EKPO table (field name is LGORT)
Production supply Area
New text type to be created
(93)
New text type to be created
(Z006)
New text type to be created
(Z006)
To be retrieved from Control cycle table (PKHD-PRVBE), if the Kanban indicator (EKPO-KANBA) is ‘X’.
With Best Regards,
SDN user.Hi,
You canr use text modules in script. You have to use standard texts .
Standard text are maintained in SO10 transaction.
you can create translation text for other languages also . So based on logon language it will print translation text.
go to SO10
give textname it say Ztextname id as ST and language as EN
say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
so now you have created a text called ztextname which you can use in your script.
Inorder to insert the texts in your script do as below
go to any window editor and select path
Insert->texts->symbols->standard symbols
then you will get popup in which you have to mention all the parameters that you have created earlier.
after inserting just change language EN to sy-langu
Reward points if useful
About text elements Sravan already given some informatiomn
Regards,
Nageswar -
How to use a Text View to show the current user
Hi Experts,
I am using a Text View to show the current logged on user.
Also i need to retrieve the date of creation of proposal and show it as output parameter.
I am using the following code but it is not working properly.
Please help me out regarding the same.
Method technicalDescription()
//Attribute User to store user name
IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
//Attribute date to store current system date
IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
Method execute()
//getting current system date
Date currDate = new Date(System.currentTimeMillis());
contextElement.setDate(currDate);
//Retrieve Current User Details
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String firstName = user.getFirstName();
String lastName = user.getLastName();
String userName = lastName + " " + firstName;
contextElement.setUserName(userName);
} catch (WDUMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Method complete()
output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
Thanks a lot.
Cheers
Gaurav RaghavThere are a few ways, for example declare an IBOutlet for the text field and then use it with NSControl's stringValue: method (inherited by the NSTextField), or bind the value of the text field to a property, etc. What have you got so far?
-
How to use a Text View to show the current user in WDJ
Hi Experts,
I am using a Text View to show the current logged on user.
Also i need to retrieve the date of creation of proposal and show it as output parameter.
I am using the following code but it is not working properly.
Please help me out regarding the same.
Method technicalDescription()
//Attribute User to store user name
IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
//Attribute date to store current system date
IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
Method execute()
//getting current system date
Date currDate = new Date(System.currentTimeMillis());
contextElement.setDate(currDate);
//Retrieve Current User Details
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String firstName = user.getFirstName();
String lastName = user.getLastName();
String userName = lastName + " " + firstName;
contextElement.setUserName(userName);
} catch (WDUMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Method complete()
output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
Thanks a lot.
Cheers
Gaurav RaghavYou can use a text string as the reference.
If you use the VISA Find Resource function, it will return an array of strings which you can index in your code, and store either the index, or store the string itself. You can even use strings like COM1 and COM2, assuming those ports are available.
The challenge is when you move from one machine to another, where the serial ports may be different on the other machine.
Message Edited by LabViewGuruWannabe on 01-07-2008 06:33 AM
Message Edited by LabViewGuruWannabe on 01-07-2008 06:37 AM
Attachments:
VISA find.png 5 KB -
How to use Standard Text Key in maintenance order header long text?
Dear All,
I have created a standard text key using transaction CA10 and I want to use this in maintenance order header long text. Is there any way to select any standard text key in maintenance order header long text?
Regards & Thanks,
SaifHi
To use standard texts, perform the following six steps:
Select the maintenance order and access the operation overview screen using Goto -->Operation overview.
You can enter standard text keys in this screen or in a detail screen for the relevant operation.
Enter a standard text key in the appropriate field and press ENTER .
If the text is longer that the short text line available, the field Text is selected for that operation.
Check the long text and edit it if necessary. To do this, select the operation and choose Operation--> Long text.
The system branches to the text editor screen. If you also entered a short text for the operation and specified that this should not be overwritten by the standard text, you will see the short text displayed in the first line of the editor. The following lines contain the standard text.
Check the standard text and change it if necessary.
Save the final version of the text and return to the previous screen with Goto--> Back.
Save the maintenance order.
Standard texts are created for your system by your system administrator using the Customizing function.
Regards
Makarand Gurjar -
Hi, I have searched the forums and haven't found what I am looking for.
I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
ThanksYou can access the text of an input box using the text propery of it. It will return a string
var str:String = inputBox.text; -
Hi All,
I want dynamically to output in adobe print form some fields from a table in this way.
Description:<b>Text1</b>
<b>text2 text3</b>
Description2:<b>Text2</b>
Description3: <b>Text3</b>
I want to use rich text but it does not work for me .
Could anybody help me ?
I appreciate any help.
Regards,
AriI think you have to use floating filed.
<i>Click inside the Static Text object in which you want to place the floating Text Field object.
Place your cursor on the line where you want Designer to insert the floating Text Field object.
Select Insert > Floating Field( from designer memu).
To set the properties of the Floating Field, click the Floating Field marker inside the Static Text object, and then select options as needed. It is good practice to rename the floating Text Field object and specify the necessary binding.</i>
in your case you have use 2 fileds , 1 for description , 1 for text.for 2nd field make bold in the properties.
static text, description and text fields should be in subform.
Inside static text filed,after binding it will appera as below.
Message was edited by:
pavan meda
Maybe you are looking for
-
User-Defined Function and Context Manipulation
Hi Mapping Gurus, I need your help. I have a user-defined function and one of my input parameter (c) is in a loop (EDI segment). So one, if I execute my function I get: Exception:[java.lang.ArrayIndexOutOfBoundsException: 0] If I change the context
-
Hi all, I have been getting a timed out exception in my EJB layer when performing a query that will return 89,000 results. First, there is no issue with our Oracle database as the results are returned withing seconds when performed from the command l
-
I am new to the mac world (with my mac being less then 2 months ole) and I have encountered the first problem that I can not solve. There are a few web pages that bring up the java loading "logo" - or at least that's what I've gathered from reading o
-
how can i assign a name to a individual photos within a selected group of files in a folder?
-
I have two partitions and want to choose which to login to. Cannot remember the key combination to hold on power up