Variable to reference the source dir
Hi,
I want to add a file to my project that can be referenced using a variable like project.sourcepath or something like that so that I can upload the file being referenced to cvs and when it's downloaded I know it's going to be the correct path on whichever machine the cvs is downloaded to.
Is there a standard java method to do this? eg (myApp.TheFilePath)
Cheers,
Geoff
If you can't find something suitable in system properties (see the System.getProperties method), then no.
You can create your own persistent property value, see java.util.Properties and java.util.perfs, and check the java command -D option as a way to set a property when starting java.
If you use Java 5, then you can also set an os environment variable and retrieve it from within Java, see the System class method getenv(varname).
Similar Messages
-
"Referenced" Table Cells not copying formatting of the source table
Hi-
I have one sheet that has a rental inventory table that is quite large. On another page, I have a "printable" version that has filtering applied to hide certain columns.
What I did orginally was duplicate the table on the inventory page, cut it, then go to my printable sheet, and paste it. I now have a duplicate version of the original. Then I go and select all cells, hit delete and all the contents disappear leaving me with the correct formating.
At this point I can type in cells and see that the formating is intact (certain cells are in Bold for example).
I delete the test contents, then reference the first cell (a1) to the source table, then copy the references across that entire printable table. Once I've done that, all of the contents of the source table now appear in the "printable" table.
The problem is, that once I reference the source table, the formatting goes away. The data shows up correctly: ie, =Equip List :: B2, but the specific cell formating is gone.
What am i doing wrong here?
Thanks
Matt"I delete the test contents, then reference the first cell (a1) to the source table, then copy the references across that entire printable table."
If you do this by selecting and Copying the first cell containing the formula, that "copy" includes the formatting of the copied cell. If you then Paste, the Paste includes that format setting. You could try Edit > Paste and Match format.
If that doesn't work, you could try this:
Enter, then fill the formula as you've done, then set the format of each cell or group of cells to include the attributes you want at that location.
Regards,
Barry -
Couldn't Connect to the source mailbox - New-MailboxRestoreRequest
Having major issues with recovering a mailbox for a user, we have created a recovery mailbox db and it's mounted fine and not in a dirty shutdown state, but when I try any variations of 'New-MailboxRestoreRequest' I get the below message:
New-MailboxRestoreRequest -SourceDatabase "RDB18" -SourceStoreMailbox "roger Hodges" -TargetMailbox otest -AllowLegacyDNMismatch
Couldn't connect to the source mailbox.
+ CategoryInfo : NotSpecified: (0:Int32) [New-MailboxRestoreRequest], RemotePermanentException
+ FullyQualifiedErrorId : 3E0814F2,Microsoft.Exchange.Management.RecipientTasks.NewMailboxRestoreRequest
I've tried Restore-Mailbox also and get the below error:
Restore-Mailbox -Identity "otest" -RecoveryDatabase "RDB18" -RecoveryMailbox "Roger Hodges" -TargetFolder Recovery
Confirm
Are you sure you want to perform this action?
Recovering mailbox content from mailbox 'Roger Hodges' in the recovery database 'RDB18' to the mailbox for 'OWA Test
([email protected])'. This operation may take a long time to complete.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): a
Error was found for OWA Test ([email protected]) because: Error occurred in the step: Opening source mailbox.
Failed to open mailbox by GUID with error: An unknown error has occurred., error code: -1056749260
+ CategoryInfo : InvalidOperation: (0:Int32) [Restore-Mailbox], RecipientTaskException
+ FullyQualifiedErrorId : A9E3B394,Microsoft.Exchange.Management.RecipientTasks.RestoreMailboxHi,
Please try the following command to check this issue:
New-MailboxRestoreRequest -SourceDatabase "RDB18" -SourceStoreMailbox "roger Hodges" -TargetMailbox otest -
TargetRootFolder “folder name” –AllowLegacyDNMismatch
In addition, when running this cmdlet, the source mailbox in the recovery database needs to be identified using one of three possible values: the
DisplayName,
MailboxGUID, or
LegacyExchangeDN values. Keep in mind that you cannot reference the source mailbox using the Exchange Alias when performing a restore. You can use
Get-MailboxStatistics cmdlet to find this information.
Best Regards. -
How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable
Hi,
I have been tasked with making a complex package more generic.
To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
So to help articulate my question further I have create a package and database as follows; -
USE [KWPlay]
GO
/****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tblTest](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[Description] [nvarchar](50) NULL,
CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
I populated this table with a single record.
I unit tested the SQL within SSMS as follows;
SELECT * FROM dbo.tblTest
Result; -
ID
Description
1
Happy
DECLARE @myParam NVARCHAR(100)
SET @myParam = 'Sad'
UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
SELECT * FROM dbo.tblTest
Result; -
ID
Description
1
Sad
Within the package I created two variables as follows; -
Name: strSQL
Scope: Package
Data Type: String
Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
Name: strStatus
Scope: Package
Data Type: String
Value: Happy
I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
However when I run the above package I get the following error; -
SSIS package "Package.dtsx" starting.
Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
"Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Execute SQL Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.
The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
errors.
SSIS package "Package.dtsx" finished: Failure.
I also tried; -
Name: strSQL
Scope: Package
Data Type: String
Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
However I received the error; -
SSIS package "Package.dtsx" starting.
Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Execute SQL Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package.dtsx" finished: Failure.
Kind Regards,
Kieran.
Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/Tried; -
Name: strSQL
Scope: Package
Data Type: String
Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
and; -
Result; -
SSIS package "Package.dtsx" starting.
SSIS package "Package.dtsx" finished: Success.
Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column.
Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/ -
I'm sure this can be done as I know we used something similiar at my old work place, below is an image showing what I am attempting to do.
We used this to create more portable / shareable assets files which when symbols are linking to code, the code was very often in different directories on different machines.
So we had set up environment variables in the OS to point to source directories and then used these variables in the source paths.
As long as everyone had these variables set up then it would all work.
Anyone know the correct way to do this in Flash CC
Thanks in advance!
Best Wishes
Rhys Thomassinious the problem with doing that is that the changed path gets into the code repository as well, so you wind up with everyone going back and forth changing it to their own value, which is a hassle. If you use relative paths and a standard project setup, then it all "just works" without a problem.
For example, this is the setup I use:
.dev
.thisProject
.Flash1
Flash1.as
.Flash1
Flash1.xfl
.view
.audioAssets
.customViews
.SoundLib
SoundLib.xfl
SoundLib.swc
.bin <swfs are output here
.xml
.core
.control
.model
.service
.view
We have a "base project" that you check out to start a new project (we do heaps of similar work), and the paths are already set up to be relative. Having each project point to its own copy of the core code allows for fine-grained control of which revision you're using--we've even pointed deliberately to old versions or branches on rare occasions.
The bin folder is actually shared with the website repository, which is in a different directory from the Flash source code (in the website, it has a different name). This allows the generated swfs to be easily updated and ensures that the latest XML is being used both for development and on the site.
The "thisProject" folder actually includes a Flash Builder workspace with all the standard shortcuts, etc., already set up. This is primarily because of how the "default path" works when you create a new Flash Pro project in FB. Because we output a level up from the workspace, we hack the .metadata folder every time, but that's a small change. -
URL Variables used to set the source property for the VIDEO COMP.
Can you take a url variable and have that variable be the value for the source parameter of the video playback component in flash CS4 or CS5?
Example:
the url with url variable: http://www.mydomain.com/videos/videoplayer.cfm?vplayer=videofile1
the actionscript 3.0
var videoFile:String = [who do I get the url variable's value here?]
myVideoPlayer.source = videoFile +".mp4"
in the end the file that should be playing in the video player is: videofile1.mp4
Thanks.Either
A) Using ExternalInterface, call a Javascript function that returns window.location.search
B) Use Javascript to create FlashVars from window.location.search -
XI is not picking the file from source dir after exported from DEV to QA
Hi Experts,
We have moved one XI object from Dev to QA. It was working fine Dev but in QA XI system not picking the file from the source directory.
I have checked Communication Channel monitoring and receiver determiniation everything is fine. But still it is not picking the file.
Could you please help us.
Regards
SowmyaHi
We have used the CMS to transport XI objects. Everything has been configured automatically. I checked all the configuration and everthing seems to be fine.
Could you please give any more suggestions.
Regards
Sowmya -
Is there a way to reference a variable name by the value of a String?
I realize my title may not be expressing the question accurately so...
In perl I can do this:
$varname = "nIterations";
${$varname} = 27;
which is the same thing as
$nIterations = 27;
Is there a way to do this in Java?
eg I want something like
String varname = new String( "nIterations" );
How can I refer to a variable programmatically from the value of the varname string, or is there not a way to do this?
Thanks!
-AndyThank you, I'm very new to java and am not sure I am seeing the big picture. I searched the forums and found this example:
Map textFieldMap = new HashMap();
textFieldMap.put("1", new JTextField());
textFieldMap.put("2", new JTextField());
JTextField textField = (JTextField)textFieldMap.get("1");
textField.setText("some value"); // text field associated with "1"
What I am confused with is how those textfields correspond to the 48+ textfields I have already placed on my applet canvas. I understand the example above as far as using the map to access specific textfields, but I am not sure how those textfields will match up to the ones I have ( which are named right now S11 , S12, ..., S116, ..., S31, S32, .., S316
I am sure I am missing something.
Thank you
-Andy -
How to reference the Parent view Object attribute in Child View object
Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
I have created two ADF view object based on two function return
Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
I will appreciate your help.
ThanksI have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
Thanks for quick response.
com.ContractualSalaryByYearlyView xml
<ViewObject
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
</DesignTime>
<Variable
Name="empId"
Kind="where"
Type="java.lang.Integer">
<TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
</Variable>
ContractualSalYearlyByYearViewLink.xml file
<ViewLinkDefEnd
Name="ContractualSalaryByYearlyView"
Cardinality="1"
Owner="com.ContractualSalaryByYearlyView"
Source="true">
<DesignTime>
<Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item
Value="com.ContractualSalaryByYearlyView.EmpId"/>
<Item
Value="com.ContractualSalaryByYearlyView.StDate"/>
<Item
Value="com.ContractualSalaryByYearlyView.EndDate"/>
</AttrArray>
</ViewLinkDefEnd>
<ViewLinkDefEnd
Name="ContractualSalaryForYearView"
Cardinality="-1"
Owner="com.ContractualSalaryForYearView">
<DesignTime>
<Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item
Value="com.ContractualSalaryForYearView.EmpId"/>
<Item
Value="com.ContractualSalaryForYearView.StDate"/>
<Item
Value="com.ContractualSalaryForYearView.EndDate"/>
</AttrArray>
</ViewLinkDefEnd> -
How to reference the value of items in a generic report
Hello
I have created a generic report. The source is a PL/SQL-Function returning a query stored in a package of the parsing schema, using the apex_item package. I set the p_item_id values depending on p_idx and rownum. In the browser I can see the unique (id="...") of the items. The report works well.
One column is an analytical funtion and shows for every row the same value. The column is hidden. Depending on that value I want to show or hide buttons.
How can I get the value of this column. Apex_application.g_fxx don't work. Apex_application.g_fxx.COUNT =0 for all possible columns.
So how can I reference the value in the report.
Any suggestions?
ThanksHallo varad
Should I do really?
The SQL is a function in a package returning a sql-string. It's a join over five tables (one outer join) refrences some other package variables. For testing purposes I put in into the region, but nothing changed. SQL is ok.
So here is the region source:
declare
v_mdt_id pkg_typ_lagerplatzbelegungen.mdt_id_coltype;
v_laplstat_frei pkg_typ_lagerplatzbelegungen.laplstat_id_coltype;
v_laplstat_leermeldung pkg_typ_lagerplatzbelegungen.laplstat_id_coltype:=1;
v_sql VARCHAR2(10000);
BEGIN
v_mdt_id :=:g_mdt_id;
v_laplstat_frei:=pkg_konst_lagerplatzstati.fkt_laplstat_frei;
v_sql:= ' WITH lapl_lagepos
AS
(SELECT (rownum ) zeile
,laplbe1.mdt_id
,laplbe1.lapl_koor1
,laplbe1.lapl_koor2
,laplbe1.lapl_koor3
,laplbe1.lapl_koor4
,laplbe1.lapl_koor5
,lagepos.lage_id
,lagepos.lagepos_id
,pkg_sel_lagerplaetze.fkt_get_lapl_kurzbez_display( laplbe1.lapl_koor1
,laplbe1.lapl_koor2
,laplbe1.lapl_koor3
,laplbe1.lapl_koor4
,laplbe1.lapl_koor5
, laplbe1.mdt_id) lapl_kurzbez
,laplbe1.lavo_id
,mat.mat_id
,mat.mat_id mat_id_neu
,mat.matart_id
,mat.matart_id matart_id_neu
,mat.mdt_id_mat
,mat.mdt_id_mat mdt_id_mat_neu
,mat.mat_name1
,mat.mat_name2
,lagepos.lagepos_menge
,lagepos.meschl_id
,NULL zumenge
,NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)
,CASE
WHEN NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0) = 0
AND (laplbe1.laplstat_id < '||v_laplstat_frei||' OR NVL(laplbe1.lage_id,0) > 0) THEN 0
ELSE
NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)+1
END leerkennung
FROM (SELECT laplbe.mdt_id
,laplbe.lapl_koor1
,laplbe.lapl_koor2
,laplbe.lapl_koor3
,laplbe.lapl_koor4
,laplbe.lapl_koor5
,laplbe.lage_id
,laplbe.laplstat_id
,lapl.lapl_kurzbez
,lapl.lavo_id
FROM lagerplaetze lapl
,lagerplatzbelegungen laplbe
WHERE lapl.lapl_kurzbez ='||'''77B04B1'''||'
AND lapl.mdt_id ='||v_mdt_id||'
AND laplbe.mdt_id ='||v_mdt_id||'
AND laplbe.lapl_koor1 = lapl.lapl_koor1
AND laplbe.lapl_koor2 = lapl.lapl_koor2
AND laplbe.lapl_koor3 = lapl.lapl_koor3
AND laplbe.lapl_koor4 = lapl.lapl_koor4
AND laplbe.lapl_koor5 = lapl.lapl_koor5
AND laplbe.mdt_id = lapl.mdt_id) laplbe1
, (SELECT lage_id
,lagepos_id
,mdt_id
,mat_id
,matart_id
,mdt_id_mat
,meschl_id
,lagepos_mengeneinheit
,lagepos_menge
FROM lagergebindepositionen
WHERE NVL(lagepos_archiviert,0) =0
AND mdt_id = '||v_mdt_id||') lagepos
,(SELECT mat_id
,matart_id
,mdt_id_mat
,mat_name1
,mat_name2
FROM materialien
WHERE mat_archiviert= 0
AND NVL(mdt_id_mat,'||v_mdt_id||')='||v_mdt_id||') mat
WHERE laplbe1.lage_id = lagepos.lage_id(+)
AND lagepos.mat_id =mat.mat_id(+)
AND lagepos.matart_id = mat.matart_id(+)
AND lagepos.mdt_id_mat=mat.mdt_id_mat(+))
SELECT APEX_ITEM.hidden (31, zeile,'''',''P95801_f31_''||zeile ) zeile
,APEX_ITEM.text (32, leerkennung,10,10,''P95801_f32_''||zeile ) "Leerkennung "
,APEX_ITEM.hidden (33,mdt_id ,'''' ,''P95801_f33_''||zeile ) mdt_id
,APEX_ITEM.hidden (34,lapl_koor1 ,'''' ,''P95801_f34_''||zeile) lapl_koor1
,APEX_ITEM.hidden (35,lapl_koor2 ,'''' ,''P95801_f35_''||zeile ) lapl_koor2
,APEX_ITEM.hidden (36,lapl_koor3 ,'''' ,''P95801_f36_''||zeile) lapl_koor3
,APEX_ITEM.hidden (37,lapl_koor4 ,'''' ,''P95801_f37_''||zeile) lapl_koor4
,APEX_ITEM.hidden (38,lapl_koor5 ,'''' ,''P95801_f38_''||zeile ) lapl_koor5
,APEX_ITEM.hidden (39,lage_id ,'''',''P95801_f39_''||zeile ) lage_id
,APEX_ITEM.hidden (40,lagepos_id ,'''' ,''P95801_f40_''||zeile) lagepos_id
,APEX_ITEM.display_and_save(41,lapl_kurzbez,''P95801_f41_''||zeile) "Lagerplatz"
,APEX_ITEM.display_and_save(42,lavo_id ,''P95801_f42_''||zeile) "Fachtyp"
,DECODE(mat_id ,NULL, APEX_ITEM.popup_from_lov (43,'''',''MATLAVO'','''','''',0,'''',''''
,''onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" ''
,''YES'',''P95801_f43_''||zeile)
,APEX_ITEM.display_and_save(43,mat_id,''P95801_f43_''||zeile)) "Material-Id"
,DECODE(matart_id,NULL, APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)
, APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)) matart_id
,DECODE( mdt_id_mat,NULL, APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )
,APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )) mdt_id_mat
,APEX_ITEM.display_and_save(46,mat_name1 ,''P95801_f46_''||zeile) "Materialname"
,APEX_ITEM.display_and_save(47,mat_name2 ,''P95801_f47_''||zeile) "Materialbezeichnung"
,APEX_ITEM.display_and_save(48,lagepos_menge ,''P95801_f48_''||zeile) "Lagernde Menge"
,APEX_ITEM.display_and_save(49,meschl_id ,''P95801_f49_''||zeile) "Mengenschlüssel"
,APEX_ITEM.text(50,zumenge,10,10,'' style="width:120px" onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" '',''P95801_f50_''||zeile ) "Einzulagernde Menge"
FROM lapl_lagepos';
RETURN v_sql;
end;
Thank you for help -
Implementing an Effect that looks ahead in the source
Hello all,
I need to create an application which reads from one AVI file, processes each frame with a special effect, and outputs the result to another AVI of the same format. Fairly standard stuff.
I am fairly new to JMF but I think I have the basic methodology right: creating a Processor, and then during the Configured state, adding a new Effect to the Codec chain of the Processors first TrackControl.
The thing I am unsure about is this: the Effect I am programming needs to 'look ahead' in the source i.e. it needs to see frames 1, 2 and 3 before it can write frame 1 of the output.
Does the process(Buffer input, Buffer output) method of Effect is called for each frame of the video, providing a Buffer for each frame at a time? In this case can I buffer the first three frames for myself, and withhold output until the third frame?
Or is process(Buffer input, Buffer output) called once by the Processor, with the in/out buffers represent the entire stream and able to be read and written to 'asynchronously'? In this case, when I use javax.util.BufferToImage to get my actual frames to apply the effect, do successive calls step through the frames, how do I reference specific frames from this context?
I'll stop speculating now - I hope someone can nudge me in the right direction... Thanks very much for any advice.Hello Darkmoon_UK,
Your problem seems similar to my one.
I want to implement a slow motion effect with jmf. I also read from an avi file.
First thing I hava to ask is, whether your effect simply plays the original video into the new file, if you only add
output.copy(input);
into process()-method.
I dont't know if it is important, but I add the new Effect to the codec chain AFTER ConfiguredCompleteEvent, not during Configured state. And this works (at least simply playing the video works, not my slow motion effect ;-) ).
Next thing is you should insert some System.out.println()s into your process()-method code to discover that it is called several times (for each frame of the video).
I think it is possible to buffer all the frames into an collection out of java.util.* and make a specific variable (int frameCounter) count the frames by calling frameCounter++; at the end of the process()-method. Same effect is using input.getSequenceNumber(), I think. With the help of a Collection of java.util (ArrayList or something else), it should be possible to access any frame out of the video.
Well, I'm also still learning and trying to force JMF to do what I want, not the other way round, as it is at the moment. I hope this little bit of information I gave you could help you solve your problem or at least nudge you in the right direction.
Bye,
sscheer81 -
Is there a way to reference the property node value of a control in another VI?
Let's say that I have a situation like the one shown in the attached image.
I have an interlock system which is basically a bunch of booleans
If for example the "RF Enable" button in the "interlock VI" is true, then I should be able to flick the ON switch in my other VI (in the back), but if the value is FALSE, then it shouldn't allow it.
In other words, how do I check the value of a control across 2 separate VIs (running simultaneously)?
Thanks!!
Attachments:
sample.jpg 295 KBIs one VI launched by the other, or are they launched independently? If it's the former then you just need to pass the control reference to the subVI via terminal node. If it's the latter there are a variety of ways to handle this:
Use a global variable - somewhat "sloppy" as it requires a global variable, and can lead to race conditions. In the "Interlock" VI you just set the value of the global variable when you change the value of the Boolean. In the other you're just reading it.
Action Engine - Ben wrote a Community Nugget a while back. Similar concept to a global variable.
Queue - The "Interlock" VI simply pops an element onto the queue with the value. The other VI just monitors the queue for a new element. It just needs to have something like a shift register to keep track of the last state.
Use the VI Server to access the controls of the "Interlock" VI. You can do this by accessing the "Interlock" VI's pane and get the control references. With the control reference you just need to get the value with a property node.
... (I'll let others chime in) -
How do I reference the data object in a DataGrid to show an image correctly in Acrobat?
I'm creating an inferface for an Acrobat application and I'm having a issue with displaying an image in a grid. When I hard code the source="statusNONE.png" it works as intended (with an image, not the image associated with each grid item), however, when I try to use the source="{data.@icon}" to reference the dataProvider (XMLListCollection) I get nothing. Not a broken image or anything. I think I may just not be referencing the XMLListCollection correctly, otherwise I don't know why it would work with hard coding vs. fetching the string from the XML.
//Application Header (Flex 4.5)
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%" height="100%" creationComplete="eaton_creationCompleteHandler(event)"
currentState="Review">
//Sample of XML that gets used as basis for XMLListCollection
<Annots>
<Annot name='TEST' index='14' feedback='' canConstruct='0' icon='statusNONE.png'/>
</Annots>
//creation of the XMLListCollection from String
[Bindable] protected var fullXML:XML;
[Bindable] protected var fullXMLCol:XMLListCollection;
protected function loadXML(xmlString:String):void
fullXML = new XML(xmlString);
var fullXMLList:XMLList = fullXML.children();
fullXMLCol = new XMLListCollection(fullXMLList);
//DataGrid
<s:DataGrid left="0" top="0" bottom="0" width="142" dataProvider="{fullXMLCol}"
requestedRowCount="4" rowHeight="30"
top.Confirm="87">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="@name" headerText="Annotations"></s:GridColumn>
<s:GridColumn headerText="status" width="30" >
<s:itemRenderer>
<fx:Component>
<s:GridItemRenderer>
<s:Image width="30" height="30" source="{data.@icon}"/> //THIS IS THE PART THAT SEEMS TO BE GIVNG ME TROUBLE!
</s:GridItemRenderer>
</fx:Component>
</s:itemRenderer>
</s:GridColumn>
</s:ArrayList>
</s:columns>
<s:typicalItem>
<fx:Object dataField1="Sample Data" dataField2="Sample Data" dataField3="Sample Data"></fx:Object>
</s:typicalItem>
</s:DataGrid>
Additional information. I'm using the resources tab for the flash embedding in Acrobat for my images. This works when I am hard coding the file name string works for the source without having to add a full path, the images are not technically bundled into the swf. I just don't understand why using the data object to get that same string would show different results.
tl;dr: GridItemRenderer works to show images when hard coded but not when using {data}.
UPDATE: Figured it out, needed to add a toString() to the data.@icon. I had assumed it was a string being handed over, I assumed wrong.Probably because data.@icon isn't a String, it is an XMLList, and source property is an Object not a String so the runtime doesn't automatically convert it.
Try [email protected]() -
What are differences between the target tablespace and the source tablespac
The IMPDP command create so manay errors. But the EXAMPLE tablespace is transported to the target database successfully. It seems that the transported tablespace is no difference with the source tablespace.
Why create so many errors?
How to avoid these errors?
What are differences between the target tablespace and the source tablespace?
Is this datapump action really successfull?
Thw following is the log output:
[oracle@hostp ~]$ impdp system/oracle dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
Import: Release 10.2.0.1.0 - Production on Sunday, 28 September, 2008 18:08:31
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "SYSTEM"."SYS_IMPORT_TABLESPACE_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_TABLESPACE_01": system/******** dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
CREATE TABLE "OE"."CUSTOMERS" ("CUSTOMER_ID" NUMBER(6,0), "CUST_FIRST_NAME" VARCHAR2(20) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE, "CUST_LAST_NAME" VARCHAR2(20) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE, "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" , "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" , "NLS_LANGUAGE" VARCHAR2(3), "NLS_TERRITORY" VARCHAR2(30), "CREDIT_LIMIT" NUMBER(9,2), "CUST_EMAIL" VARCHAR2(30), "ACCOUNT_MGR_ID" NU
ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
CREATE TABLE "IX"."ORDERS_QUEUETABLE" ("Q_NAME" VARCHAR2(30), "MSGID" RAW(16), "CORRID" VARCHAR2(128), "PRIORITY" NUMBER, "STATE" NUMBER, "DELAY" TIMESTAMP (6), "EXPIRATION" NUMBER, "TIME_MANAGER_INFO" TIMESTAMP (6), "LOCAL_ORDER_NO" NUMBER, "CHAIN_NO" NUMBER, "CSCN" NUMBER, "DSCN" NUMBER, "ENQ_TIME" TIMESTAMP (6), "ENQ_UID" VARCHAR2(30), "ENQ_TID" VARCHAR2(30), "DEQ_TIME" TIMESTAMP (6), "DEQ_UID" VARCHAR2(30), "DEQ_
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "SH"."CUSTOMERS" 9.850 MB 55500 rows
. . imported "SH"."SUPPLEMENTARY_DEMOGRAPHICS" 695.9 KB 4500 rows
. . imported "OE"."PRODUCT_DESCRIPTIONS" 2.379 MB 8640 rows
. . imported "SH"."SALES":"SALES_Q4_2001" 2.257 MB 69749 rows
. . imported "SH"."SALES":"SALES_Q1_1999" 2.070 MB 64186 rows
. . imported "SH"."SALES":"SALES_Q3_2001" 2.129 MB 65769 rows
. . imported "SH"."SALES":"SALES_Q1_2000" 2.011 MB 62197 rows
. . imported "SH"."SALES":"SALES_Q1_2001" 1.964 MB 60608 rows
. . imported "SH"."SALES":"SALES_Q2_2001" 2.050 MB 63292 rows
. . imported "SH"."SALES":"SALES_Q3_1999" 2.166 MB 67138 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."REGIONS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."REGIONS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."COUNTRIES" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."COUNTRIES" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."LOCATIONS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."LOCATIONS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."DEPARTMENTS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."DEPARTMENTS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOBS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOBS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."EMPLOYEES" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."EMPLOYEES" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOB_HISTORY" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOB_HISTORY" TO "EXAM_03"
ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
ORA-39112: Dependent object type INDEX:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"OE"."CUST_LNAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"OE"."CUST_EMAIL_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"PM"."PRINTMEDIA_PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_CREDIT_LIMIT_MAX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_ID_MIN" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type CONSTRAINT:"PM"."PRINTMEDIA__PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
ORA-39112: Dependent object type CONSTRAINT:"IX"."SYS_C005192" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUSTOMERS_PK" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_LNAME_IX" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_EMAIL_IX" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"PM"."PRINTMEDIA_PK" creation failed
Processing object type TABLE_EXPORT/TABLE/COMMENT
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39112: Dependent object type REF_CONSTRAINT:"OE"."CUSTOMERS_ACCOUNT_MANAGER_FK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39083: Object type REF_CONSTRAINT failed to create with error:
ORA-00942: table or view does not exist
Failing sql is:
ALTER TABLE "OE"."ORDERS" ADD CONSTRAINT "ORDERS_CUSTOMER_ID_FK" FOREIGN KEY ("CUSTOMER_ID") REFERENCES "OE"."CUSTOMERS" ("CUSTOMER_ID") ON DELETE SET NULL ENABLE
ORA-39112: Dependent object type REF_CONSTRAINT:"PM"."PRINTMEDIA_FK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
Processing object type TABLE_EXPORT/TABLE/TRIGGER
ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
ORA-39112: Dependent object type INDEX:"OE"."CUST_UPPER_NAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_UPPER_NAME_IX" creation failed
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
ORA-39112: Dependent object type PROCACT_INSTANCE skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
ORA-01403: no data found
ORA-01403: no data found
Failing sql is:
BEGIN
SYS.DBMS_AQ_IMP_INTERNAL.IMPORT_SIGNATURE_TABLE('AQ$_ORDERS_QUEUETABLE_G');COMMIT; END;
Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_V" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_N" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_R" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_E" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
Job "SYSTEM"."SYS_IMPORT_TABLESPACE_01" completed with 63 error(s) at 18:09:14Short of trying to then reverse-engineer the objects that are in the dump file (I believe Data Pump export files contain some XML representations of DDL in addition to various binary bits, making it potentially possible to try to scan the dump file for the object definitions), I would tend to assume that the export didn't include those type definitions.
Since it looks like you're trying to set up the sample schemas, is there a reason that you wouldn't just run the sample schema setup scripts on the destination database? Why are you using Data Pump in the first place?
Justin -
How can I either move or view the source of a JAVA CLASS user object?
I am using Oracle 8i and I have the following JAVA CLASS objects in my database. I need to move some of these objects to a different database.
1) How can I do this?
2) How can I view the JAVA source code since these are classes?
My knowledge of Oracle is limited. I have searched and searched and I can't find the answer. Any help would be greatly appreciated
SELECT object_name, object_type
FROM user_objects
WHERE object_type IN ('JAVA SOURCE', 'JAVA CLASS', 'JAVA RESOURCE')
ORDER BY object_type, object_name;
OBJECT_NAME OBJECT_TYPE
/d082321a_DpsJarStaticFilename JAVA CLASS
DirHelperStatic JAVA CLASS
DirHelperStatic$1 JAVA CLASS
DpsJar JAVA CLASS
DpsJarException JAVA CLASS
DpsJarStatic JAVA CLASS
FilenameFilterImpl JAVA CLASS
FtpClient JAVA CLASS
FtpClient$InputStreamProxy JAVA CLASS
FtpClient$OutputStreamProxy JAVA CLASS
FtpClientStatic JAVA CLASS
FtpException JAVA CLASS
FtpReply JAVA CLASS
FtpTest JAVA CLASS
LoadXml JAVA CLASS
LoadXmlStatic JAVA CLASS
UrlFileUtils JAVA CLASS
Utils JAVA CLASS
dir JAVA CLASS
Thanks,
BrianThe source far java class objects that are not derived from java source objects
(which is the case here, and is typically the case, such as when one loads
classes into the database using loadjava on a jar that contains only .class
files) does not exist in the database (just as it does not exist in a jar which
contains only .class files). So there is essentially no way to view the source, short of extracting the bytecodes and using some decompiling tool. I don't recall what methodologies exist for extracting bytecodes in 8i. As for transferring
the classes to another database, the standard Oracle import/export tool can do this.
Maybe you are looking for
-
I have a cube hierarchy that has full path [Location].[Location Hierarchy].[Department].&[DEPT 07].&[East].&[Manager].&[site code] I can return the full hierarchy using something like [Location].[Location Hierarchy].[All] However, I want to return ev
-
Nik Collection doesn't work after CC update
After installing the latest CC updates, I can only use HDR Efex Pro 2...none of the rest of the collection work even after I have re-installed the entire collection.
-
Hi Guys! I have a doubt.... In my WF for approval access in CUP we have define 3 STAGES: 1- First Approval: Just define the function the user should have, he doesn´t choose any role- 2- Security: Selec the roles 3- Role Owner When Security Lead selec
-
How can I add KANNADA(India) as display language on my iphone4?
how can I add KANNADA(India) as display language on my iphone4? your feedback will be highly appreciated. Thank you
-
Hi all, I have a string of hex characters say aeef1234569a Now I want to store this in a byte array as (0xae,0xef,0x12,0x34..} How can this be done. Many thanks. Ram