Item label font
How to change the Select List / Texfield label font in Apex ?
Yogesh
Hi,
I am not familiar with the Cascading Style Sheet (css) but I think this is all controlled by this css of each theme. You will find the .css files under each of the theme in \apex\images\themes\.
Hope this gives some direction at least.
Regards,
Edward
Similar Messages
-
App. Express -- Change font size in the item label.
I would like to size the item label so I did this and it did not work
in the label I put <span style="font-size:12px;">ITEM 1</span> and
<span style="font-weight:bold;">ITEM 1</span>
What wrong?Hello,
The basic “trick” here is to duplicate the proper label template (you can of course change the original label template, but that’s less advisable) in order to add an ID to the text/link part.
In my example, the template is base on the “Optional Label with Help” template, and the “Before Label” field contains the following:
<label for="#CURRENT_ITEM_NAME#" tabindex="999"><a class="t2OptionalwithHelp" id="L_#CURRENT_ITEM_NAME#" href="javascript:popupFieldHelp('#CURRENT_ITEM_ID#','&SESSION.')" tabindex="999">In order to maintain ID uniqueness, the new ID just adds “L_” to the item name.
Now I have direct access to the text/link, and I can manipulate it using JavaScript. In the example, I added the following to the region footer:
<script type="text/javascript">
$x('L_P160_ITEM2').style.fontSize = '20px';
$x('L_P160_ITEM3').style.fontSize = '30px';
$x('L_P160_ITEM3').style.color = 'green';
</script>Regards,
Arie.
Hi Carl,
As usual I was busy typing and didn’t see your reply. I agree that a specific example would be the best and easiest way to help.
Message was edited by:
ageller1 -
How to change the font of Item label ?
SanjayHi,
If you need to set different font for item label then->
Click the item ->attribute->Label->
<div style=font-family:calibri;>Label Name</div>Inside " double quote use this *font-family:calibri;*
You can also try inside template for all the label in the page.
Thanks,
Loga -
I am adding items to the sidebar region. The item labels are showing as black. I need to have them show as white. Is there something I can change in the item attributes to do this or does this need to be done in the template?
Hello,
style="color:#f00;font-weight:bold;"Since it sounds like you are just learning some CSS I suggest you spend an hour or two reading this site [http://www.w3schools.com/css/] it will save you countless hours later.
Regards,
Carl
blog : [http://carlback.blogspot.com/]
apex examples : [http://apex.oracle.com/pls/otn/f?p=11933:5] -
Apex Page Input Item Label Conditional Style at run time
Hi,
Apex version 4.2.1.00.08
We have an issue after migrating to apex 4.2.1. We have a select list and use another couple of dummy items to be used as its label instead of giving the text value to the LABEL control. Only one of the dummy items is shown as a label for the select list conditionally based on another value. It was working fine with the earlier versions upto 4.1, but with the introduction of grid in 4.2, its now displaying the select list on a new row (ie the lable in one row and the select list on the next row).
However, we really would like to solve this by having a way to display the label of the select list either in "required format style" or as an "optional style". The display style should be determined only at runtime.
Example. Say P100_MY_SELECT_LIST is the select list
The label for this item is "My Select List Label"
I have another dummy item P100_DUMMY
if P100_dummy = 1 then the label "My Select List Label" should be displayed in red and with an * *My Select List LabelOtherwise it should be in black and without * My Select List LabelPlease help how to do this.
Thanks in advance.
Regards,
NatarajanWell, I deviated with the various other things, and finally needed to get it fixed now. I find my own solution by having a Label Template which creates an ID for every label of the input item and calling a couple of javascript functions thro dynamic action.
1) Create a label template "FormFieldDynamic" as follows
In the template definition "Before Label"
<img src="#IMAGE_PREFIX#requiredicon_status2.gif" alt="Required Field Icon" /><label for="#CURRENT_ITEM_NAME#" id="#CURRENT_ITEM_NAME#_LABEL" tabindex="999" class="itemLabel">in the "after label"
</label>Note, I am having the image for the * always with the laebl and creating an ID for the label with id="#CURRENT_ITEM_NAME#_LABEL" .
I have created a couple of javascript function to show the label dynamically as required or optional.
function setLabelRqd(item) {
var v = item+'_LABEL';
var pid = document.getElementById(v);
if (!((pid===null)||(pid===undefined))){
pid.style.color = "red";
$('#'+v).prev().show();
function setLabelOpt(item) {
var v = item+'_LABEL';
var pid = document.getElementById(v);
if (!((pid===null)||(pid===undefined))){
pid.style.color = "black";
$('#'+v).prev().hide();
}Use the template if the input item (label) is dynamically set as Required or Optional at runtime based on a value of another item.
How to:
1. Select the template FormFieldDynamic for the input item.
2. Create a dynamic action triggering on the change event of the page item which holds the conditional value to set the input item label as required or as optional.
Under the When Section
a. Event => Change
b. Selection Type => Item(s)
c. Item(s) => PXXX_ITEM_NAME (The item that holds the conditional value to set the label for the input item
d. Condition => equal to
e. Value => Enter the value for which the label needs to be displayed in Required format.
f. Set True Action
i. Action => Execute Javascript Code (Identification)
ii. Fire on Page Load => checked (Execution Option)
iii. Code => setLabelRqd(‘PXXX_ITEM_NAME’); (Settings) /*Call the javascript function to set the label as required*/
iv. Selection Type => Item(s) (Affected Elements)
v. Item(s) => PXXX_INPUT_ITEM1[,PXXX_INPUT_ITEM2]…
g. Set False Action
i. Action => Execute Javascript Code (Identification)
ii. Fire on Page Load => checked (Execution Option)
iii. Code => setLabelOpt(‘PXXX_ITEM_NAME’); (Settings) /*Call the javascript function to set the label as optional*/
iv. Selection Type => Item(s) (Affected Elements)
v. Item(s) => PXXX_INPUT_ITEM1[,PXXX_INPUT_ITEM2]…It finally works for me :) and hope this will be helpful to others too. I will greatly appreciate anyone to mention it here if this helps for him.
Thanks,
Natarajan -
Setting colors for item labels in JFreeChart (WaferMapRenderer)
Hi,
first of all, sorry for posting a JFreeChart related posting on this forum, but I didn't get a solution right now (I even didn't find anything useful on the JFreeChart website/forum). Here's my question...
I'm trying to set the color for item labels in the legend but with no success.
Here's a code example:
final JFreeChart chart = ChartFactory.createWaferMapChart(
"Wafer Map Demo", // title
dataset, // wafermapdataset
PlotOrientation.VERTICAL, // vertical = notchdown
true, // legend
true, // tooltips
false
WaferMapPlot plot = (WaferMapPlot) chart.getPlot();
WaferMapRenderer renderer = new WaferMapRenderer();
renderer.setSeriesItemLabelPaint(0, Color.red);
renderer.setSeriesItemLabelPaint(1, Color.blue);
plot.setRenderer(renderer);The default behavior of the WaferMapRenderer is also strange because the item label as well as the item marker is painted black so you cannot distinguish different fields of the wafer map. Is this a bug or am I doing something wrong (or missing somehting)?
Any help would be greatly appreciated.
Thanks and best regards,
- StephanYour folder action script doesn't work because of one simple error:
set label index of every item of entire contents of processFolder to 7
Nowhere in your script is 'processFolder' defined, so AppleScript has no idea what you're trying to do.
Given that you (correctly) iterate through added_items, the correct format would be:
on adding folder items to this_folder after receiving added_items
repeat with item_ in added_items
tell application "Finder"
set label index of item_ to 7
end tell
end repeat
end adding folder items to
In other words, this changes the label index of each item just added.
That should work provided you're dropping files into this folder. If you're dropping folders then this would set the label index of the folder itself, but not necessarily the items within that folder. For that you'd need to add a check to see if item_ was a folder and add code to handle folders.
Also note that this kind of folder action will only work on the folder itself - that is, if you have folder A that contains subfolder B, then dropping a file into subfolder B won't trigger the script and won't change that item's label. To do that you'd have to attach your folder action to subfolder B. -
Problem with Item Labels in ORacle 10g
Hi,
We have unchecked the item labels in oracle discoverer 10g. when we create the portlet(after moved server from 10.1.0.2 to 10.1.2), it showing item labels for the discoverer report.
we dont want item labels to be displayed in portlets.
Can one any tell us why this occurs?
Thanks in advance.Hello,
We have unchecked Item Labels (not to display the column names in the cross tab) in Discoverer plus (Tools ----> Options -----> Sheet -----> Show Item Labels).
And created the discoverer worksheet portlet in Oracle Portal with Options to display the cross tab.
The Item Labels are displaying in this discoverer worksheet portlet.
We donot want to display the Item Labels.
How can i achieve this?
Thanks, -
How to add one new tab at item label in me21n
hi experts,
i am very new in badi .can any one please tell me how to add
one tab in me21n at item label. i already checked sample code for
badi me_gui_po_cust. i create one implementation and write same code.
this code is coming in debugging mode but cant see that tab while executing
me21n.
please help me out.
thanks in advance
manasiHi Manasi,
acording to me you are on the right path.Some help
1.ME_GUI_PO_CUST.
For Creating Customer own Screen - Purchase Order..
Details :
Go to the sample code of this BADI.
For this create a Function group with the screen that u want in PO.
In the First method u want to append the screen . There is one parameter im_element.
In this parameter u can mention that in which part u want the screen .Header/Item.
2. ME_PROCESS_PO_CUST
In this BADI u can Check the Complete PO at various Level.
ie Header Level ,Item Level, At the time of Save, Post .
Now Create a Include in your Function group and paste the below code.
DATA: call_subscreen TYPE sy-dynnr, "#EC NEEDED
call_prog TYPE sy-repid, "#EC NEEDED
call_view TYPE REF TO cl_screen_view_mm, "#EC NEEDED
call_view_stack TYPE REF TO cl_screen_view_mm OCCURS 0, "#EC NEEDED
global_framework TYPE REF TO cl_framework_mm, "#EC NEEDED
global_help_view TYPE REF TO cl_screen_view_mm, "#EC NEEDED
global_help_prog TYPE sy-repid. "#EC NEEDED
FORM SET_SUBSCREEN_AND_PROG *
--> DYNNR *
--> PROG *
--> VIEW *
--> TO *
--> CL_SCREEN_VIEW_MM *
FORM set_subscreen_and_prog USING dynnr TYPE sy-dynnr
prog TYPE sy-repid
view TYPE REF TO cl_screen_view_mm.
call_subscreen = dynnr.
call_prog = prog.
call_view = view.
ENDFORM. "set_subscreen_and_prog
Hope to solve ur probs.....
Regards
Renu -
i am in the final stages of making an iphone app in xcode. i am now working on changing the font of each of the labels in my app. i have gone to interface builder and selected each label. then, in the inspector, i changed the font to the one i wanted. however, the change doesn't show in either interface builder nor when i run it. the font i picked only shows when i double tap the label in interface builder and highlight all of the text.
if anyone knows why this could be happening and how to fix it, i would be ever so greatful.
thanks in advance!Try to change the label font style programmatically using the statement
"myLabel.font = [UIFont fontWithName:@"Zapfino" size: 14.0];"
may it works...... -
Problem in displaying text inside the item label - JFREECHART
Hi All,
I dont know whether this is the right place or not to post the queries related to jfreechart here .
I am facing a problem in displaying the text inside the item label in jfreeChart. I am trying to print the text in 2 lines one below the other at the top of each bar in waterfall chart.
Please find the code below in next post. The problem i am facing is it is neglecting the new line character . If any one knows how to display the text one below the other please help me out .
Thanks in advance .
Regards,
Diwi am facing the problem in pasting the complete code as its exceeds the message text limitiation, please find the link below for the code .
http://www.java-forums.org/java-2d/12087-problem-displaying-text-inside-item-label-jfreechart.html#post36648
Early response will be appreciated . Thanks in advance
Regards,
Diw
Edited by: Diw on Sep 30, 2008 11:15 AM
Edited by: Diw on Sep 30, 2008 11:16 AM -
Change item Label based on Another item's value
Hi guys,
I need to set an item label (A) based on the value of another item (B). I did the following:
I Created a dynamic action.
When B changes:
1- submit the value of B
2- Refresh item A
The label of the item A is : myitem &B.
Any ideas ????
Best Regards,
FatehFateh wrote:
Ok... Thanks a lot... but before closing the thread and for better understanding.
I put this code on Execute when Page Loads:
$("#P1_A").change(function(){
if($v(this)=="Rent"){
$('#mylabel > label > span').text('Is it for Sale also');
}else{
$('#mylabel > label > span').text('Is it for Rent also');
}However, the label does not change. Any ideas why this is not working????
Regards,
Fateh
$v(this)
you are mixing jquery and apex API, it won't work
and missing *});* at the end, and when adding to the page load you should wrap them in $(document).ready( code here.... });
$(document).ready(function () {
$("#P1_A").change(function () {
if ($(this).val() == "Rent") {
$('#mylabel > label > span').text('Is it for Sale also');
} else {
$('#mylabel > label > span').text('Is it for Rent also');
}); -
How do I refer to a page item label? I want to hide it (along with its associated page item) by using html_HideElement.
Thanks,
ChrisChris,
You know, it's never too early to start using jQuery. If you put an example what you're trying to do on apex.oracle.com, provide the workspace name, and valid credentials, I'll jump into the application and show you how to do this.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen -
I am using a combo box as a select list for text serial commands. I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box. so for example the label "engineering" has the value "MDE" in the combo box items list. when the Vi starts it needs to read the current value MDE, MDN, or MDS and then i want it to display on the front panel the item text corresponding to that command value.
To do this i have tried to read the serial command, ie MDS and then wire that to a "value" property of a property node of the combo-box, but instead of displaying the corresponding item label, "Scan", it displays the value "MDS" on the front panel instead. i want the front panel to use the label text when choosing and displaying but the block diagram to use the serial commands. Can this be done with a combo box? I'm trying to use a combo box so i can keep it all text and avoid having to build a case statement to convert enums or rings from a numerical value to the text command.
The correct text value is wired to the value property and it does exist in the combo-box. I have unchecked "values match items" and selected to not allow undefined values.Don't use the value property node. Use the Text.Text property node. When creating the property node, select Text, then in the next pop-up box, select Text.
- tbob
Inventor of the WORM Global -
Can the Ring Properties/Edit Items/Labels be populated by array values?
Can the Ring Properties/Edit Items/Labels be populated by array values?
I'm trying to troubleshoot an existing LabView 7.0 application at our office (this is only the beginning of my nightmare) and I'm finding that there is an array being created out of discrete Elements, which is then being indexed using the Indexed Array function, using a Ring control as the Index input.
What I'm seeing is that whoever created this "Appication" seems to require that any new 'elements' that need to be added to the array need to added in AT LEAST two locations (add the element to the array and add a label on the Edit Items tab of the Ring control used to index the array) and there may be more locations I haven't found that also needs the same information. Since I can't see any way for the array and the ring control to 'compare' the text strings, I'm assuming the array is being indexed using the 'values' from the Edit Items tab. Ths would allow different text in the Ring dropdown than is actually contained in the text of the array.
This is contrary to most of the coding practices I've learned, so I'm wondering if I could use the text strings contained in the array itself to populate Item list in the Ring control?
Later I can create an 'entry form' that would allow new parts to be added by staff that doesn't require knowledge of LabView programming. (The "Users" should NEVER have to see the underlying block diagrams/code to add or edit parts ot test parameter values.)
ThanksIn 8.2 you can do this with a property node and the "Strings [ ] Property". It accepts an array of strings. Order of strings in array sets the order in the control. Should work in 7.0 as well.
-
Programmatically change tab page label font size
Hellow Fellow LabVIEW Lovers,
I thought this subject was easy with LV2009, somehow I cannot find the property for the "tab page label font size", yes, i also looked with the "pages" ref array from the tab ref, also no luck. Could someone point me to the right place? I would really appreciate your help. Thanks.
BryanOdd,
The each tab is a page Class Generic>Page.
This snippet shows that there are no objects on the page (like the lable)
However ,Page Propertise do not include lable.font.all elements
Page Properties
Dim hasPlayer, playerversion
hasPlayer = false
playerversion = 10
Do While playerversion > 0
On Error Resume Next
hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))
If hasPlayer = true Then Exit Do
playerversion = playerversion - 1
Loop
is_FlashVersion = playerversion
is_Flash = hasPlayer
Requires: Base Package
Inherits from Generic. View the class hierarchy.
Property
Description
Colors
Gets or sets the foreground and background colors of a tab
control page. Details
Colors:BG Color
Gets or sets the background color of the tab control page. Details
Colors:FG Color
Gets or sets the foreground color of the tab control page. Details
Controls on Page[]
Returns an array of references to the controls and indicators
on a page. The order in which you place the objects on the page determines the
index of the object in the array. For example, if the first object you place on
the page is a numeric control, the index of the numeric control in the array
returned by this property is 0. Details
Decorations on Page[]
Gets an array of references to all decorations on a tab
control page. Details
Description
Gets or sets the description of a tab control page. Details
Independent Label
Makes the tab control page caption independent of the page
label. Details
Objects on Page[]
Gets an array of references to all controls, indicators, and
decorations on a page. Details
Page Enabled State
Gets or sets the state of a tab control page to enabled,
disabled, or disabled and grayed. Details
Page Label
Gets the label of a tab control page. Details
Page Visible
Shows or hides individual pages of a tab control. Details
Tab Caption
Gets or sets the text of a caption on a tab control page. Details
Tip Strip
Gets or sets the tip strip of a tab control page. Details
Moreover, I can select a tab lable on the FP, change its font and EACH tab lable changes to the SAME font and color.
Must be some serious MAGIC in the background similar to how NI made Latching Bools.
Champions?
Jeff
Maybe you are looking for
-
Executing a procedure in ADF model
Dear All, I have created a new fusion web application in ADF, in that i have created a custom entity class that overrides doDML method. This is because i have to perform the insert, update and delete via stored procedure. But the problem is that i am
-
Autimatic trigger of packaging material in a sales order
Hi, I am trying to understand client SAP system.When I try to create a Sales Order with one line item (material type = FERT) the system automatically triggers a second line item (material type = VERP). If anybody has come across this kind of requirem
-
J2EE add-in on ABAP system (ECC 5.0)
HI, How to install J2EE Add-in on ABAP system (ECC 5.0). I have installed ABAP stack on ECC 5.0. Now i want to add Java stack. Can any one help me how to add java stack on an existing abap system. are there any pre-requsites to be followed. Regards,
-
Is there any way to set a playlist as an alarm using iTunes? I think it would be great to have that as an option. If it's not an option, who should I recommend my idea to? I want to wake up to my favorite songs in the morning, but I don't know how to
-
Transaction FD02 / BP update unregistered
updates via FD02 are not visible from the BP transaction (but changes are visible via BP share FD02)