How to change style property in runtime
Hallo. I have this style tag in my main application:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
@font-face {
src: url("../caratteri/MyriadPro-Bold.otf");
fontFamily: "MyriadPro-Bold";
embedAsCFF: true;
.mioStileMyriadProBold {
fontFamily:MyriadPro-Bold;
fontLookup: embeddedCFF;
</fx:Style>
It works good but i wish to change the fontFamily while the program is running. How can i do that?
Thx a lot.
Max
Hallo. Thx for the answer. I would like to know if your solution is working always. I mean, in my example i showed you that i have this:
.mioStileMyriadProBold {
fontFamily:MyriadPro-Bold;
fontLookup: embeddedCFF;
But what if i have 2 custom styles??.. How can i change one or another specifically ??
I hope you understand what i mean.
Max
Similar Messages
-
How to change a property programmatically
Hello,
How can I change a property during runtime? Like, change the label of a button, or change the header text of a table.
regards,
arnoldHi Arnold,
You need to get an instance of the UI element at runtime. You can get this only in WDDoModifyView
IWDLabel lab = (IWDLabel)view.getElement(<labelID>);
lab.set<property>(<value>);
Warm Regards,
Murtuza -
How to change autocommit property in Oracle 8.1.6 server
Can anybody tell me how to change autocommit property in Oracle 8.1.6 server?
Thanks in advance.
Matthew
nullHi,
SET AUTOCOMMIT OFF
thanks,
Boby Jose Thekkanath,
Consultant,CWO,
NSW-AUS. -
How to change Owner property in KM
Hi masters.
I want to know how to change cm_owner property of a document that i am uploading with dynpro java. I have written a code to add new properties for document but i couldn't change the Owner of document. Here is my code for adding a new property :
if (wdContext.currentUserElement().getId() != null) {
IPropertyName propOwner =
new PropertyName(
PropertyName.createDisplayname().getNamespace(),
"Owner");
prop =
new MutableProperty(
propOwner,
wdContext.currentUserElement().getId());
propMap.put(prop);
This code is adding a new Owner property for document. So that after upload, i see 2 Owner fields in Misc. tab.
Thanks for replies.Hello,
Do check this blog out:
[Dynamic properties setting in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf]
Also read : [Storing and retrieving properties in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ab288d09-0801-0010-b183-b8254ed4793f]
[Developing a property filter in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ee3a57-0701-0010-3e9a-ddae7e4e0521]
Regards,
Shailesh
Edited by: Shailesh Kumar Nagar on Feb 19, 2010 8:16 AM -
How to change style (back-ground color) in selectBooleanCheckbox?
Hi
I've got selectBooleanCheckbox:
af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
label="Label 1" />
I can change background color of text="selectBooleanCheckbox 1" and label="Label 1"? just by adding inlineStyle="background-color:rgb(255,255,66)"
SO, How can I change background color in space BETWEEN text and label (just at the checkBox)?Hi,
the inline style property only styled the DOM node of the component. ADF Faces components are complex DHTML components that you style by writing a custom skin (see developer guide for skinning). If you don't want to write a custom skin, use Firebug to determine the style class generated for this component
Frank -
How to change Text2D color at runtime...
Hi,
In fact I used Text3D and I was able to change color, text, font, style at runtime. I don't know if you guys have the same problem but Text3D doesn't render correctly (some letters are hidden by others) (i'm on a SGI Irix).
So I decided to go back to Text2D but I can't find how to change the color, text, font and style at runtime.
I've a Shape3D instance myShape = new Text2D(someParams);
When I want to change it I tried myShape = new Text2D(otherParams);
But nothing happened...
I've tried detaching the shape, modify it, and re-add it to the graph, but it is still the same after adding it...
If someone could tell me how I can do that it would be a great help.
thank you
Fredhttp://forum.java.sun.com/thread.jsp?forum=21&thread=356750
-
How to change report displayname at runtime when run from the report server?
hi all,
with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
string po = e.Parameters["Order"].Values[0];
this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
thanks for any tips,
sffHi sherifffruitfly2,
According to your description, you want to change the display name of report in Report Manager. Right?
In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
It will show the report name with execution time when we run the report:
Reference:
Built-in Collections in Expressions (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
How to change TLFTextField direction at runtime?
I create a TLFTextField object at design time and need to change its direction at runtime, how this could be possible?
the following code did not work and simply ignored:
var myText:TLFTextField = MyText;
myText.textFlow.direction = "rtl";
What should I do?Yes, it work and I was know it, for this reason I emphasis that I created control at "DESIGN time", I want to change the direction of controls that created at design time not creating at runtime with var tf:TLFTextField = new TLFTextField();
To reproduce the problem create TLFText on your scene with text tool and name it "MyText" then
var tf:TLFTextField = MyText; // instead new TLFTextField();
..rest of your code
now you will see that nothing will be change! I struggled many hours but still no success.
Do you have any idea in this case? -
Hello,
I m getting data from DWR like below, but i want to change style of those data, may be bold...Is there a way to change styles of field1 and field2???
DWRUtil.setValue("one",field1);
DWRUtil.setValue("two",field2);
...This should help you
[http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Font.html] -
How to change the tablename at runtime?
Hi
IN _10gR2_
I would like to know if there is a way to change the tablename at runtime - other than using dynamic sql.
These table have similar structure except the tablename iteself.
For ex. depending on where we get a request we want to look/update different table:
if request_from x then
select * from table where ....
or it could be update or insert statement here
end if;
if request from y then
select * from table_y where ....
or it could be update or insert statement here
end if;
Thanksuser565033 wrote:
sorry, this is not an optionWell the best you'll get is something like...
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 3000 20
7839 KING PRESIDENT 17-NOV-1981 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 950 30
7902 FORD ANALYST 7566 03-DEC-1981 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 1300 10
14 rows selected.
SQL> select * from emp2;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 0 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 0 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 0 500 30
7566 JONES MANAGER 7839 02-APR-1981 0 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 0 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 0 30
7782 CLARK MANAGER 7839 09-JUN-1981 0 10
7788 SCOTT ANALYST 7566 19-APR-1987 0 20
7839 KING PRESIDENT 17-NOV-1981 0 10
7844 TURNER SALESMAN 7698 08-SEP-1981 0 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 0 20
7900 JAMES CLERK 7698 03-DEC-1981 0 30
7902 FORD ANALYST 7566 03-DEC-1981 0 20
7934 MILLER CLERK 7782 23-JAN-1982 0 10
14 rows selected.
SQL> with req as (select &required_table as req from dual)
2 --
3 select * from emp, req where req = 1 union all
4 select * from emp2, req where req = 2
5 /
Enter value for required_table: 1
old 1: with req as (select &required_table as req from dual)
new 1: with req as (select 1 as req from dual)
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO REQ
7369 SMITH CLERK 7902 17-DEC-1980 800 20 1
7499 ALLEN SALESMAN 7698 20-FEB-1981 1600 300 30 1
7521 WARD SALESMAN 7698 22-FEB-1981 1250 500 30 1
7566 JONES MANAGER 7839 02-APR-1981 2975 20 1
7654 MARTIN SALESMAN 7698 28-SEP-1981 1250 1400 30 1
7698 BLAKE MANAGER 7839 01-MAY-1981 2850 30 1
7782 CLARK MANAGER 7839 09-JUN-1981 2450 10 1
7788 SCOTT ANALYST 7566 19-APR-1987 3000 20 1
7839 KING PRESIDENT 17-NOV-1981 5000 10 1
7844 TURNER SALESMAN 7698 08-SEP-1981 1500 0 30 1
7876 ADAMS CLERK 7788 23-MAY-1987 1100 20 1
7900 JAMES CLERK 7698 03-DEC-1981 950 30 1
7902 FORD ANALYST 7566 03-DEC-1981 3000 20 1
7934 MILLER CLERK 7782 23-JAN-1982 1300 10 1
14 rows selected.
SQL> /
Enter value for required_table: 2
old 1: with req as (select &required_table as req from dual)
new 1: with req as (select 2 as req from dual)
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO REQ
7369 SMITH CLERK 7902 17-DEC-1980 0 20 2
7499 ALLEN SALESMAN 7698 20-FEB-1981 0 300 30 2
7521 WARD SALESMAN 7698 22-FEB-1981 0 500 30 2
7566 JONES MANAGER 7839 02-APR-1981 0 20 2
7654 MARTIN SALESMAN 7698 28-SEP-1981 0 1400 30 2
7698 BLAKE MANAGER 7839 01-MAY-1981 0 30 2
7782 CLARK MANAGER 7839 09-JUN-1981 0 10 2
7788 SCOTT ANALYST 7566 19-APR-1987 0 20 2
7839 KING PRESIDENT 17-NOV-1981 0 10 2
7844 TURNER SALESMAN 7698 08-SEP-1981 0 0 30 2
7876 ADAMS CLERK 7788 23-MAY-1987 0 20 2
7900 JAMES CLERK 7698 03-DEC-1981 0 30 2
7902 FORD ANALYST 7566 03-DEC-1981 0 20 2
7934 MILLER CLERK 7782 23-JAN-1982 0 10 2
14 rows selected.
SQL>Otherwise you'll have to perhaps use a few "alter table rename..." ddl's to switch the table names around prior to your query. -
OMBPlus: how to change Prefix property (dimension)
Is it possible to change (or set during creating) Prefix property of dimension through OMB Plus?
I think that this can be done with command
OMBALTER DIMENSION_TABLE '<dimname>' SET PROPERTIES (<propname>) VALUES ('myval');
But what is the name for Prefix dimension property?
Maybe it is possible change this property only through GUI OWB?
OlegOleg,
Unfortunately, you cannot, so I filed bug 3519964.
However, do note that the main reason for us asking a prefix is the ability for us to prefix key names being created automatically. You can always rename those key names afterwards to include the prefix you want/need.
Thanks,
Mark. -
How to change a property of all items of the specific type?
Hello,
this should be fairly simple:
tableA ( id, Flag)
There are 2 pages :
Page 1 : allows user to select P1_ID based on the result set from TableA
Page 2 : there is a bunch of items on this page - text fields, text areas, radio and check boxes, reports etc. There values in those items are based on the following logic :
select <bunch of columns correspond to the page items >
from view1, view2 ...
where <where clause>
and
some_column =:P1_ID
Question:
I need to disallow users to change values in the items of text type on the page 2, if value of P1_ID ( TableA.id) has a value in Flag.
How this can be done ?
The ideal solution would be if i can have a routine that would not require hard coding items names.
Thank you
Andrew
Edited by: andrey on Jan 31, 2009 12:51 PM
Edited by: andrey on Jan 31, 2009 12:52 PMAndrew:
The property that you set is the 'Read Only' property for the page-item. This is done from the 'Edit Page Item' page
The conditions under which this property evaluates to true can be determined dynamically (no hard coding). Take a look at the list of possible Conidtion Types. So, if u want the condition to be table-driven you could choose the 'Exists (SQL query returns at least one row)' and the SQL query could be something like
' select 1 from <you_table> where id=:p1_id '
Varad -
How to change style of add item screen
I have created a pagegroup with a specific style, however whenever a user attemps to add an item or a portlet it defaults the standard portal colour scheme, how can I get portal to display the add item, add portlet screen in my default colour.
Orlando -
You may want to contact support to try to get some documentation. There should be a script called <OracleInfrastructureHome>/portal/admin/plsql/wwc/uiwizset.sql
If you open this file in a text editor it should be fairly straight forward to change the styles to the colors and fonts you wish, then execute this sql file in sqlplus.
Hope this helps,
Candace -
To change view property during runtime
Hi,
I have a scenario where we have 2 views embedded in a window.
First View's property is set to True and second View's property is set to false.
We have a button say "show view" in first view and now we want to change the second view's property to True on click of that button i.e we want to change the view proerties to True during runtime.
We are unabelt o achieve this thruogh plugs are first view is in another DC and second view is in other DC.
Is there any other way to through which we can achieve this?
Any help is this regard is highly appreciated.
Regards,
Richa SinhaHi,
I got your requirement,
Yes if you want navigate back to source view, the problem is you cannot add the the Comp2 again in Comp1 as used comp. This will give cyclic dependancy error.
Try like this.
In Comp2, create an additional view like NavigationView (for example).
In NavigationView create two ViewContainerUIElements (ViewContainerUIElement1 & ViewContainerUIElement2).
Embed this NavigationView into Comp2Window and remove View1's Inteface view & View2 from this window. Change the NavigationView property to true.
And go the Comp2Window Navigation Modeler, embed View1's Inteface view in ViewContainerUIElement1 & View2 in ViewContainerUIElement2.
Now create two context attributes View1Visibility & View2Visibilty in NavigationView and modify the type property to WDVisibility.
Bind these two attributes to corresponding ViewContainerUI elements.
Now in Navigation view, You can create one button and in that button action you can control the visibility of these views.
Hope this info helps. If you need more clarification or info please let me know.
Regards,
Charan -
How to change subscriptionDurability status at runtime.
I have written a MDB which is Durable at startup but I want to change it to 'NonDurable' at runtime on receiving a particular message. Please advise how at runtime I can change the settings of the MDB.
My MDB class file is as follows:
package test;
import javax.ejb.*;
import javax.jms.*;
@MessageDriven(
mappedName="topic01",
activationConfig={
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
@ActivationConfigProperty(propertyName="subscriptionDurability", propertyValue="Durable")})
public class FirstDurableMDB implements MessageListener {
public void onMessage(Message message) {
TextMessage tm = (TextMessage)message;
try {
String str = tm.getText();
if(str.equals("NonDurable")){
PLEASE TELL ME WHAT I SHOULD WRITE HERE
} catch (JMSException e) {
e.printStackTrace();
}The TopicSession has an unsubscribe(String subscriptionName) method - http://download.oracle.com/javaee/1.4/api/javax/jms/TopicSession.html#unsubscribe(java.lang.String), but then you will have to rely on plain MessageListeners rather than MDBs.
Maybe you are looking for
-
Hi Everyone I'm in the process of upgrading our cucm software from 8.6.2 to 9.1.1 and I can't find the software on the website. the software that I'm looking for is CUCM,UCCX,CUC,CUPS, and CUEAC. If anyone can point me to the download links I would g
-
ITunes unknown error (-45054)
I just upgraded to iTunes 11.1.4 on my iMac and now I receive this error message. When I click on OK iTunes closes so I can't interact with it at all. Any ideas?
-
How do I add place names to events in iPhoto 11
How do I add place names to events iPhoto 11 version 9.2.1, I can do a single picture at a time but when you have a 100 or so it's going to get tedius. I have found messages via google that tell me how to do it but it dos'nt work. I select the event
-
Can use the users stored in DB access worklist?
In my project,the user info is stored in DB. According the document of soa 11g, I add SQLAuthenticationProvider into weblogic, and top this provider. but I use the DB user to access worklist, error occurred. Error info is : ORABPEL-30501 验证用户时出错. 验证和
-
How to identify the ID of a particular object in personalization?
Hello, I am getting into deeply in the personalization of the page: /oracle/apps/pos/supplier/webui/ByrAddCntctPG I have to implement some actions on check box "Create User Account for this Contact". How can I do it? How can I identify the ID of the