Multiple initializers for property dataProvider
All I'm trying to do is display xml data from a Rails application in a list., but it doesn't like this:
dataProvider="{student_requests.student_request}"
It tells me "multiple initializers for property dataProvider".
Any idea of how to address this? Thanks.
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
private var student_requests:XML;
private const CONTEXT_URL:String = "http://localhost:3000";
private function initApp():void {
student_requestsIndex.send();
protected function textInput_enterHandler():void
currentState='List';
protected function list_changeHandler():void
currentState='Detail';
protected function button_clickHandler():void
currentState='List';
protected function button_clickHandler_1():void
currentState='Search';
]]>
</fx:Script>
<s:states>
<s:State name="Detail"/>
<s:State name="List"/>
<s:State name="Search"/>
</s:states>
<fx:Declarations>
<s:HTTPService
id="student_requestsIndex"
url="{CONTEXT_URL}/student_requests.xml"
resultFormat="e4x"
result="student_requests=event.result as XML"/>
<s:HTTPService
id="student_requestsCreate" url="{CONTEXT_URL}/student_requests.xml"
method = "POST"
resultFormat="e4x"
contentType="application/xml"
result="student_requestsIndex.send()"/>
<s:HTTPService
id="student_requestsUpdate" url="{CONTEXT_URL}/student_requests/{student_requestsGrid.selectedItem.id}/confirm_reques t"
method="POST"
resultFormat = "e4x"
contentType="application/xml"
headers="{{X_HTTP_METHOD_OVERRIDE: 'PUT'}}" />
</fx:Declarations>
<fx:DesignLayer d:id="49" ai:objID="644a1270" d:userLabel="LeftPanel" visible.Search="false" id="designlayer2">
<s:List skinClass="components.DataList3" x="65" y="96"
change="list_changeHandler()"
id="list1"
dataProvider="{student_requests.student_request}"
labelField="student_request">
<s:ArrayCollection>
<fx:String></fx:String>
<fx:String></fx:String>
<fx:String></fx:String>
<fx:String></fx:String>
<fx:String></fx:String>
</s:ArrayCollection>
</s:List>
</fx:DesignLayer>
Yeah I removed it but still no data.
I was referencing this:
http://www.adobe.com/devnet/flashcatalyst/articles/building_datacentric_app_flas hcast_flashbuilder_03.html
But he uses Coldfusion, and I tried using the HTTP to connect to data, but the data would never display properly. So I was forced to use HTTPService declarations, which prompted me to change code around. And this was one of it. His approach generated this:
<s:List skinClass="components.DataList3" x="65" y="96" change="list_changeHandler()" id="list1" creationComplete="list1_creationCompleteHandler(event)" dataProvider="{TypeUtility.convertToCollection(indexResult.lastResult)}" labelField="student_request">
</s:List>
Similar Messages
-
Hi ,
I am using VeiwStack in my application and I am planning to display Line Charts in them.But I am stuck up with the this error.Here is the code
<mx:LineChart id="linechart4" dataProvider="{chart_data}"
showDataTips="true" width="400" height="80">
<mx:horizontalAxis>
<mx:LinearAxis baseAtZero="true" title="Timestamp" minimum="{x_min}" maximum="{x_max}" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis id="v1r1" title ="Mode"/>
</mx:verticalAxis>
<mx:verticalAxisRenderers>
<mx:AxisRenderer placement="left" axis="{v1r1}" titleRenderer="events.CustomChartTitleRenderer"/>
</mx:verticalAxisRenderers>
<mx:series>
<mx:LineSeries xField="t_value" yField="e_value" >
<mx:lineStroke>
<mx:Stroke
color="0x032771"
weight="1"
alpha="1"
/>
</mx:lineStroke>
</mx:LineSeries>
</mx:series>
<mx:Text text="Upstream LQI" fontWeight="bold" fontSize="12"/>
</mx:LineChart>
</mx:VBox>
</mx:ViewStack>
<mx:ControlBar>
<mx:ToggleButtonBar dataProvider="{vs}" id="toggle" toolTip="{togToolTip}"/>
</mx:ControlBar>
Any Suggestions are invited
Regards
Kalavati Singh
[email protected]Hi,
set <mx:Text text="Upstream LQI" fontWeight="bold" fontSize="12"/>
after </mx:LineChart>
and all will be ok. -
Object type for multiple/text/unrestricted property
Hi,
Does anybody know what's the object type for multiple/text/unrestricted property.
I tried to use um:setproperty tag to set the value of a multiple/text/unrestricted
type property in jsp. I got the following error if the object type I use is ArrayList:
javax.transaction.TransactionRolledbackException: Transaction: '995540362044_8798'
rolled back due to EJB exception:
java.rmi.RemoteException: EntityPropertyManagerImpl.insertTypeSpecificValue():
caught ClassCastException. The reason might be because the type of the passed
value does not mismatch the property type stored in schema information. Expected
object type is: 3 and the object type was: java.util.ArrayList
Does anybody know what's this type 3 object?
Br,
-Niyue Chen
Hi All,
I need to convert the amount value in comma to dot say 1000,00 to 1000.00.Any function module is there to convert it.After converting it i need to pass this value as exporting parameter to a function module having data type as character(lenght 13).
Thnks
Deb -
Multiple values for a given property in a Master Record
I have a requirement to maintain multiple values for a given property of a master data as shown in the above example. Appreciate your help on the above.
Regards
SAP BOSSHi,
As you said
How do I use the property values in my input values.
I thought you are talking about input form, that's why I said you can crate input form using dimension over ride.
But if your requirement is about scrip logic then it is better to ask question with reference to following guide by Vadim Kalinin so that we can understand your requirement properly and you will get right solution.
http://scn.sap.com/community/epm/planning-and-consolidation-for-netweaver/blog/2014/01/31/how-to-ask-questions-about-script-logic-issues
Regards,
Shrikant -
How can i add multiple validations for a single input box in adf?
hi,
i want to add multiple validation for a single input text control in adf like number validation and its existence in database.
MY JDEV VERSION IS 11.1.1.5.0
pls help !!!!Hi,
1.I want to validate if the value entered is pure integer
Option 1-
select the component and in the Property Inspector, in the "Core" category select a "Converter" format, select javax.faces.Number, if the user put a string, adf show a dialog error or message error...
Option 2-
or use the Regular expression:-
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_validateRegExp.html
https://blogs.oracle.com/shay/entry/regular_expression_validation
Also check this:-
http://docs.oracle.com/cd/E15523_01/web.1111/b31973/af_validate.htm#BABHAHEI
Option 3-
Frank in his great book 'Oracle Fusion Developer Guide' shows a example using a javascript for input which is allowed only for numbers. You can manipulate for your requirement.
Here is the code:
function filterForNumbers(evt) {
//get ADF Faces event source, InputText.js
var inputField = evt.getSource();
var oldValue = inputField.getValue();
var ignoredControlKeys = new Array(AdfKeyStroke.BACKSPACE_KEY, AdfKeyStroke.TAB_KEY, AdfKeyStroke.ARROWLEFT_KEY, AdfKeyStroke.ARROWRIGHT_KEY, AdfKeyStroke.ESC_KEY, AdfKeyStroke.ENTER_KEY, AdfKeyStroke.DELETE_KEY);
//define the key range to exclude from field input
var minNumberKeyCode = 48;
var maxNumberKeyCode = 57;
var minNumberPadKeyCode = 96;
var maxNumberPadKeyCode = 105;
//key pressed by the user
var keyCodePressed = evt.getKeyCode();
//if it is a control key, don't suppress it
var ignoreKey = false;
for (keyPos in ignoredControlKeys) {
if (keyCodePressed == ignoredControlKeys[keyPos]) {
ignoreKey = true;
break;
//return if key should be ignored
if (ignoreKey == true) {
return true;
//filter keyboard input
if (keyCodePressed < minNumberKeyCode || keyCodePressed > maxNumberPadKeyCode) {
//set value back to previous value
inputField.setValue(oldValue);
//no need for the event to propagate to the server, so cancel
//it
evt.cancel();
return true;
if (keyCodePressed > maxNumberKeyCode && keyCodePressed < minNumberPadKeyCode) {
//set value back to previous value
inputField.setValue(oldValue);
evt.cancel();
return true;
2.I want to check if the value exists in my respective DB You must be having EO or VO if you want to validate with database in that case use the solution suggested by Timo.
Thanks
--NavinK -
Hi All:
I am trying to create multiple profiles, using unified profile types, to
store multiple values for same properties. Here my intention of using
'unified profile types' is to create multiple profiles (to store multiple
values for a property). All the properties are stored in the same database
maintained by Personalization server. Also, I am trying to use the same
'USER' ejb as profile class/home/pk/jndi.
The scenerio is,
define unified profile types (Business, Vacation) using Personalization
admin tools, using com.beasys.commerce.axiom.contact.User,
com.beasys.commerce.axiom.contact.UserHome,
com.beasys.commerce.axiom.contact.UserPk,
com.beasys.commerce.axiom.contact.User for Profile Class, Home, Pk class,
JNDI name respectively.
Define Property set 'HotelCommerce' with property
HotelProp as single, restricted, text (valid values Single, Double)
Now you can use the attached jsp files to login as a user and try to set the
property value for HotelProp for each profile. As per my understanding, I
was expecting that I can set different values for the property 'HotelProp'
for each profiles. But unexpectedly, all the profiles get the same value.
Question. is it the correct behavior? if yes, how can I achieve this
functionality?
if not, do you see any problem in my scripts?
your answer asap is appreciated. we need to make decision on using
Personalization server v/s developing our own Personalization server!!!:)
thanks,
-rajesh
PS: I have tried 'Unified Profile Example' type too, but that did not work.
[propsettest.jsp]
[home.jsp]I am trying to create multiple profiles, using unified profile types, to
store multiple values for same properties. Here my intention of using
'unified profile types' is to create multiple profiles (to store multiple
values for a property). All the properties are stored in the same database
maintained by Personalization server. Also, I am trying to use the same
'USER' ejb as profile class/home/pk/jndi.Hello Rajesh,
This is not the purpose of the UUP. The UUP is used to allow existing
database schemas to be aggregated with the existing Weblogic Personalization
Server database schema to provide a single, customized user profile with which
to maintain the user properties (
http://e-docs.bea.com/wlcs/p13n/users.htm#1068901 )
If you want to have properties that change value based on some "profile" or
classification of a user, then you should use classifier rules to change the
user from "OnVacation" to "AtWork" or "AtHome". You can use these classifier
rules to select content for the user or conditionally execute logic (
http://e-docs.bea.com/wlcs/p13n/rules.htm )
Ture Hoefner
BEA Systems, Inc.
1655 Walnut Street; suite 200
Boulder, CO 80302
www.beasys.com -
How can multiple files for the same genre be consolidated
I organize my iTunes files in genre folders for easy access. ITunes creates multiple folders for some genres and allows a single (preferred) genre file for other much larger files. How can I consolidate multiple files with the same genre?
Thanks. I've done what you selected. The problem is that despite all files being identified with the same genre, iTunes groups some genres in two separate folders. Thus, I have two "Country" folders, for example. More perplexing is that iTunes groups my largest genre folder, "Jazz", in a single folder.
-
Not able to generate multiple lines for headers in report
Hi,
I am new to BI publisher and not able to generate multiple lines for headers. Please help me to resolve.
I am using RTF template, data source as PS Query and XML file (system generated from the data source)
When I am using system generated 'First XML' file, I am getting output in the follwoing format.
TEAM_MEMBER, PROJECT_ID, NAME, START_DT
e.g.
EMP1 , 71000, Sample, 01-Jan-2010
EMP1 , 72000, Sample, 01-Feb-2010
EMP1 , 73000, Sample, 01-March-2010
But I want the report to be generate with multiple projects for one employee like below format , for that I used 'Second XML' file but I am getting blank report.
In short if there is one to many case, how to show in reports??? Please correct if I am going wrong.
TEAM_MEMBER
PROJECT_ID, NAME, START_DT
PROJECT_ID, NAME, START_DT
PROJECT_ID, NAME, START_DT
e.g.
EMP1
71000, Sample, 01-Jan-2010
72000, Sample, 01-Feb-2010
73000, Sample, 01-March-2010
**********First XML**************System generated XML ****************************
<?xml version="1.0"?>
<query numrows="2" queryname="SY_EMP_PROJECT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
<row rownumber="1">
<TEAM_MEMBER>TEAM_MEMBER </TEAM_MEMBER>
<PROJECT_ID>PROJECT_ID samp</PROJECT_ID>
<NAME>NAME sample data</NAME>
<START_DT>2010-08-25</START_DT>
</row>
<row rownumber="2">
<TEAM_MEMBER>TEAM_MEMBER</TEAM_MEMBER>
<PROJECT_ID>PROJECT_ID samp</PROJECT_ID>
<NAME>NAME sample data</NAME>
<START_DT>2010-08-25</START_DT>
</row>
</query>
**********Second XML**************Manually created XML and using to show multiple projects for one employee****************
<?xml version="1.0"?>
<TEST numrows="2" queryname="SY_EMP_PROJECT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
<TEAM_MEMBER rownumber="1">
<TEAM_MEMBER>1</TEAM_MEMBER>
<EMPLOYEE_NAME>SAMPLE</EMPLOYEE_NAME>
<PROJECT>
<PROJECT_ID>1111</PROJECT_ID>
<PROJECT_DESCR>SAMPLE</PROJECT_DESCR>
<START_DATE>01012010</START_DATE>
</PROJECT>
<PROJECT>
<PROJECT_ID>1112</PROJECT_ID>
<PROJECT_DESCR>SAMPLE</PROJECT_DESCR>
<START_DATE>01022010</START_DATE>
</PROJECT>
</TEAM_MEMBER>
<TEAM_MEMBER rownumber="2">
<TEAM_MEMBER>2</TEAM_MEMBER>
<EMPLOYEE_NAME>SAMPLEC</EMPLOYEE_NAME>
<PROJECT>
<PROJECT_ID>1111</PROJECT_ID>
<PROJECT_DESCR>SAMPLE</PROJECT_DESCR>
<START_DATE>01012010</START_DATE>
</PROJECT>
<PROJECT>
<PROJECT_ID>1112</PROJECT_ID>
<PROJECT_DESCR>SAMPLE</PROJECT_DESCR>
<START_DATE>01022010</START_DATE>
</PROJECT>
</TEAM_MEMBER>
</TEST>
Edited by: ganeshtw on Aug 25, 2010 12:14 AMHi,
With your first xml you can print like
EMP1
71000, Sample, 01-Jan-2010
72000, Sample, 01-Feb-2010
73000, Sample, 01-March-2010While creating the RTF template you can use the Group by option.
<?for-each-group:ROW;./columnname> then print the column name
<?columnname?>
--Then your table format
71000, Sample, 01-Jan-2010
72000, Sample, 01-Feb-2010
73000, Sample, 01-March-2010
<?end for-each-group?>
Thanks. -
How to get one value from multiple duplication for a key figure field
Hi expert,
I have a infoprovider, with following format:
employee hourly_rate action_type count of action
there are multiple rows for each employee, I want to create query as follows:
employee hourly_rate action_type count of action
in which hourly_rate is constant , only retriving one value from multiple rows for one employee, count of action should be summarized.
how to get this hourly_rate.
Many Thanks,Hi,
put the employee in rows panel -> reaming object put it in free char panel.
suppress the all result rows for the all object except employee .
select the object -> go to query properties -> select display tab -> select result rows -> select suppress.
select the employee -> go to query properties -> select display tab -> select result rows -> select always display. - now it will give employee wise hourly rate summarize data.
Thanks,
Phani. -
Passing multiple values for a single field in URL to call sap Transaction
Hi All,
I need to pass multiple values for a single field to SAP transaction .
means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
Let me know pls.
Regards,
Sirisha.R.S.Hi Satyajit,
I need to call a transaction with multiple values which gives me the report based on those values.
So I need to pass multiple values for a single parameter.
I hope u got it.
Regards,
Sirisha.R.S. -
Any way to pass Multiple Values for a single Label in the Parameter?
I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter.
PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
QUESTION:
Any way to pass Multiple Values for a single Label in the Parameter?
I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
it correct.
I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
Note: We are using Report Builder 3.0Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
Try creating either a function or stored procedure using the code below (compliments to
http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string:
CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
BEGIN
DECLARE @SeparatorPosition INT
DECLARE @ArrayValue VARCHAR(1000)
SET @Array = @Array + @Separator
WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
BEGIN
SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
END
RETURN
END
Once created you can do things like this:
SELECT * FROM Parse('John,Bill,David,Thomas', ',')
SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
This is what your SQL query would probably look like:
SELECT OperationID, OperationName FROM dbo.Operations
WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value. -
How to print multiple footers for each page in RTF template xml report.
Hi,
How to print multiple footers for each page in RTF template xml report.
i am able to print ( two sets ) ...
up to last page ( one template ) and for last page ( another template).
i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
Thanks in advance.
Regards,
KAP.You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
Just have for-each@section logic.
It would be difficult for me to guess what you have done without looking at your RTF or describing here. -
I am using my Apple ID on multiple devices for other people in my family and now I am getting a new iphone and want to take only the information on my old iphone to the new one without the information on the other devices using the same account. Is there a way to do that?
Also, for the future can I use multiple addresses and apple IDs for the same credit card information?
Thanks in advance,
MarianOk, so you want to remove data (contacts, bookmarks, calendar etc) from other users from your iCloud/Apple ID?
If you want to use your ID for your family because it is the account everybody uses to buy stuff then you only need to ensure that your apple ID is set up in the store (settings-store) and then the users of each device and put their own apple ID in icloud/message/facetime/etc.
To set up your device, in my opinion, it is best to back up to itunes, and then plug your new device into itunes and "set up as ..." and select the backup from your device. This will import all your data/settings and your new device will be set up just like your old one.
I am not certain about using the same payment method for more than one account. -
HT1495 Multiple ipads for classroom use how can I make them have the same apps?
How do I sync multiple ipads for classroom use
There is no bookmarks tab, expect you are referring to the bookmarks menu on the menu bar ("File, Edit, View, History, Bookmarks, Tools, Help") on your XP system.
Once your restore your menus on you Window 7 system, you can get rid of the bookmarks button. After going through the 10 steps below your toolbars on your Windows 7 system will be more usable again and like your XP system, none of which has anything to do with Sync.
You can make '''Firefox 6.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
* http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
the first 9 steps above are basic toolbar customization the following link is in step #1 above. (See before/after picture (.png) in the footnote)
*How do I customize the toolbars? | How to | Firefox Help
*:https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars
<br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>
There is a lot more beyond those first 10 steps listed, if you want to make Firefox more functional.
Before and after customizations, the following also includes [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4styles styling changes] besides rearranging toolbars and toolbar items.
* http://dmcritchie.mvps.org/icons/fx4toolbars.png
*:Bookmarks toolbar -- [http://userstyles.org/styles/46947 Bookmarks Toolbar Fx4 Blue/Folders, Red/Bookmarks]
*:Tab borders -- [http://userstyles.org/styles/24728 Tab Color Underscoring active/read/unread (Fx3.6)] red=active tab, blue=read, green=unread, magenta(not shown)=loading -
How do I add multiple emails for one contact to the same group list?
When trying to set up a group email list using address book, is there a way to include multiple emails for the same contact to one group. For example I'm trying to set up a baseball team group email. Some kids want emails sent to both mom and dad which have different emails. I currently have them in my address book as the boy's name with the emails listed as mom and dad. I can add one "mom" to the list but when I compose the email, it will use the most recent email used. I would like the group to contain both addresses for mom and dad without setting up to different contacts for the same player.
var cToAddr = this.getField("saManager").value + ";" + this.getField("ManagerEmail").value;
Maybe you are looking for
-
JTable column headers not displaying using custom table model
Hi, I'm attempting to use a custom table model (by extending AbstractTableModel) to display the contents of a data set in a JTable. The table is displaying the data itself correctly but there are no column headers appearing. I have overridden getColu
-
how do i get it out of recovery mode or be able to type my password in
-
Imported contacts have last name/first name reversed
When I had my old Samsung dumb phone, I listed all my contacts by last name. (There was a single name field in the old phone, so I listed everybody as "Smith, Bob.") But when I had my contacts list imported into my new iphone 5c, it read all the la
-
Error Job REFRESH_ADMIN_DATA_FROM_SUPPORT - Business Partner error
Hello gurus, System: Solution Manager 7.0 Ehp1 SPS22 (win 2008 + SQL Server 2005) The problem is... I've been setting up the service desk for VAR option. We, our company, are VAR and the main goal for this configuration is link our own solution mana
-
Where is the airport icon in Windows?
On any Apple computer with Airport, there is an Airport status icon menulet. Those of us longsuffering dialup users with original AEBSs equipped with the dialup modem option are used to clicking on that icon and selecting the "connect" submenu that a