MySQL returning results based on dates
Hi all,
I'm making a system which returns names of people who are free on certain days, and then prints their contact details, and books them for user selected days.
The employee clicks on days which are then stored into an availability table in the format day, month and year as separate int fields. Then when a person searches for people available on certain days, I want to compare the two tables with dates (availability and datesearch), and return the id's for the people available. Is there a way to do this from a single query, or would it need several?
If there is relevant tutorials that you can recommend, that would also be great.
Hope you can help - just starting with open source database tools.
TIA,
Dan
you need to get a book on SQL and what you're describing might be best in a stored procedure (even though i avoid stored procs at all costs)
Similar Messages
-
How do I return results based on 2 columns?
I've been having an issue and cannot figure it out for the life. First, here's an example set of the data I'm using so you can see exactly what I'm asking.
Emplid Effdt Effseq
10001 '01-JAN-99' 0
10001 '01-JUL-11' 0
10001 '01-JUL-11' 1
10001 '01-JUL-11' 2
10001 '01-JUL-12' 3
What I need to do here, is obtain 3 rows. The 3 rows I need are rows 1, 4, and 5. I need row 1 because its a completely different date. I need row 5 for the same reason: it's a different date. The issue arises with how I can obtain row 4. The problem is that because rows 2, 3, and 4 all have the same effective date(effdt), SQL Developer just returns one of those rows. Because those 3 rows all have the same effective date(effdt), the tie breaker becomes the effective sequence(effseq) number. When the effective date(effdt) is the same, you need to grab the maximum effective sequence(effseq) number and return that whole row's results such as the emplid, effdt, and effseq. It seems so straight forward and something you can use a subquery for, but its not that simple. Note, that you can specifically use the emplid = 10001 in any specific form because there's many employee id's. Also, the rows will not be in a specific order so you cannot just always grab rows 1, 4, and 5. Some employees may only have a single row in the database, and some may have 50 rows. Everything solely depends on the combination of employee id(emplid), effective date(effdt), and effective sequence(effseq) as the tie breaker. Any help in solving this problem would be greatly appreciated. Thank you in advance.WITH t
AS (SELECT 10001 emplid,
TO_DATE ('01-JAN-1999', 'dd-mon-yy') effdt,
0 effseq
FROM DUAL
UNION ALL
SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 0 FROM DUAL
UNION ALL
SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 1 FROM DUAL
UNION ALL
SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 2 FROM DUAL
UNION ALL
SELECT 10001, TO_DATE ('01-JUL-2012', 'dd-mon-yy'), 3 FROM DUAL)
SELECT emplid, effdt, effseq
FROM (SELECT t.*,
ROW_NUMBER ()
OVER (PARTITION BY emplid, effdt ORDER BY effseq DESC)
rn
FROM t)
WHERE rn = 1
EMPLID
EFFDT
EFFSEQ
10001 1/1/1999 0
10001 7/1/2011 2
10001 7/1/2012 3 -
Filtering results based on dynamic date in coldfusion and access database
Hello Guys, i am using a cfquery and am trying to return results based on date. the idea is to return entries that are less than or equal to date but am not getting any results but when i change to greater than or equal to i get the all results in databse which is wrong.
Below is my code. is there something am doing wrong? Please help.
<cffunction name="getBal" access="remote">
<cfargument name="ID_biodata" type="string" required="true">
<cfargument name="quater" type="string" required="true"/>
<cfargument name="datePaid" type="date" required="true"/>
<cfquery name="qBal" datasource="bond100">
SELECT ID_biodata, quater, datePaid, amountPaid, manFees
FROM collections
WHERE datePaid <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#parseDateTime(arguments.datePaid)#">
AND ID_biodata = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.ID_biodata#">
AND quater = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.quater#">
ORDER BY datePaid
</cfquery>
<cfquery dbtype="query" name="results">
SELECT SUM(CAST(amountPaid as INTEGER) + CAST(manFees as INTEGER)) AS totalPaid
FROM qBal
</cfquery>
<cfreturn results />
</cffunction>Turn on debugging so that you can see what ColdFusion is sending to your database server.
The debug info will show the SQL statement with query parameter values below it.
Cheers
Eddie -
Sorting Interactive Report results in no data found message
Hi,
I've got an interactive report which returns results based on the :REQUEST bind variable - I've got a navigation list at the side where all the items link to the current page with different Request values. The IR works fine until I try to sort any of the columns by clicking the header and choosing ascending / descending, at which point it returns no data found.
It starts working again if I change the last line to OR :REQUEST IS NOT NULL but this breaks the functionality of the report, I want to return only the selected statuses, or all if no request variable is present. I'm guessing that sorting sets :REQUEST to something temporarily and breaks it. My query is below, any ideas?
SELECT id,
job_number,
appt_start,
domain,
pwa,
status,
tstamp_created
FROM fail_jobs
WHERE (status = 'NEW' AND userid_created != 'SYSTEM' AND :REQUEST = 'ARD')
OR (status = 'ATR' AND :REQUEST = 'ATR')
OR (status IN ('ERR','REV') AND :REQUEST = 'REV')
OR (status = 'COM' AND :REQUEST = 'COM')
OR (status IN ('PCD','PCA') AND :REQUEST = 'PCD')
OR :REQUEST IS NULLThanksThere are known issues with Interactive Reports referencing :REQUEST value, probably due to some inner logic that also handles it simultaneously - potentially causing malfunction or deadlocks.
One workaround I've learned is to create a computation to assign :REQUEST to a temporary item (a PXX_REQUEST, for instance) and reference it in the query, instead of :REQUEST. This has worked fine for me in my experience.
Let me know if that helps - pls sign the thread as 'Useful' or 'Correct' if so, hence more people can benefit.
tks,
Kleber -
Return query based on condition
I'm trying to create a report region that returns results based on which table the data is stored. I'm using the type SQL Query(PL/SQL function body returning SQL query). I do a select to the first set of tables if the data is not there then it will do a select on the other set of tables. Each query will work find alone. But one query will not work when I use the condition IF Else return query.
Does anybody know how I can accomplish this?
Here is the Query:
declare
v_cnt number;
begin
select count(*) into v_cnt from image_repo_images im, image_repo_lookup il
where im.document_id_type = il.lookup_code
and il.lookup_type = 'DOCUMENT_TYPE'
and il.lookup_code = 1
and im.document_id = :P1_FILE_DLN;
if v_cnt > 0 then
return 'select distinct il.meaning, im.document_id, im.system_entry_date,im.batch_type,im.document_id_type
from image_repo_images im, image_repo_lookup il
where im.document_id = :P1_FILE_DLN
and im.document_id_type = il.lookup_code
and il.lookup_type = ''DOCUMENT_TYPE''
and il.lookup_code = 1;';
else
return 'select ''DLN'', dln, null e_date,null bt,null tp from income_tax_return_images where dln = :P1_FILE_DLN';
end if;
end;
Looks rather straight forward to me.
I get this error:
report error:
ORA-20001: Error fetching column value: ORA-01403: no data found
Any help will be appreciated.Does this work for you:
DECLARE
v_cnt NUMBER;
v_query VARCHAR2 (4000);
BEGIN
SELECT COUNT (*)
INTO v_cnt
FROM image_repo_images im, image_repo_lookup il
WHERE im.document_id_type = il.lookup_code
AND il.lookup_type = 'DOCUMENT_TYPE'
AND il.lookup_code = 1
AND im.document_id = :p1_file_dln;
IF v_cnt > 0
THEN
v_query :=
v_query
|| 'SELECT DISTINCT il.meaning, im.document_id,'
|| ' im.system_entry_date,im.batch_type,im.document_id_type'
|| ' FROM image_repo_images im, image_repo_lookup il'
|| ' WHERE im.document_id = :P1_FILE_DLN'
|| ' AND im.document_id_type = il.lookup_code'
|| ' AND il.lookup_type = ''DOCUMENT_TYPE'''
|| ' AND il.lookup_code = 1';
ELSE
v_query :=
v_query
|| 'SELECT ''DLN'', dln, null e_date,null bt,null tp '
|| ' FROM income_tax_return_images WHERE dln = :P1_FILE_DLN';
END IF;
RETURN v_query;
END;I think you have a semicolon too much at "...il.lookup_code = 1;"
Denes Kubicek
http://deneskubicek.blogspot.com/
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Query output based on date - Oracle 8i
I am trying to write a very simple query to output data based
on date ranges, but I keep encountering an error.
When I do this statement:
select * from my.table
where startdate > '2008-01-01'
I get this error:
[ODBC][Ora]ORA-01861: literal does not match format string
When I format the select statement this way:
select * from my.table
where startdate > #2008-01-01#
i get this error:
[ODBC][Ora]ORA-00932: inconsistent datatypes: expected DATE
got NUMBER
Currently using CF8, and what I believe is Oracle 8i. I have
tried formatting this data in many other ways, but can't get it to
work. I know that when I query the database via access, it has no
problem returning results with the SQL date formatted like
#01/01/2008#You can use the Oracle to_date() function to convert your
string to a date/time object:
select * from my.table
where startdate > to_date('2008-01-01', 'YYYY-MM-DD')
Or, since you are using an ODBC connection to Oracle, you can
try using the ColdFusion CreateODBCDate() function:
select * from my.table
where startdate > #CreateODBCDate("2008-01-01")#
Or, as already suggested, use cfqueryparam with the
appropriate CFSQLType, such as
CF_SQL_TIMESTAMP instead of CF_SQL_INTEGER like you are
attempting to do.
You can't use a "string" date value against a date/time
column in an Oracle query, as it won't perform an implicit type
conversion.
Phil -
How to get the most current file based on date and time stamp using SSIS?
Hello,
Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
Thanks
thx regards dinesh vvhi simon
i excuted this script it is giving error..
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
string file = Dts.Variables["User::FolderName"].Value.ToString();
string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
System.IO.FileInfo finf;
DateTime currentDate = new DateTime();
string lastFile = string.Empty;
foreach (string f in files)
finf = new System.IO.FileInfo(f);
if (finf.CreationTime >= currentDate)
currentDate = finf.CreationTime;
lastFile = f;
Dts.Variables["User::LastFile"].Value = lastFile;
Dts.TaskResult = (int)ScriptResults.Success;
thx regards dinesh vv -
How to display data from a recordset based on data from another recordset
How to display data from a recordset based on data from
another recordset.
What I would like to do is as follows:
I have a fantasy hockey league website. For each team I have
a team page (clubhouse) which is generated using PHP/MySQL. The one
area I would like to clean up is the displaying of the divisional
standings on the right side. As of right now, I use a URL variable
(division = id2) to grab the needed data, which works ok. What I
want to do is clean up the url abit.
So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
I want is clubhouse.php?team=Wings.
I have a separate table, that has the teams entire
information (full team name, short team, abbreviation, conference,
division, etc. so I was thinking if I could somehow do this:
Recordset Team Info is filtered using URL variable team
(short team). Based on what team equals, it would then insert this
variable into the Divisional Standings recordset.
So example: If I type in clubhouse.php?team=Wings, the Team
Info recordset would bring up the Pacific division. Then 'Pacific'
would be inserted into the Divisional Standings recordset to
display the Pacific Division Standings.
Basically I want this
SELECT *
FROM standings
WHERE division = <teaminfo.division>
ORDER BY pts DESC
Could someone help me, thank you.Assuming two tables- teamtable and standings:
teamtable - which has entire info about the team and has a
field called
"div" which has the division name say "pacific" and you want
to use this
name to get corresponding details from the other table.
standings - which has a field called "division" which you
want to use to
give the standings
SELECT * FROM standings AS st, teamtable AS t
WHERE st.division = t.div
ORDER BY pts DESC
Instead of * you could be specific on what fields you want to
select ..
something like
SELECT st.id AS id, st.position AS position, st.teamname AS
team
You cannot lose until you give up !!!
"Leburn98" <[email protected]> wrote in
message
news:[email protected]...
> How to display data from a recordset based on data from
another recordset.
>
> What I would like to do is as follows:
>
> I have a fantasy hockey league website. For each team I
have a team page
> (clubhouse) which is generated using PHP/MySQL. The one
area I would like
> to
> clean up is the displaying of the divisional standings
on the right side.
> As of
> right now, I use a URL variable (division = id2) to grab
the needed data,
> which
> works ok. What I want to do is clean up the url abit.
>
> So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
> all
> I want is clubhouse.php?team=Wings.
>
> I have a separate table, that has the teams entire
information (full team
> name, short team, abbreviation, conference, division,
etc. so I was
> thinking if
> I could somehow do this:
>
> Recordset Team Info is filtered using URL variable team
(short team).
> Based on
> what team equals, it would then insert this variable
into the Divisional
> Standings recordset.
>
> So example: If I type in clubhouse.php?team=Wings, the
Team Info recordset
> would bring up the Pacific division. Then 'Pacific'
would be inserted into
> the
> Divisional Standings recordset to display the Pacific
Division Standings.
>
> Basically I want this
>
> SELECT *
> FROM standings
> WHERE division = <teaminfo.division>
> ORDER BY pts DESC
>
> Could someone help me, thank you.
> -
Fact-tables not resulting in any data
hello experts;
I am trying to create a mock-up report in OBI Answers and somehow Im having a problem with metric columns. When I pick any metric column then I get the: *(No Results: The specified criteria didn’t result in any data)*
But when I pick just the fact tables, I see the results. I have doubled checked the rpd; the schemas btn the dimension and fact tables looks ok to me. I have tried union with another subject area, I get the same error. Anyone with an idea why fact tables are not collaborating with dimension tables?
will appreciate your helpHi,
Can you try to check the physical SQL generated by the reports? and see if that query is returning result in the DB or not.
I am sure this will help you to find the root cause.
Regards,
Kashi -
Reports are not returning results in obiee 11g dashboards.
Hi,
I have dashboard with 3 reports,i saved my customization of particular date range,product group and target list.When I ran the dashboard for first time,I got all the results for 3 reports in dashboard but from the second time,only one of the reports returned results but other reports are just hanging up.I tried to clear cache in both BI server and presentation services but no use.
Please help me what steps needs to be done so that all my saved reports return data.963277 wrote:
Hi,
I have dashboard with 3 reports,i saved my customization of particular date range,product group and target list.When I ran the dashboard for first time,I got all the results for 3 reports in dashboard but from the second time,only one of the reports returned results but other reports are just hanging up.I tried to clear cache in both BI server and presentation services but no use.
Please help me what steps needs to be done so that all my saved reports return data.Do you know if anything has changed in the database or the RPD from the first time you ran those reports? Did you try running the physical query of the reports against the database to see if you are able to return results quickly? -
How to process data in the past based from data in the present
hello guys,
i have a problem in my labview programs. how to process data in the past based from data in the present ?
i have a formula self-organizing maps
this formula is looking for D1, D1 is neuron index that will be searched for the smallest value.and the result are D1=2 ,D2=5, D3=17 from calculating with formula .it means the smallest value is 2, "2" from weight [2 2] in file attached.
and then it will be in other formula
it mean [2 2] + 0.5 ( [1 1]-[2 2] ) = [1.5 1.5]
and the weight will be [1.5 2 2 ] in matrix
1.5 3 5
I would appreciate any input/help on solving this
thanks
Attachments:
dika.vi 16 KB
weight.txt 1 KB
data .txt 1 KBHi Ronny Hanks,
Moving your records from internal table into the database table depends upon various scenarios :-
1. If you use INSERT statement.
INSERT <database_table> FROM TABLE <internal_table>.
But in this case, you need to make sure that you don't have any duplicate entries in your internal table that violates data entry into database table, else you will get a dump.
INSERT <database_table> FROM TABLE <internal_table> ACCEPTING DUPLICATE KEYS.
In this case, you are forcefully inserting duplicate records into your database table which may lead to data redundancy in your database table.
2. If you use UPDATE statement.
UPDATE <database_table> FROM TABLE <internal_table>.
This will update the existing records in your database table from the internal table.
3. If you use MODIFY statement.
MODIFY <database_table> FROM TABLE <internal_table>.
This statement works both in combination of INSERT & UPDATE statements.
Existing records (in database table) will be eventually updated/modified and new records (not in database table currently) will be successfully inserted into the database table.
Hope this solves your problem.
Thanks & Regards.
Tarun Gambhir. -
Simple RFC call not returning results
Hi,
I have created a VERY simple Dynpro project to return the results of a simple RFC. I've created the JCO connections and they test fine but the RFC doesn't return results to my application.
Steps:
1. create the project
2. import the RFC Adaptive Model specifying the JCO connections
3. Create an application
4. Add the rfc model to the "Models Used"
5. Bind the model to the component
6. Context map two variables to the view (one input and one output)
7. Create the method on the component
8. Bound the UI elements to the model
9. Set up the JCO connections from http://portal:50000/webdynpro/welcome
For the JCO Connection creation, I used "Application" type through a load balanced connection for the Model Data connection (WD_MODELDATA_DEST) and the "Dictionary" type for the Metadata connection (WD_RFC_METADATA_DEST).
Code:
1. In the wdDoInit() of the controller
wdContext.nodeZ_Hr_Get_Perno_Input().bind(new Z_Hr_Get_Perno_Input());
2. In the wdDoInit() of the view
wdContext.currentContextElement():setLogin_id( "mylogon" );
wdThis.wdGetRfcTestComponentController().executeZ_Hr_Get_Perno_Input();
My gut tells me it's an issue with my JCO connections but I can't be sure.
I'm using Developer Studio SP9 with Patch 1 connecting to EP6 SP9 Patch 6. When I start the Dev Studio, however, it displays version 2.0.9, is this the same for everyone?
I've tested the function module from SE37 and it definitely returns a value. Also, if I don't set the login_id in the wdDoInit() before executing, it gives me the error that the input variable has not been set. So, this tells me that it connected to R3 to know that the variable was not passed but it still doesn't return any value when the variable is passed.
Any ideas?? HELP!!!!!!!!!!
Thanks,
AndrewOkay, I'm not going crazy. The issue was with my "simple" rfc. When I changed the input and output to char(), it returned as expected. I just have to figure out why the Dictionary types from R3 caused an issue.
Andrew -
How to use stored procedure which returns result set in OBIEE
Hi,
I hav one stored procedure (one parameter) which returns a result set. Can we use this stored procedure in OBIEE? If so, how we hav to use.
I know we hav the Evaluate function but not sure whether I can use for my SP which returns result set. Is there any other way where I can use my SP?
Pls help me in solving this.
ThanksHi Radha,
If you want to cache the results in the Oracle BI Server, you should check that option. When you run a query the Oracle BI Server will get its results from the cache, based on the persistence time you define. If the cache is expired, the Oracle BI Server will go to the database to get the results.
If you want to use caching, you should enable caching in the nqsconfig.ini file.
Cheers,
Daan Bakboord -
Hide Repeating Frames based on data value
Hello,
Wonderful forum. Hope someone out there can give us input on this one. We have a report where we would like to show a different layout depending on the data value from the master query. One layout occupies a full 8X11 page and the second layout occupies 1/3rd of a page. Is it possible to hide one reapeating frame and show the other based on data value? This would be a multiple page report and each page will have to take the correct payout depending on the value of the data in the row.
I appreciate any input on this. Thanks
RaviThanks for you input. I appreciate it.
I am having a problem doing this. Let us say i have 2 differnt paper layouts. I want to show or hide one of the layouts based on a data value.
The problem i am facing is that the 2nd instance of true value for showing the 1st layout is over lapping the 1st instance of the 2nd layout thus showing 2 layouts overlapping each other on the same page. I know this is confusing but i will attempt to give an example:
page 1 shows - layout #1 only is showing based on result of data value. This is good.
page 2 shows - layout #2 shows based on data value, but also the 2nd instace of layout #1 (what ever data record satisfies layout #1 rule) is also showing over layout #2. So both the layouts are jumbled up on 1 page.
Essentially conditional formatting on layout #1 is not able to recognize that there is a 2nd layout taking its place and thus showing the layout #1 whenever it finds data which satisfies the condition on the 2nd page and so on..
Any help is greatly appreciated.
Thanks.. -
Return results from ADEP in AS3 Arrays, not ArrayCollections
Hi all,
Is there any way to force ADEP to return results from data services in simple AS3 Arrays, not ArrayCollections? Here are my situation:
In my project I use ADEP Data Management Services. To connect to ADEP services we use RTMP channel defined in services-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service-include file-path="remoting-config.xml" />
<service-include file-path="proxy-config.xml" />
<service-include file-path="messaging-config.xml" />
<service-include file-path="data-management-config.xml" />
<service-include file-path="managed-remoting-config.xml" />
<service class="fiber.data.services.ModelDeploymentService" id="model-deploy-service" />
<default-channels>
<channel ref="my-rtmp"/>
</default-channels>
</services>
<channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
<endpoint url="rtmp://{server.name}:1000" class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<block-rtmpt-polling-clients>true</block-rtmpt-polling-clients>
<rtmpt-poll-wait-millis-on-client>0</rtmpt-poll-wait-millis-on-client>
</properties>
</channel-definition>
</services-config>
To manage data in database we defined data services in data-management-config.xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service" class="flex.data.DataService">
<adapters>
<adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter"/>
<adapter-definition id="mr-java-dao" class="flex.data.adapters.ManagedRemotingDataAdapter" />
<adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-rtmp"/>
</default-channels>
<destination id="SomeProduct.SomeItems">
<adapter ref="java-dao" />
<properties>
<source>flex.data.assemblers.SQLAssembler</source>
<scope>application</scope>
<metadata>
<identity property="ID" />
</metadata>
<server>
<database>
<datasource>java:comp/env/jdbc/SP</datasource>
</database>
<actionscript-class>com.somecompany.classes.SomeCoolClass</actionscript-class>
<create-item>
<procedure name="SomeItems_Insert">
<procedure-param property-value="#Session_ID#" />
<procedure-param property-value="#Division_ID#" />
<procedure-param property-value="#Salesrep_ID#" />
<procedure-param property-value="#Area_Code#" />
<procedure-param property-value="#Item_ID#" />
</procedure>
<id-query>SELECT IDENT_CURRENT('Work_Area_Item')</id-query>
</create-item>
<fill>
<name>all</name>
<procedure name="SomeItems_Get">
<procedure-param property-value="#Session_ID#" />
<procedure-param property-value="#Last_Sync_Time#" />
</procedure>
</fill>
<update-item>
<procedure name="SomeItems_Update">
<procedure-param property-value="#Session_ID#" />
<procedure-param property-value="#Division_ID#" />
<procedure-param property-value="#Salesrep_ID#" />
<procedure-param property-value="#Area_Code#" />
<procedure-param property-value="#Item_ID#" />
</procedure>
</update-item>
<delete-item>
<procedure name="SomeItems_Delete">
<procedure-param property-value="#Session_ID#" />
<procedure-param property-value="#Item_ID#" />
</procedure>
</delete-item>
</server>
</properties>
</destination>
</service>
By default, ADEP returns results from SomeProduct.SomeItems destination to Flex side as ArrayCollection of SomeCoolClass instances but I need the data to be returned in simple AS3 Arrays. Recently, I found that there is small optional serialization configuration in channel-definition that should resolve my problem. So I updated my channel-definition in services-config.xml to this:
<channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
<endpoint url="rtmp://{server.name}:1000" class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<serialization>
<legacy-collection>true</legacy-collection>
</serialization>
<idle-timeout-minutes>20</idle-timeout-minutes>
<block-rtmpt-polling-clients>true</block-rtmpt-polling-clients>
<rtmpt-poll-wait-millis-on-client>0</rtmpt-poll-wait-millis-on-client>
</properties>
</channel-definition>
However, result are still returned in ArrayCollections.
Any ideas?
Thanks in advanceThom Parker answered this here: http://forums.adobe.com/message/2614570#2614570
Answer copied below:
"The problem is that when the focus is on the text box
it's in edit mode. It's only displaying the value interactively entered by
the user, or as a consequence of the change event. What you need to do is
force the focus off of the text box in code. You can do a little trick
where you bounce it to a tiny transparent field, which then bounds the focus
back so it doesn't look like the focus changed."
What I ended up doing was calling up the dialog box, then using setfocus with no parameters to remove focus from the field, as follows:
this.rawValue = this.dialogBoxFunction(this.rawValue); // passing current value so dialog box defaults to that value
xfa.host.setFocus();
Cheers,
Marty.
Maybe you are looking for
-
Sharing a single iphoto library and backing up with time machine
Alright, I want to share my iPhoto library between several users on my Mac. I have found an Apple article that explains how to set up a disk image to store the iPhoto library in. This article is at http://support.apple.com/kb/HT1198 However, implemen
-
I am trying to use my laptop to connect to a computer in another room via Remote Desktop service in XP and have the sound from my DAWs... specifically FL Studio and Sonar... directed to the laptop. The "server computer" has an Audigy 2. The laptop se
-
How to export data using application adapter for EBS?
my scenario is : there're some external apps need to communicate with EBS, and the intermedia layer supposed to be implemented by SOA suite/Fusion adapters. my confusion is: in oracle integration repository, most of APIs are CUD (create, update, dele
-
Ask the Expert: Data Center Integrated Systems and Solutions
Welcome to this Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions about utilizing Cisco data center technology and solutions with subject matter expert Ramses Smeyers. Additionally, Ramses will ans
-
No edit options appearing - help!
Hi - using iMovie 10 for the first time (have used previous versions). I can not get any imported video to show any editing options at all. I have followed online tutorials, so I know what should be happening regarding right clicking a selection to g