Chnage Itemrenderer property dynamically
I am creating a simple image album. I use List control to display images. My custom Item Renderer has one Image control and label control. I like to increase and decrease Image control with the help of a HSlider control which I have placed in the panel. It should change the size of the Image when the user tracks the slider control. This is my requirement. But I am not clean how to implement this. Can anyone give some hints?
Thanks for your answer
Science I am not clear. Because Slider control and List have placed in the panel container. How can I fire event or pass vale to Item Render when user selects Hslider? I need a way to pass value to my Custom Item Render (It can event or function call) from the HSlider control.
Similar Messages
-
Changing the Alert style Property Dynamically
hI..
Is there any way to change the Alert Style Property Dynamically.... if there please tell me its urgent
thnks in advance
Regards
Yashavanthyes, u can change properties dynamically through set_alert_property and set_alert_button_property
here is an example
DECLARE
err_txt VARCHAR2(80) := Error_Text;
al_id Alert;
al_button Number;
BEGIN
al_id := Find_Alert('My_Error_Alert');
Set_Alert_Property(al_id, alert_message_text, err_txt );
al_button := Show_Alert( al_id );
END; -
How to set FileAdapter Append property Dynamically - SOA 11.1.1.3
Hi,
At the manual (http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm) I found that I can use:
Append Mode
The Oracle File and FTP Adapters enable you to configure outbound interactions that append to an existing file. The Append to Existing File option allows the outbound invoke to write to the same file. There are two ways in which you can append to a file name:
* Statically - in the JCA file for the outbound Oracle File Adapter
* Dynamically - using the header mechanism
I need to set this dynamically, but I can't find the property that I must set, like jca.file.append....
Thank You in advance.
JPhttp://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_propertys.htm#CHDJDGFD
Append
If this property is set to true, it causes Oracle File and FTP Adapters to append to a file on outbound. If the file does not exist, then a new file is created.
The file name can either be specified in the JCA file for the outbound operation or in the jca.file.FileName header. -
Custom ItemRenderer with dynamic field associations?
Hi All,
I'm trying to create a custom itemrender control that isn't tied to a specific type of data input. I'm creating a thumbnail itemrenderer to be used with the Sparks List control:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer
xmlns:fx="
http://ns.adobe.com/mxml/2009" xmlns:s="
library://ns.adobe.com/flex/spark" xmlns:mx="
library://ns.adobe.com/flex/mx" autoDrawBackground="
true"
>
<s:layout>
<s:BasicLayout/>
</s:layout>
<mx:Image left="
5" right="
5" bottom="
25" top="
5" id="
img_thumbnail"source="
{data.image}"
/>
<s:Label
left="
5" right="
5" bottom="
5" verticalAlign="
middle" textAlign="
center" id="
lbl_label" fontWeight="
bold" fontSize="
10"text="
{data.label}"
/></s:ItemRenderer>
However, as you can see, the image source and label text properties are tied to specific fields in the data collection (image and label). I would like to provide a way to figure out what the label and icon fields are set to in the parent control, and set them accordingly in the itemrenderer. This should allow me to use the same itemrenderer with different objects, as long as they have a text and image property.
Any ideas? ThanksAfter doing some research, I found my answer:
1) The data object is the current item which the List component is populated with. You can access any properties of the object using it. (Not what I'm looking for here.)
2) You can access the label property set by the labelField or labelFunction properties of the list control in the item renderer simply using this.label. This is exactly what I was looking for. -
DataGrid.itemRenderer Property problem
Hi newbie to AS3:
I have a DataGrid built dynamically with AS3 where
I need to change the color of a certain row.
I tried the following code but Its usage is certainly wrong:
cDtgc1.itemRenderer = cDtgc1.getItemRendererFactory(false,
BackgroundComp);
BackgroundComp is a class included is the code below.
How do I use this factory? The way I have it it is not
executing
Thanks.
Texttry:
cDtgc1.itemRenderer = new ClassFactory(BackgroundComp );
for some alternatives try this:
http://weblogs.macromedia.com/pent/archives/2007/02/coloring_the_ba.html
ATTA -
Inspector Property: Dynamic tags
Hi,
I am working on an extension for Dreamweaver, currently on an
Inspector. So what I understand is, that if you use the following
tag:
<!-- tag:mytag,priority:9,selection:exact,vline,hline
-->
It will recognize any tags that look like <mytag>, and
the js function will be called. But what if I have dynamic tags,
e.g. take this: <%email_a%> <%email_b%>
So the word before the underline "email" tells me, what kind
of Property I have, and a or b are defining an array of values,
that are going to be saved in an xml file.
What I am looking for is some sort of function that will
allow me to use regular expression to decide which Property
inspector should be called.
(everthing with %email_ in the beginning should call the
email inspector, everthing with %address_ the address inspector
etc.)
Thanks for any help in advance, I hope its possible to this.
Regards
David"nyDavid" <[email protected]> wrote in
message
news:gd7hpa$jmi$[email protected]..
> What I am looking for is some sort of function that will
allow me to use
> regular expression to decide which Property inspector
should be called.
> (everthing with %email_ in the beginning should call the
email inspector,
> everthing with %address_ the address inspector etc.)
>
> Thanks for any help in advance, I hope its possible to
this.
Have you checked the docs for canInspectSelection()?
Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com -
Using itemRenderer in Dynamic Grid
Hi,
I have grid with takes in a ArrayCollection as dataProvider.
Also the columns of the datagrid is defined from the action script.
At the mxml level, I have only the DataGrid tag. Now my data
contains some severity levels - critical, moderate and ok. Based on
what comes in, I want an itemRenderer which will print a different
image for each severity. i.e. if the value is critial, i want a red
color icon to be shown in the cell.
I wish to do this with actionscript itself. I am stuck at the
itemRenderer part. I checked out the examples. All of them work
with mxml tags for itemRenderer using images. I want the renderer
to be through actionscript. Has anyone done this? Can anybody help
me with this?
Cheers,
UdayHi Uday,
Were you ever able to accomplish this? I'm looking to do
something almost exactly the same, where I have data that provides
one of two values, and I want to translate those values into one of
two icons.
If you were able to do this, I'd appreciate any explanatory
help. Or if someone else out there has an answer to his original
post, I'm sure it would be appreciated by more than just myself.
Thanks,
Josh -
Digital Signature Turns Invalid while setting the Property Dynamically to an Input Field
I have an Input box that turns mandatory only if a check box is clicked.
The Script goes Something Like This;
if(chkbox.rawValue === 1){
inputField.mandatory = "error";
inputField.mandatoryMessage = "This Field cannot be left Blank";
inputField.presence = "visible";
} else {
inputField.mandatory = "disabled";
inputField.mandatoryMessage = "";
inputField.presence = "hidden";
I am working with Assembler Service and the Signature field is placed in the cover page after which this form is attached.
Any clue of why the property change Invalidates the Signature?
Note: The stand alone form where the Check box and Input field is present doesnot have a preSign event as this form doesnot contain a Signature field unless its merged using assembler. This Script is added to the Click Event of the Checkbox.
Cheers
Mahesh Krishnanweblogic.common.resourcepool.ResourceDisabledException: Pool mds-soa is Suspended, cannot allocate resources to applications ..Check server logs to find out why mds-soa is suspended. Make sure that datasource mds-soa is up and running on SOA servrs before deploying an application.
Regards,
Anuj -
Set Tab Page property - Label property dynamically
Hi All,
I have a Tab page canvas.
My 1st tab canvas Label is "Projects".
If i entered 2 record means i need to change the Tab page label as "Projects 2".
IN which trigger , i will write a coding for that?
If i am in the Tabbed canvas , it is working .If i come to Main canvas the Tab canvas label is clearing.
Can u tell me suggestion for that.You could go with a combination of a Calculated item of type "Summary" and another calculated item of type "Formula":
Create a calculated item :BLOCK.IT_COUNT of type "summary" which counts one of the NOT NULL-items in your data-block.
Create a Program Unit liek that:
FUNCTION FK_CHANGE_COUNT
RETURN NUMBER IS
BEGIN
SET_TAB_PAGE_PROPERTY('YOUR_TAB_PAGE', LABEL, 'The Text' || :BLOCK.IT_COUNT);
RETURN 1;
END;Create a second calculated item of type "Formula", in the formula enter FK_CHANGE_COUNT.
Now, everytime the count of the block changes, the "dummy" function will be called to calculate whatever, and the function sets the Tab-Label to the desired value. -
BPS Web Application - How to change function button property dynamically
We have created BPS web application for sales force, it contains 2 button.
1. To send Workflow notification to Managers 'Request for Approval' - This would be used by sales person
2. Button for Manager to approve the Plan 'Manager Approval' - This would be used by the Manager
We are using Territory Management in CRM to determine who is the manager and sales person.
We would like to use the same Web application to be used by both sales person as well as the manager. However depending on the user ID, we need to access the Territory Management table in BW to determine whether the person logging in is Manager / Sales person. If it is a Sales Person, we need to display 'Request for Approval' button and hide 'Manager Approval' button. Similarly, if it is Manager, 'Manager Approval' button to be displayed and 'Request for Approval' button to be hidden.
Would appreciate, if any one has faced similar requirement and how to do this.
Thanks,
VJ SudharsanThanks Ananad and Srini for the suggestion. Actually I was working on the direction Anand Suggestion and make it working but I am not sure what I did is correct or not.
I have a bogus variable that checks for Manager / Sales person and brings back following code in the variable, if it is manager:
'<style> #Req_Approval_s </style>'
and I added a new text component of type HTML and code
<%=descr(VarvlSel2/value)%>
it works. Is this the correct way of doing the enhancement. Or is there a different place where we can add JavaScript.
Srini - I am using exit function, can you explain how we can I use BPS authorization to achieve this. -
Access of undefined property (dynamic text box)
Hi guys,
I have a movie clip working as a button that is disabled after click. I need to add a scoring option, so that on click it also adds to the score. When I add the scoreGame function, it says the text box is undefined. Ideas?
Here's the code:
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class DisablingButtons extends MovieClip
var labels:Array;
var thisParent:*;
var score:Number = 0;
var goalScore:Number = 8;
public function DisablingButtons()
trace("it's working!");
labels = this.currentLabels;
this.addEventListener(MouseEvent.CLICK, scoreGame);
this.addEventListener(MouseEvent.CLICK, disableButton);
this.addEventListener(MouseEvent.ROLL_OVER, over);
this.addEventListener(MouseEvent.ROLL_OUT, out);
function scoreGame(myEvent:MouseEvent):void
score++;
score1.text = String(score);
if (score == goalScore)
gotoAndStop(201);
function disableButton(event:MouseEvent):void
for (var i:int = 0; i < labels.length; i++)
if (labels[i].name == "disable")
this.gotoAndPlay("disable");
this.removeEventListener(MouseEvent.CLICK, disableButton);
this.removeEventListener(MouseEvent.ROLL_OVER, over);
this.removeEventListener(MouseEvent.ROLL_OUT, out);
function over(event:MouseEvent):void
for (var j:int = 0; j < labels.length; j++)
if (labels[j].name == "over")
this.gotoAndPlay("over");
function out(event:MouseEvent):void
for (var k:int = 0; k < labels.length; k++)
if (labels[k].name == "out")
this.gotoAndPlay("out");When you instantiate the class in your fla, you would pass the textfield to the class...
import DisablingButtons;
var btn:DisablingButtons = new DisablingButtons(score1);
addChild(btn);
And in your class file you would need to adjust it to accept the textfield such as what I show below. Just realize that I have manipulated the naming to preserve your score1 name at both ends of your code by naming the argument that the class sees differently (txt). Otherwise I would have normally used a differewnt variable name within the class than score1
package
import flash.text.TextField;
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class DisablingButtons extends MovieClip
var labels:Array;
var thisParent:*;
var score:Number = 0;
var goalScore:Number = 8;
var score1:TextField;
public function DisablingButtons(txt:TextField)
trace("it's working!");
score1 = txt;
labels = this.currentLabels;
this.addEventListener(MouseEvent.CLICK, scoreGame);
this.addEventListener(MouseEvent.CLICK, disableButton);
this.addEventListener(MouseEvent.ROLL_OVER, over);
this.addEventListener(MouseEvent.ROLL_OUT, out);
etc... -
Changing radio button property dynamically
Hi,
I decalred two blocks in selection screen named B1 and B2, each have 2 radio buttions.
B1 has radio button named B1R1 and B1R2.
B2 has radio button named B2R1 and B2R2.
If i select B1R1 then B2R1 should be selected and B2R2 should be disabled(user should not able to select).
If i select B1R2 then B2R2 should be selected and B2R1 should be disabled(user should not able to select).
Can anyone please tell me how to do this.
Thanks,
AmalHi
Try this
SELECTION-SCREEN: BEGIN OF BLOCK b1.
PARAMETERS: b1r1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ucomm1,
b1r2 RADIOBUTTON GROUP g1.
SELECTION-SCREEN: END OF BLOCK b1.
SELECTION-SCREEN: BEGIN OF BLOCK b2.
PARAMETERS: b2r1 RADIOBUTTON GROUP g2 USER-COMMAND UCOMM2 MODIF ID MD1,
b2r2 RADIOBUTTON GROUP g2 MODIF ID MD2.
SELECTION-SCREEN: END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF b1r1 = 'X'.
if screen-group1 = 'MD2'.
screen-input = 0.
endif.
ELSEIF b1r2 = 'X'.
if screen-group1 = 'MD1'.
screen-input = 0.
endif.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN.
IF b1r1 = 'X'.
b2r1 = 'X'.
b2r2 = ''.
ELSEIF b1r2 = 'X'.
b2r2 = 'X'.
b2r1 = ''.
ENDIF. -
Dynamically setting the vo attribute Update property
Hi All,
Can we set the vo attribute update property dynamically.if so please let me know how can we achieve this.
I have a read only view..But in my process request i need to set the value for that attribute based on some condition.
How can i achieve this.I cant set at bean level.only row level i need to set.
Its a dynamically created seeded vo.
Please help.
Thanks
BharatHi,
Capture the VO row and then set the value on the view attribute.
OAViewObject vo = (OAViewObject)am.findViewObject("viewinstance");
If(vo!=null)
Row row = (Row)vo.first();
row.setAttribute("Attribute Name", "Value");
Thanks,
Gaurav -
Outbound FTP adapter directory dynamic path
Hi,
I tried creating FTP adapter with logical directory names.
When I create inbound FTP adapter (get activity) and provide logical directory path, it creates activation agent and on deployment it works fine. However when I try to create FTP adapter for outbound FTP adapter (put activity) and provide logical directory path, it could not create activation agent for the same….When I add activation agent manually, I am able to compile the service locally on J Developer, but could not deploy the service into SOA Instance.
Please update me, if anybody has made outbound FTP adapter directory dynamic path.
Best Regards,
Dhaval KhamarDipal's note is correct for setting the output directroy dynamically, but I just want to clarify the steps you are taking.
You say that you create the activation agent manually for the put FTP adatper. This is not required, the activation agent is used to poll locations to invoke a process. The put activity is invoked from the BPEL process and not required.
If you are using logical directorys you partner link should look like this in the bpel.xml
<partnerLinkBinding name="writeFile">
<property name="wsdlLocation">writeFile.wsdl</property>
<property name="OutboundDir">/app01/oracle/outbound</property>
<property name="retryInterval">60</property>
</partnerLinkBinding>
The nasty thing about BPEL is that if you edit this manually and you make chnages BPEL will over write this. To avoid this create a property in the partner link. Right-Click the partner link select property tab, enter the logical directory name, e.g. OutboundDir and provide a value.
If you want to chnage this location dynamically during runtime follow Dipal's note.
cheers
James -
Editable / Non editable input field CELL (individually) on ALV dynamically
Hi again,
I need more help with an issue.
I have an ALV table with three columns that is necessary put values into input field cell editors, but these cells should be editable or not depending of business logic. I've got make editable or non in entire ROW LEVEL (method set_read_only_fieldname( 'READ_ONLY' )., but ¿how can I set editable or non at individual cells?
Any idea to do that?
Regards
Edited by: vanbelal on Mar 24, 2010 3:33 PMCan you paste any example source code?
I don't know how can I bind enabled property dynamically to individual CELL, I'm setting properties to whole column.
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_columns.
if ls_columns-id = 'COLUMN1' or 'COLUMN2' or 'COLUMN3'.
CREATE OBJECT lr_input_field
EXPORTING
value_fieldname = ls_columns-id.
ls_columns-r_column->set_cell_editor( lr_input_field ).
Should I put business logic here? how can I set enabled or not on CELL, at this point I'm processing whole column!!
lr_input_field->set_enabled( abap_true ).
endif.
ENDLOOP.
Edited by: vanbelal on Mar 24, 2010 4:12 PM
Maybe you are looking for
-
Pricing determination of MIGO (goods receipt)
How is 'Amount in LC' field in the tab 'Quantity' of MIGO (goods receipt) determined by SAP? To my understanding, 'Amount in LC' is determined by the conditions, but I don't have a clear understanding on this process. Appreciate if anyone can shrow
-
Failed to open the Connection: to Database on CMC(Central Management Console)
Post Author: [email protected] CA Forum: Data Connectivity and SQL I can create and run a report no problem on Crystal Reports XI. However when i upload it to the CMC i get Fail to open the connection. I use ODBC 3.51.17 for MySQL.I created Business
-
How do I copy notes from my ipad 1 to my new ipad 2
How do I cnotes from my ipad 1 onto my new ipad 2?
-
Copy/Paste function no longer works in iOS5?
Just upgraded to iOS5 last night, and I just noticed I can no longer copy/paste from Safari to Office HD. It goes through all the motions, but there is no text pasted. I tried rebooting, same deal. I can paste the text in notes, but it doesn't work i
-
How To Run Process In Background?
Hi, I'm writing a CORBA Server, and basically, I need to spawn a process in the background. The process is: tnameserv -ORBInitialPort 1250 I am new to Java, and am not sure how to go about doing this. Any sample code would be appreciated. Thanks!