Shuttle example using JClient
I need to develop a shuttle screen moving data between two view objects. I looked at the Shuttle example using UIX, but I am not sure how to duplicate that functionality in JClient. I am using jdev 10.1.2.0.0. Any help would be greatly appreciated. Thanks!!
Hi
I also need to insert a shuttle control in JDeveloper. Shuttle controls are extensively used in JDeveloper Wizards. Is there any way that I can use a prebuilt Shuttle control?
I tried to mimic the shuttle control on a JTree and have the ">>", "<<", ">", ">>" buttons working. But can not manage to get the Move Up and Move Down buttons working. The JTree is based on a VO and the VO is being sorted by a column "Order". I have managed to change the required "Order" column values when I click Move Up and Move Down but the JTree does not refresh itself until I close the application.
Any help will be greatly appreciated.
Thanks
Similar Messages
-
How Can I Get the Amount of Free Disk Space using windows 7 please share example using GetDiskSpace i have already studied http://digital.ni.com/public.nsf/allkb/9958B8E473C4EF1786256BBC0053B64F
Reading your question a bit more in detail, I doubt whether you are using Win32 API GetDiskFreeSpace function (for which my previous post is the solution) of Programmer's Toolbox GetDiskSpace function.
With reference to the second one, it works even with disks larger than 2GB but you need to use the proper formatting code to display the returned value. I updated my example to show total free space in the debug output window and added a comparison with 3GB value using UInt64TypeCompareUInt from the Programmer's Toolbox. -
Barcode using flash - Denes, Pavel's examples use SVG, not flash
Has anyone tried creating barcode using flash charts available in Apex ?
I came across 2 examples, which are given below. These examples use SVG, but SVG is being retired by Adobe
Denes Kubicek:
Barcode ???
Pavel MAREK:
Re: Barcodes in HTMLDB - solved
RaviRavi,
I would be interested to see how you would utilize flash charts to generate barcodes in
apex. Where does this idea come from?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Okay ...
So I used one of the Adobe examples except now it's part of a container and it's using a datasource instead of the flatfile the example uses. Also, for some reason I need to create a button instead of using the creationComplete to get it to work. My problem is if the button is clicked to fast while it's loading the data (since another part of the application has a dropdown menu so you can requery information) you get an error and for some reason, you'll still get the same error even if the data is fully loaded and even if you change the parameter to reload the data. My feeling is that the variables are not getting cleared out after it throws the error.
So my question is what is the best way to clear out the variables (and how) when it throws an error. The code for the page is below.
Joe
<?xml version="1.0" encoding="utf-8"?>
<v:MaxRestorePanel xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:v="views.*"
layout="vertical"
creationComplete="creationCompleteHandler3();">
<mx:Script>
<![CDATA[
import mx.collections.ICollectionView;
import mx.rpc.AsyncResponder;
import mx.rpc.AsyncToken;
import mx.olap.OLAPQuery;
import mx.olap.OLAPSet;
import mx.olap.IOLAPQuery;
import mx.olap.IOLAPQueryAxis;
import mx.olap.IOLAPCube;
import mx.olap.OLAPResult;
import mx.events.CubeEvent;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
[Bindable]
public var dp:ICollectionView = null;
// Format of Objects in the ArrayCollection:
// data:Object = {
// customer:"AAA",
// product:"ColdFusion",
// quarter:"Q1"
// revenue: "100.00"
private function creationCompleteHandler3():void {
// You must initialize the cube before you
// can execute a query on it.
myMXMLCube3.refresh();
// Create the OLAP query.
private function getQuery(cube:IOLAPCube):IOLAPQuery {
// Create an instance of OLAPQuery to represent the query.
var query:OLAPQuery = new OLAPQuery;
// Get the row axis from the query instance.
var rowQueryAxis:IOLAPQueryAxis =
query.getAxis(OLAPQuery.ROW_AXIS);
// Create an OLAPSet instance to configure the axis.
var productSet:OLAPSet = new OLAPSet;
// Add the Product to the row to aggregate data
// by the Product dimension.
productSet.addElements(
cube.findDimension("ProductDim").findAttribute("Product").children);
// Add the OLAPSet instance to the axis.
rowQueryAxis.addSet(productSet);
// Get the column axis from the query instance, and configure it
// to aggregate the columns by the Quarter dimension.
var colQueryAxis:IOLAPQueryAxis =
query.getAxis(OLAPQuery.COLUMN_AXIS);
var quarterSet:OLAPSet= new OLAPSet;
quarterSet.addElements(
cube.findDimension("QuarterDim").findAttribute("HLMC").children);
colQueryAxis.addSet(quarterSet);
return query;
// Event handler to execute the OLAP query
// after the cube completes initialization.
private function runQuery(event:CubeEvent):void {
// Get cube.
var cube:IOLAPCube = IOLAPCube(event.currentTarget);
// Create a query instance.
var query:IOLAPQuery = getQuery(cube);
// Execute the query.
var token:AsyncToken = cube.execute(query);
// Setup handlers for the query results.
token.addResponder(new AsyncResponder(showResult, showFault));
// Handle a query fault.
private function showFault(result:Object, token:Object):void {
Alert.show("Error in query.");
// Handle a successful query by passing the query results to
// the OLAPDataGrid control..
private function showResult(result:Object, token:Object):void {
if (!result) {
Alert.show("No results from query.");
return;
myOLAPDG3.dataProvider= result as OLAPResult;
]]>
</mx:Script>
<mx:OLAPCube name="FlatSchemaCube" dataProvider="{dp}" id="myMXMLCube3" complete="runQuery(event);">
<mx:OLAPDimension name="CustomerDim">
<mx:OLAPAttribute name="Customer" dataField="TITLE_NAME"/>
<mx:OLAPHierarchy name="CustomerHier" hasAll="true">
<mx:OLAPLevel attributeName="Customer"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="ProductDim">
<mx:OLAPAttribute name="Product" dataField="CORP_SITE"/>
<mx:OLAPHierarchy name="ProductHier" hasAll="true">
<mx:OLAPLevel attributeName="Product"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="QuarterDim">
<mx:OLAPAttribute name="HLMC" dataField="HLMC"/>
<mx:OLAPHierarchy name="QuarterHier" hasAll="true">
<mx:OLAPLevel attributeName="HLMC"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPMeasure name="Revenue"
dataField="CUR_YR_1"
aggregator="SUM"/>
</mx:OLAPCube>
<mx:OLAPDataGrid id="myOLAPDG3" defaultCellString="-" textAlign="right" color="0x323232" width="100%" height="100%"/>
<mx:ControlBar id="controls">
<mx:Button label="Pull Details" click="creationCompleteHandler3();"/>
</mx:ControlBar>
</v:MaxRestorePanel>Okay ...
So I used one of the Adobe examples except now it's part of a container and it's using a datasource instead of the flatfile the example uses. Also, for some reason I need to create a button instead of using the creationComplete to get it to work. My problem is if the button is clicked to fast while it's loading the data (since another part of the application has a dropdown menu so you can requery information) you get an error and for some reason, you'll still get the same error even if the data is fully loaded and even if you change the parameter to reload the data. My feeling is that the variables are not getting cleared out after it throws the error.
So my question is what is the best way to clear out the variables (and how) when it throws an error. The code for the page is below.
Joe
<?xml version="1.0" encoding="utf-8"?>
<v:MaxRestorePanel xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:v="views.*"
layout="vertical"
creationComplete="creationCompleteHandler3();">
<mx:Script>
<![CDATA[
import mx.collections.ICollectionView;
import mx.rpc.AsyncResponder;
import mx.rpc.AsyncToken;
import mx.olap.OLAPQuery;
import mx.olap.OLAPSet;
import mx.olap.IOLAPQuery;
import mx.olap.IOLAPQueryAxis;
import mx.olap.IOLAPCube;
import mx.olap.OLAPResult;
import mx.events.CubeEvent;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
[Bindable]
public var dp:ICollectionView = null;
// Format of Objects in the ArrayCollection:
// data:Object = {
// customer:"AAA",
// product:"ColdFusion",
// quarter:"Q1"
// revenue: "100.00"
private function creationCompleteHandler3():void {
// You must initialize the cube before you
// can execute a query on it.
myMXMLCube3.refresh();
// Create the OLAP query.
private function getQuery(cube:IOLAPCube):IOLAPQuery {
// Create an instance of OLAPQuery to represent the query.
var query:OLAPQuery = new OLAPQuery;
// Get the row axis from the query instance.
var rowQueryAxis:IOLAPQueryAxis =
query.getAxis(OLAPQuery.ROW_AXIS);
// Create an OLAPSet instance to configure the axis.
var productSet:OLAPSet = new OLAPSet;
// Add the Product to the row to aggregate data
// by the Product dimension.
productSet.addElements(
cube.findDimension("ProductDim").findAttribute("Product").children);
// Add the OLAPSet instance to the axis.
rowQueryAxis.addSet(productSet);
// Get the column axis from the query instance, and configure it
// to aggregate the columns by the Quarter dimension.
var colQueryAxis:IOLAPQueryAxis =
query.getAxis(OLAPQuery.COLUMN_AXIS);
var quarterSet:OLAPSet= new OLAPSet;
quarterSet.addElements(
cube.findDimension("QuarterDim").findAttribute("HLMC").children);
colQueryAxis.addSet(quarterSet);
return query;
// Event handler to execute the OLAP query
// after the cube completes initialization.
private function runQuery(event:CubeEvent):void {
// Get cube.
var cube:IOLAPCube = IOLAPCube(event.currentTarget);
// Create a query instance.
var query:IOLAPQuery = getQuery(cube);
// Execute the query.
var token:AsyncToken = cube.execute(query);
// Setup handlers for the query results.
token.addResponder(new AsyncResponder(showResult, showFault));
// Handle a query fault.
private function showFault(result:Object, token:Object):void {
Alert.show("Error in query.");
// Handle a successful query by passing the query results to
// the OLAPDataGrid control..
private function showResult(result:Object, token:Object):void {
if (!result) {
Alert.show("No results from query.");
return;
myOLAPDG3.dataProvider= result as OLAPResult;
]]>
</mx:Script>
<mx:OLAPCube name="FlatSchemaCube" dataProvider="{dp}" id="myMXMLCube3" complete="runQuery(event);">
<mx:OLAPDimension name="CustomerDim">
<mx:OLAPAttribute name="Customer" dataField="TITLE_NAME"/>
<mx:OLAPHierarchy name="CustomerHier" hasAll="true">
<mx:OLAPLevel attributeName="Customer"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="ProductDim">
<mx:OLAPAttribute name="Product" dataField="CORP_SITE"/>
<mx:OLAPHierarchy name="ProductHier" hasAll="true">
<mx:OLAPLevel attributeName="Product"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="QuarterDim">
<mx:OLAPAttribute name="HLMC" dataField="HLMC"/>
<mx:OLAPHierarchy name="QuarterHier" hasAll="true">
<mx:OLAPLevel attributeName="HLMC"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPMeasure name="Revenue"
dataField="CUR_YR_1"
aggregator="SUM"/>
</mx:OLAPCube>
<mx:OLAPDataGrid id="myOLAPDG3" defaultCellString="-" textAlign="right" color="0x323232" width="100%" height="100%"/>
<mx:ControlBar id="controls">
<mx:Button label="Pull Details" click="creationCompleteHandler3();"/>
</mx:ControlBar>
</v:MaxRestorePanel> -
Looking for working example using javafx.builders.HttpRequestBuilder
Hi,
Is there any working example using javafx.builders.HttpRequestBuilder and javafx.io.http.HttpRequest to communicate with application server?
Thanks in advance.
LDHi,
Is there any working example using javafx.builders.HttpRequestBuilder and javafx.io.http.HttpRequest to communicate with application server?
Thanks in advance.
LD -
Examples using UTL_FILE
Hi
Where can I to find examples using UTL_FILE, wirh Read an Write, Read a file, searcha data in tables, and Write in other filethis link about UTL_FILE has some examples.
-
Example using command protect & endprotect
hii gem's
im unable to find the difference when using protect...endprotect
without tht bcoz im getting same output
ex:
/: protect
PH 'THIS IS TEST'
PH 'THIS IS TEST'
/: NEW-PAGE
PH 'THIS IS TEST'
ENDPROTECT
please give a example using command protect & endprotect
THANK U
REWARDS FOR GUD REPLY
REGARDS
JAIPALHi Jaipal,
It is mainly used to prevent the page break
menas whatever lines you wrote between these protect and endprotect they are always printed in a single page only and they won't split into two pages though there is no full space
go to SE71 see any scripts pagewindows
you will find a lot of examples
/E TOTAL_AMOUNT
/: PROTECT
UL &ULINE(71)&
TO
TO ,,Total net value excl. tax &EKKO-WAERS&,,
&KOMK- FKWRT&
/: IF &SUM-EURO-PRICE& NE ' 0,00'
/ ,, EURO,,&SUM-EURO-PRICE&
/: ENDIF
/: ENDPROTECT
Reward points for useful Answers
Regards
Anji -
BC4J with other API using JClient
hi
i like to know whether new APIs can be binded with BC4J componets or not. now i am using JClient and its API to bind with BC4j components. but i like to use new API in jclient to bind with BC4j componets. or bindind the new APIS directly in to BC4j components.is that possibe to do that.if posssible i like to know the procedures with small samples too.
advance thanks for every one`s suggestion
malleshhi andrew,
i want to make java application with bc4J components but not using JClient with bc4j components.
i have some APIs like JCTable from grapecity. i like to use this and retrive values from bc4j components or even using swing jtable(only) also fine but not by jclient. how should i proced further. if possible give me small samples too -
Complete example using ReportViewerBean?
Where can I find a comprehensive code listing using ReportViewerBean to view a report?
In this post Re: Crystal Reports for Java - ReportViewerBean class, it is mentioned that Server, database, USer, Password are required for SQL Server connections. How do I pass these properties, i.e. what are the keys to insert in PropertyBag, and which methods & classes do I use to configure ReportViewerBean with the PropertyBag?
A practical example using SQL Server would be great...I found some good examples here:
http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaReportingComponent+SDKSamples#JavaReportingComponentSDKSamples-ReportModification
There are code samples of both the desktop (thick client - i.e. ReportViewerBean) and web versions. -
I have read all the PDF's of the page http://zone.ni.com/devzone/cda/tut/p/id/4435 :
LabVIEW_Toolkit_for_LMS_NXT_Getting_Started_Guide
How_To_Create_NXT_Blocks_with_NI_LabVIEW
LabVIEW_for_NXT_Advanced_Programming_Guide
but I want to know if you know or have more information about, tutorials, examples using the toolkit NXT for labview.
I want lo learn more about this toolkit, but there isn't enough information...
thanks everybody that can help mea list of LabVIEW leranings can be found here
http://www.ni.com/academic/lv_training/how_learn_lv.htm
for the NXT you can also look on the LEGO site
greetings from the Netherlands -
Odi examples using flexfields, groovy scripting, jython scritping sample
Dear All,
I would like to know if there are any good websites, which will provide details exampls using flexfields effectively, groovy scripting , jytyon scripting , using API in odi etc.
Basically I would be intersted in learning advanced ODI programming.
Thanks and Regards
Santythere is the other way: do it.
It's sad to do but ODI is quite wide as topic. Follow many blogs, read threads and understood them, ask and make many errors.
If you are not so distant from some guru guy of this forum it'd be an idea to take a cheaper training from them. -
Example using TPINIT with vb and tuxedo
Hello
Does anybody has an example, using the TPINIT, for security password in a ws client,
with tuxedo.
Thanks a lot for any help,
Ramiro Arraya A.
Dpto. Desarrollo
Sintesis S.A.
Santa Cruz - Bolivia
[email protected]Hi,
What version of Visual Basic are you using? If it is Visual Basic.Net then you should be using the Tuxedo .Net workstation client libraries and not the workstation libraries. More information can be found at:
http://docs.oracle.com/cd/E26665_01/tuxedo/docs11gr1/dotnet/dotnet_chapter.html
You should only attempt to use the standard workstation libraries if you are using Visual Basic 6 or earlier, i.e., non-.Net versions of VB.
Regards,
Todd Little
Oracle Tuxedo Chief Architect -
I have a Mac, an iPad and an iPhone. When I contact someone using iMessage, for example using my iPad, the entire conversation also appears on my Mac and iPhone. How do I stop this duplication?
Hello ctb4408,
With iMessage, it is meant to show up on all your iOS devices and Mac. If you do not want them to go across all your devices, then you will need to turn off iMessage on your iPad and Mac Pro.
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
Regards,
-Norm G. -
Load Akamai plugin example using Static plugin loading method
Hi,
I want to load Akamai plugin example using Static plugin loading method. For that, I passed "com.akamai.osmf.AkamaiBasicStreamingPluginInfo" as a class defination, but I got error stating, ReferenceError: Error #1065: Variable AkamaiBasicStreamingPluginInfo is not defined.
Makjosh once sent a post that the title was "Getting an error while loading the plugin using static plugin load method". I then follow the solution. But how can I add the dependent project(Flex/AS Build Path -> Library Path -> Add Project). As a result, I do not find the AkamaiBasicStreamingPlugin project only having the NetMocker project and the StrobeUnit project in it.
So I try to link the AkamaiBasicStreamingPlugin project use the following method(project properties->Project References->select "AkamaiBasicStreamingPlugin"), it still causes the same error.
Please help me.
Thanks.Hi,
A couple of things to look at:
1) Make sure you have the import statement in your project:
import com.akamai.osmf.AkamaiBasicStreamingPluginInfo;
2) Make sure you add the AkamaiBasicStreamingPlugin folder to your Flex Build Path (right click project, select "properties", then "Flex Build Path", in "Source Path" you need to add the plugin folder).
3) If you are still getting Error #1065, you can try a trick where you force the swf compiler to pull in the class:
private static const loadTestRef:AkamaiBasicStreamingPluginInfo = null;
Now you should be able to use getDefinitionByName to load the plugin:
var pluginResource:IMediaResource;
var pluginInfoRef:Class = flash.utils.getDefinitionByName(className) as Class;
pluginResource = new PluginClassResource(pluginInfoRef);
pluginManager.addEventListener(PluginLoadEvent.PLUGIN_LOADED, onPluginLoaded);
pluginManager.addEventListener(PluginLoadEvent.PLUGIN_LOAD_FAILED, onPluginLoadFailed);
pluginManager.loadPlugin(pluginResource);
Hope that helps,
- charles -
Example (using a TableModel) with RandomAccessFile
Hi,
Does anyone know of a good JTable example (using a TableModel) with RandomAccessFile?
I'm particularly interested to see how the TableModel is setup.
Also, when my JTable issues calls to the TableModel's "getValueAt()" method - to initialize its empty cells - it appears to call "getValueAt()" using randomly chosen row/column values (rather than filling the cells in "left-to-right"/"top-to-bottom" fashion).
Is this typical?
s
nullnevermind. I figured it out. thanks!
null
Maybe you are looking for
-
VMWare Fusion and Windows (any version)
Hey everyone, first of all I'm new to Macs so please don't flame me. I recently bought VMWare Fusion 2.0 for my Macbook so that I can run my Windows XP Home Edition virtually from my BootCamp Partition without having to reboot in order to switch back
-
Detailed pop up screen in selection screen - urgent
hai experts, how can we give a detailed pop up screen in selection screen. My requirement is, To display Details of spool Nos taken for current porogram to take print out from end user. from OWN SPOOL REQUEST displays all other programs........ can a
-
Itunes is not recognizing that my ipod is plugged in so I am unable to sync my device. What an I do to get itunes to notice my device is plugged in?
-
How to open multiple images in photoshop cs3
Hey, what im trying to do is open multiple images in photoshop cs3 and then blend the images together. But the problem that i am facing is that i can only open one image at a time. Can someone tell me step by step how to do this. Thanks for the help
-
"Open an Adobe Connect case" link leads to 404 Page Not Found error
From the "Adobe Connect Help / Adobe Connect Support" page at: http://helpx.adobe.com/adobe-connect/connect-support.html Click on "Open an Adobe Connect case". See 404 error page. That bad link points to: https://www.adobe.com/account/sign-in.support