Hbj text view color
Hi Gurus ,
I need to set up the color of the the text in my hbj text view to blue
<hbj:textView
id="Text_ZIP"
encode = "FALSE"
text="<font color = 'blue'><%=poltitle<i>%></font>"
design ="EMPHASIZED"
/>
I get the blue color as intended , however , I want the vale of poltitle<i> to be printed rather that poltitle<i>,
say poltitle<i> = xyz , I want xyz to be displayed in blue color , however poltitle is displaye din blue color ,
kindly suggest , what shall I do to achieve the result
Hi,
One option is not to use the htmlb tags. Just do it with straight HTML.
Or you might be able to set the text property in the body of the HTMLB tag. E.g.
<hbj:textView
id="Text_ZIP"
encode = "FALSE"
text=""
design ="EMPHASIZED"
>
//just example not sure of the exact syntax
this.setText = "<font color = 'blue'>" + poltitle + "</font>";
</hbj:textView>
Hope this helps.
BRgds,
Simon
Similar Messages
-
How to Add Hyperlink to Static Text View
It's possible to add Hyper link or local link(when click that link. then it shows some text in message box) to some part of the Static text view.
for example, my Static Text view Contains following text,
Laptop , Desktop, Mobile
now i want to add that link to Desktop or any other text. like
Mobile
kindly help me.Hi J Sathish Kumar,
From your description, it seems that you have a RichEdit Box control and you want to add a hyperlink feature to your RichEditBox control. Could you tell us what type project do you want to use, windows form, WPF or native MFC?
For using windows form and WPF, you should be easy to find some ways to achieve your goal on the web. For example,
http://stackoverflow.com/questions/435607/c-sharp-how-can-i-make-a-hyperlink-work-in-a-richtextbox
For using native MFC, you may need to get the text range, add the underline,change the text color and use wm_notify to notify the parent windows about a click on a hyperlink.
I make a quick research on the web, and I find this should helpful for this issue.
http://www.flounder.com/richedithyperlinks.htm
Best regards,
Shu Hu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hello ,
I am using Formatted text view. I could put line break, bold such things in that but Could not change color of it. There is no sementiccolor property to formatted text view at the sametime none of the tag I found useful to change color.
Kindly Help.
Thanks,
HemaHi,
You are not able to change the color of text view using tags as like bold .
but one work around is you can add another textview to show the text in another color using semantic color property. Dynamic UI Element programming will help you in this context.
Regards,
Naga -
Can we view Color & SIZE1 field from MARA in MM43??
Can we view Color & SIZE1 field from MARA in MM43??
Hi Ashish,
In MM43 on Basic data screen scroll down to see More Basic Data push button.
Once you enter in More Basic Data screen you have field there for size/dimension.
I'm not sure if this is what you are looking for.
Thanks,
Vikrant. -
Is it possible to use HTML tags to format a string displayed
within a text view. If so how?Jonathan,
No, this is impossible for TextView.
In WD ABAP it is possible using FormattedTextView UI control.
See my post that describes workaround for WD Java: /people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java
VS -
How to print text in a new line in a text view.
Hi,
I have a situation where I need to print two lines inside a text view.
for eg: Bye Bye < user name>
Have a nice day!!
I am assigning this to the context by conactenating Bye Bye < user name> Have a nice day!!.
But the text view prints it a same line.
How can I print Have a nice day!!. in the second line.
Any suggestions and ideas are welcome and appreciated.
Thanks and regards.Hi,
This link will help you to do all the functions in text view using HTML.
[html in text view|http://help.sap.com/saphelp_erp2005/helpdata/en/08/5696420cc2c56ae10000000a155106/content.htm]
Karthik.R -
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 -
Lack of sharpness in text and colors
Recently I have noticed text and colors appear to have faded, not dramatically but discernible nonetheless. I have adjusted brightness (in displays) with no effect so I wonder if someone can suggest another route ... or is it symptomatic of other problems.
Sorry. Resolved. Universal Access. I just hadn't found it.
-
How to populate read only input field or text view form value help only
Hi experts,
I have one requirement to populate a read-only field or text view from value help.
User cant put any value there.value comes only from the value help.
For example,
when we read context using Code Wizard,we cant type any value there.value only comes from value help.
How to implement that functionality?
Please reply.
Thanks in advance,
Subhasis.Yes it is possible.
1.Create a context Attribute and then bind this attribute to the Text view UI element.
2. read context attribute and then set value to the context attribute like this way.
DATA:
elem_context1 TYPE REF TO if_wd_context_element,
stru_context1 TYPE if_first=>element_context ,
item_potxt LIKE stru_context-potxt.
get element via lead selection
elem_context1 = wd_context->get_element( ).
stru_context1-potxt = 'PO'.
elem_context1->set_attribute(
VALUE = stru_context1
name = 'POTXT'
thanks
Suman
Edited by: suman kumar chinnam on Sep 9, 2008 12:12 PM -
Switching from text view to visual view in SharePoint Designer 2013 crashes 100% of the time
Whenever I am in SharePoint Designer 2013 and try to switch a workflow from text view to visual view, SharePoint Designer crashes. Text workflows work fine. I have tried any of the solutions that I could find including:
- Removing KB2837633 and 2768006 (neither were installed)
- Installing SharePoint Designer 2013 SP1 (KB2817441)
- Performing a "Repair" on both SharePoint Designer 2013 and Visio 2013
- Clearing the caches in the AppData directory
- Setting Visual as the default mode for workflows to open in (so, not exactly switching, but trying to open it directly in the visual view)
Event viewer reports that it is an issue with Microsoft.Web.Authoring.ni.dll which throws an unhandled exception, System.AccessViolationException.
This is the error message:
System.AccessViolationException was unhandled
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=Microsoft.Web.Authoring
StackTrace:
at Microsoft.Web.Authoring.Workflow.XamlWrapper.GetStageInfo(UInt32 node, String& name, UInt32& transition, UInt32&
stageContainer)
There is no InnerException.
Can anyone suggest something else to try?
Thanks!Hi,
I have checked out the links above to no avail. I will keep looking. I have included the details from event viewer below.
Details from event viewer:
Event ID 1001
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: SPDESIGN.EXE
P2: 15.0.4569.1503
P3: 52b0b061
P4: Microsoft.Web.Authoring.ni.dll
P5: 15.0.4531.1000
P6: 51cb6bd8
P7: c0000005
P8: 0012f4b8
P9:
P10:
Event ID 1000
Faulting application name: SPDESIGN.EXE, version: 15.0.4569.1503, time stamp: 0x52b0b061
Faulting module name: Microsoft.Web.Authoring.ni.dll, version: 15.0.4531.1000, time stamp: 0x51cb6bd8
Exception code: 0xc0000005
Fault offset: 0x0012f4b8
Faulting process id: 0xc3c
Faulting application start time: 0x01cf69f7dfc05fc8
Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\SPDESIGN.EXE
Faulting module path: C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\Microsoft.W7830ee34#\bed75c80b5bf64ca619a88ad4a48b674\Microsoft.Web.Authoring.ni.dll
Report Id: 45c4e398-d5eb-11e3-8ff3-7054d21a367e -
Unable to view color themes in Kuler pannel
I am unable to view color themes in my Kuler pannel in Illustartor. It gives me an error saying: no color themes found in your account. How can I browse existing color themes?
Hi Rony,
What Reports version are you using (eg, 9.0.2.0.0)? Since you are running the Report Builder, please specify the iDS version, and not the iAS version. Also, what Operating System are you running on?
Navneet. -
Trying to set the contents of a Text View in Objective-C
Hi there,
I have a properly linked up Text View (within a Scroll View) in Interface Builder, and I wish to change the value of that Text View at runtime.
I am trying this code here, but it (and other similarities of it) is not working;
[textField setObjectValue:@"Hello there user"];
//or
[textField setStringValue:@"Hello there user"];
//or
[textField setObjectValue:myString];
When run, my app crashes and the console returns me with something like this;
{quote}
2008-04-12 11:23:43.040 Application Bugging Message Test[2251:10b] * -[NSScrollView setObjectValue:]: unrecognized selector sent to instance 0x12a490
2008-04-12 11:23:43.041 Application Bugging Message Test[2251:10b] An uncaught exception was raised
2008-04-12 11:23:43.041 Application Bugging Message Test[2251:10b] * -[NSScrollView setObjectValue:]: unrecognized selector sent to instance 0x12a490
2008-04-12 11:23:43.041 Application Bugging Message Test[2251:10b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSScrollView setObjectValue:]: unrecognized selector sent to instance 0x12a490'
2008-04-12 11:23:43.042 Application Bugging Message Test[2251:10b] Stack: (
2460484171,
2484588795,
2460513354,
2460506700,
2460506898,
7997,
2460543573,
2524339906,
2524299500,
2524297805,
2524296848,
2524296654
{quote}
I have also tried changing the bindings in Interface Builder, but they make no difference, whether I link the Text View (which I think I should link to) or to the Scroll View.
Any help would be greatly appreciated.
Ricky.Of course!
I am always getting mixed up when to use the prefixes - in this case;
[textField getStringValue:variable1];
Thanks for reminding me
Ricky. -
Hello Friends,
I want to upload material master through mm01 but while recording purchase text view is not getting recorded in bdc.
Kindly suggest how to handle purchase text in such case.
Rgds,
SunnyYou can use BAPI_MATERIAL_SAVEDATA for creating the PO text .
Here is the sample code
TABLES : MARC,MARA.
TYPE-POOLS : TRUXS.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR(18),
* MTART(4),
TEXT(10000)," TYPE STRING,
END OF ITAB.
DATA : ITEMP TYPE TRUXS_T_TEXT_DATA.
DATA : TEXT(132).
data : HEADDATA LIKE BAPIMATHEAD,
PLANTDATA LIKE BAPI_MARC,
PLANTDATAX LIKE BAPI_MARCX ,
MATERIALLONGTEXT LIKE BAPI_MLTX OCCURS 0 WITH HEADER LINE.
DATA: RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
RETURN1 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
RETURNMESSAGES LIKE BAPI_MATRETURN2 OCCURS 0 WITH HEADER LINE.
DATA : ITEXT(132) OCCURS 0 WITH HEADER LINE.
DATA : LEN TYPE I,
POS TYPE I,
TIM TYPE I,
LENGTH TYPE I,
FILENAME TYPE STRING.
DATA : TABIX LIKE SY-TABIX,
LEN1 TYPE I,
TOTAL TYPE I,
TEXT1(132),
LINES TYPE I.
PARAMETERS : P_FNAME LIKE RLGRAP-FILENAME.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
IMPORTING
FILE_NAME = P_FNAME.
START-OF-SELECTION.
*CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
* EXPORTING
** I_FIELD_SEPERATOR =
** I_LINE_HEADER =
* I_TAB_RAW_DATA = ITEMP
* I_FILENAME = P_FNAME
* TABLES
* I_TAB_CONVERTED_DATA = ITAB
* EXCEPTIONS
* CONVERSION_FAILED = 1
* OTHERS = 2
*IF SY-SUBRC <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
FILENAME = P_FNAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILENAME
* FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = ITAB-MATNR
IMPORTING
OUTPUT = ITAB-MATNR.
SPLIT ITAB-TEXT AT SPACE INTO TABLE ITEXT.
SELECT SINGLE MTART INTO MARA-MTART FROM MARA WHERE MATNR = ITAB-MATNR.
HEADDATA-MATERIAL = ITAB-MATNR.
HEADDATA-IND_SECTOR = 'M'. "IMM-MBRSH.
HEADDATA-MATL_TYPE = MARA-MTART.
HEADDATA-PURCHASE_VIEW = 'X'.
DESCRIBE TABLE ITEXT LINES LINES.
LOOP AT ITEXT.
TABIX = SY-TABIX + 1.
CONCATENATE TEXT ITEXT INTO TEXT SEPARATED BY SPACE.
LEN = STRLEN( TEXT ).
* IF LEN GT 100.
IF TABIX LE LINES .
READ TABLE ITEXT INDEX TABIX.
LEN1 = STRLEN( ITEXT ).
TOTAL = LEN1 + LEN.
IF TOTAL GT 132.
MATERIALLONGTEXT-APPLOBJECT = 'MATERIAL'.
MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
MATERIALLONGTEXT-TEXT_ID = 'BEST'.
MATERIALLONGTEXT-LANGU = SY-LANGU.
MATERIALLONGTEXT-TEXT_LINE = TEXT.
APPEND MATERIALLONGTEXT.
CLEAR : MATERIALLONGTEXT,TEXT.
ENDIF.
ELSE.
MATERIALLONGTEXT-APPLOBJECT = 'MATERIAL'.
MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
MATERIALLONGTEXT-TEXT_ID = 'BEST'.
MATERIALLONGTEXT-LANGU = SY-LANGU.
MATERIALLONGTEXT-TEXT_LINE = TEXT.
APPEND MATERIALLONGTEXT.
CLEAR : MATERIALLONGTEXT,TEXT.
ENDIF.
* ENDIF.
* AT LAST.
* IF LEN LE 100.
* MATERIALLONGTEXT-APPLOBJECT = 'MATERIAL'.
* MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
* MATERIALLONGTEXT-TEXT_ID = 'BEST'.
* MATERIALLONGTEXT-LANGU = SY-LANGU.
* MATERIALLONGTEXT-TEXT_LINE = TEXT.
* APPEND MATERIALLONGTEXT.
* CLEAR : MATERIALLONGTEXT,TEXT.
* ENDIF.
* ENDAT.
ENDLOOP.
* AT END OF MATNR.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = HEADDATA
IMPORTING
RETURN = RETURN
TABLES
MATERIALLONGTEXT = MATERIALLONGTEXT
RETURNMESSAGES = RETURNMESSAGES.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
move-corresponding return to return1.
APPEND RETURN1.
CLEAR RETURN1.
CLEAR :HEADDATA ,
RETURNMESSAGES,
RETURNMESSAGES[],
MATERIALLONGTEXT,
MATERIALLONGTEXT[].
* ENDAT.
CLEAR ITAB.
ENDLOOP.
LOOP AT RETURN1.
WRITE :/ RETURN1-MESSAGE.
ENDLOOP.
Change the code as per your need and you can create that by create_text fm also but wont forget to use commit_text after using create_text -
Mm02 - Sales text view update?
Hi Friends,
I am working on the material master change (i.e MM02 transaction) and I need to upload Material master u2013sales text view and purchase order text view and all other additional data views.
I have updated one material in recording mode (i.e through SHDB transaction).
I am unable to find the sales text field name. But I find BDC_SUBSCR in my recording.
Pls find the below recording log.
SAPLMGMM 4040 X
BDC_OKCODE =BU
BDC_SUBSCR SAPLMGMM 2010TABFRA1
BDC_SUBSCR SAPLMGD1 1004SUB1
MAKT-MAKTX test material desc XXX
BDC_SUBSCR SAPLMGD1 2121SUB2
Pls let me know how to update sales text view and po text view in MM02 transaction.
Thanks in advance.
Regards
raghuYou have to use FM SAVE_TEXT to upload sales text and purchase order test.
You can't record a BDC for custom controls like text editor.
MOVE V_MATNR TO tname-tdname.
MOVE 'MARA' TO TNAME-TDOBJECT.
MOVE 'SL1 TO TNAME-TDID.
MOVE SY-LANGU TO TNAME-TDSPRAS.
APPEND TNAME
TXTLINES-TDFORMAT = '*'.
TXTLINES-TDLINE = 'This is your purchase order text'.
APPEND TXTLINES.
CLEAR TXTLINES.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = TNAME
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
*OWNER_SPECIFIED = ' '
*LOCAL_CAT = ' '
IMPORTING
*FUNCTION =
NEWHEADER = TNAME
TABLES
LINES = TXTLINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Maybe you are looking for
-
How to make a copy of a business area in same EUL
Hi, We have a standard BIS eul (which is provided by Oracle as a part of Business Intelligence pack). This EUL is powerful and very useful. I want to leverage this EUL as well as do some customization to this eul as per the client's requirements. The
-
Hi All, Unfortunately one of my collegue deleted the primary server computer account. But with a good back up i have recovered the primary site server back to normal condition. Since then i got some errors throwing up from the console. Please help 1.
-
The Ads at the bottom of Contact screen
I've tried everything. I've unchecked or checked every privacy box. I've searched for an answer. So can someone tell me why I'm still seeing the ad window? I'm a paid subscriber. Thanks in advance for any help.
-
Set by default procurement indicator to PFV
Dear Gurus, I want to set by default procurement indicator to PReq + Reser for WBS element. So when I will enter any material then system will create PR with Q and reservation number. Please guide Keshav Pawar
-
Problème avec Photoshop CS5 et Clavier Apple
Bonjour, J'ai un soucis depuis l'aquisition d'un imac 2011. J'ai installé ma CS5 (Version master) qui fonctionner à merveille jusqu'ici (utilisation sur PC et Mac avec clavier filaire). Lors de l'utilisation de PS avec l'imac 2011 et le clavier wirel