Script output
Hello. Im making an app BB10 WebWorks and in the past I've been able to use the
blackberry.app.event.onExit()
commands to exit the application. But they don't work anymore? or am I wrong?
This is my config:
When I hit the exit button, that I created, in waving it gives me a message saying:
"blackberry.app.exit () has been called, in the real world that your application will close, here... you get this notification"
But in real life, it's not out.
Thank you in advance.
I solved this.
Tags: BlackBerry Developers
Similar Questions
-
SELECT statement in the script output window
Hello
SQL Dev 4.0.3
is it possible to include select statements from the command run the Script in the Script Output window?
Is the result in the window:
Select 1... ;
results
Select 2... ;
results
Joop
try to put "set echo on" (without the quotes) as the first line and make sure that you use F5 to run the script... like sqlplus.
-
Get and Set of dynamic Type via the Script output
I am running vRO 6.0.1. I built a dynamic type to Veeam. I can see the items in the inventory and can select them as attributes in workflows. I'm looking to get the dynamic Type via a script object and set it as a variable in the script output, but its does not work. I created the dynamic type using the type dynamic plug-in generator v2.
I have 'Veeam' namespace with types:
VeeamHost
jobFolder
job
I put an output with the 'DynamicTypes:Veeam.job' type attribute and the name jobOut
My script is just:
jobOut = Server.findForType ('DynamicTypes:Veeam.job' '29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae');
System.log ("Job found:" + jobOut "');
After the execution of the jobOut variable is empty. In the newspapers, I see:
Found job: DynamicWrapper (Instance): [DynamicTypesDynamicObject]-[class com.vmware.o11n.plugin.dynamictypes.model.DynamicObject] - VALUE: dynobj: [__ns:Veeam __id:29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae __tp:DynamicTypes:Veeam.job]
Does anyone have an idea of how complete the release of DynamicTypes:Veeam.job with the actual work of veeam I got via the script?
Could check you what happens if you replace the line
jobOut = Server.findForType("DynamicTypes:Veeam.job","29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae");
with
jobOut is DynamicTypesManager.getObject ("Veeam", "task", "29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae");.
-
Oracle SQLDeveloper 4.0, script output, how enabled
Hello,
I downloaded Oracle SQLDeveloper 4.0 to use and realized that when issuing of orders DDL 'or DML' as:CREATE TABLE (( itg.test () vcol VARCHAR2 ( )40()() TABLESPACE tbs_itg_data;
INSERT IN test VALUES ('test1');
INSERT IN test VALUES ('test2');
INSERT IN test VALUES ('test3');
is no longer poster the output script, indicating that the table was created and 3 were inserted tuples.
Please, How can I activate this feature in Oracle SQLDeveloper 4.0, like this function exist in version sqldeveloper 3.2.20.09.87.
Recognizing.
Silvio ButtenbenderI looked more and found the problem.
I changed my language setting to the Brazilian and you can see the problem. I will raise a bug and we can fix this.
There are two solutions of temporary workarounds that you can choose from
(1) perform all of the product in English or Spanish
in the sqldeveloper.conf file, add a line
AddVMOption - Duser.language = on (or for Spanish)
OR
(2) remove the translation class causes the error from the pot in which case only the scripts of worksheet will be in English and the rest of the product will be in your language
It will be a few bits of decompression etc so let me know if you want instructions on that.
-
The Get-VMResourceConfiguration script output
Hey guys im trying to a csv file with the output of each part of vms and and the number of shares they have. I'm a big Powershell basics, I am learning well so I thought to ask gurus here. I'll place a copy of the script here.
If I run the command Get-VMResourceConfiguration - VM xxx | Format-List-property CpuSharesLevel for example, I get the result OK but when I try the same thing in my script it doesn't work.
$start = get-Date
# Make an array with the result I want.
# Name, then the property I want in the output.
# A lot of sandfordit.com of the wiki code it thx much borrowed.
$table = New-Object system. Data.DataTable 'results '.
$col1 = New-Object system. Data.DataColumn ([string]) name
$col2 = New-Object system. Data.DataColumn NumCpuShares, ([string])
$col3 = New-Object system. Data.DataColumn CpuSharesLevel, ([string])
$table.columns.add ($col1)
$table.columns.add ($col2)
$table.columns.add ($col3)
$duration = (new-TimeSpan (Get-Date) $start). TotalSeconds
"Lagde tahon etter $duration sekunder.
# Me make a list of vmms in a folder of the virtual Center
$vms = get-file Boris_test | Get - VM | Sort - the property name
$duration = (new-TimeSpan (Get-Date) $start). TotalSeconds
"Inte antall vmer etter $duration sekunder.
foreach ($vm to $vms)
{
$row = $table. NewRow()
$row. Name = (Get-VM-name $vm). Name
$row. NumCpuShares = (Get-VMResourceConfiguration - VM $vm |) Property Format-List-NumCpuShares). NumCpuShares
$row. CpuSharesLevel = (Get-VMResourceConfiguration - VM $vm |) Property Format-List-CpuSharesLevel). CpuSharesLevel
$table. Rows.Add ($row)
"Til rad for $vm.
}
$duration = (new-TimeSpan (Get-Date) $start). TotalSeconds
"Tahon fyllt ut etter $duration dry.
$table | Format-Table
$table | Export-Csv-path test.csvTHX Boris
Hi Boris,.
If you change the two lines:
$row. NumCpuShares = (Get-VMResourceConfiguration - VM $vm |) Property Format-List-NumCpuShares). NumCpuShares
$row. CpuSharesLevel = (Get-VMResourceConfiguration - VM $vm |) Property Format-List-CpuSharesLevel). CpuSharesLevelin:
$VMResourceConfiguration = get-VMResourceConfiguration - VM $vm
$row. NumCpuShares = $VMResourceConfiguration.NumCpuShares
$row. CpuSharesLevel = $VMResourceConfiguration.CpuSharesLevelyour script works.
In the new code, I inserted an additional line to call Get-VMResourceConfiguration only one time. This will make the script a bit faster.
Best regards, Robert
-
I have a problem I can not quite understand. I execute a command that returns a string like this:
Server name: VM_TEST1
All I get is the value after the VM_, which corresponds to the actual name of the server. VM_ designated as a virtual machine. So I try to get just TEST1. I can do the following
$name_temp = $name | Select-String - pattern "servername" | Out-string. foreach {$_.split(":") [-1]}I'm left with: VM_VMTEST1 so I remove spaces before and the VM_
$name = $name_temp. Remove (0.4)
Now I find myself with just the name, but for some reason when I run the script is output like this:
TEST1
TEST2
TEST3
I do not understand why he puts three lines between each server name. This happens if I run the CLI, powergui or even export to a file.The problem you have is the combination of the Select-String and out-string cmdlets. The Select-String cmdlet does not return a string but returns a Microsoft.PowerShell.Commands.MatchInfo object. For example:
IgnoreCase: true
LineNumber: 1
Line: Server name: VM_TEST1
File name: InputStream
Path: InputStream
Model: Name of the server
Context:
Matches: {server name}
If you use the out-string cmdlet to a string of this object, it adds blank lines.
As you can see the original line is the line of this object property. We can use this line property in our code. Like this:
$name_temp = $name | Select-String - Pattern "servername" | ForEach-Object {$_.} {Line.Split ('_') [1]}
Best regards, Robert
-
Is there a console or a log output of script event? I tried to make a function that performs an alert correctly, but does not create a new document. I can't find is it possible to see if this syntax is incorrect or the command is just outdated.
In the code below, for example, I see the alert message, but no new document. I don't see anyway to see what the problem with him and I pulled this line directly from the photoshop scripting guide.
createDocument var = function() {}
Alert ("create new doc!");
App.Documents.Add (2.4);
};
IMHO, I don't think so. (I don't have none of that.)
Maybe I understand you only hurts.
The only thing you could do - own messages they close again by itself.
Something like this:
// CreateNewDocAndShowMessage.jsx // http://forums.adobe.com/thread/1237214?tstart=0 // regards pixxxelschubser var Call; createDocument (); function createDocument () { Call = "creating new doc!"; CallFunction (); app.documents.add (40,40); } function CallFunction () { win = new Window ("palette"); win.someMessage= win.add ("statictext", undefined, Call); win.show(); $.sleep(1500); win.close(); }
-
So after years of work with MS SQL, I now work with Oracle. One of the most important issues, I have is that in SSMS to Microsoft, you can press Ctrl + R to reduce the query results window.
(1) at - it a keyboard shortcut to reduce the output of the script window in SQL Developer?
(2) I would like to change the shortcut ctrl + r, as it is this habit at this point, but not sure what the name of the appropriate shortcut would be no more.
Thanks in advance for any help on this!Check this thread has been describing how it works, however, I don't think you can change the shortcut.
Re: Application "Shortcut key to show/hide the grid of results" = How has been implemented 2.1.1?
It will be useful,
Dani -
Script output on a grid?
I have a script that generates a table and updates, with a final SELECT statement at the end. How can I get the output of the SELECT final to go to a data grid rather than be mixed with the other output of the script?Instructions SELECT (for example CTRL-A), then run statement (F9).
Have fun
K. -
Simple AS2 script output produces Undefined
I am in Flash CS3 Pro with the settings of the specific flash for ActionScript 2.0 and Flash Player 9 in publication settings. If you run this script AS 2.0 in a framework, generates and undefined message in the output window. Any thoughts on why? I am an online course instructor and cannot understand what would generate the error since I'm following. Any help appreciated.
Thank you!!
ChrisYou must be followed are multiplying, since it is the name of the function, IE:
trace (multiply (5, 6));
-
Script output user customized in JAR
Hey all,.
I am currently working on the project of default AP comes with BDUS. Currently, I'm working on how I can get all documents, regardless of how valid to be sent to the web check application so that a user can view the Bill until other measures were taken.
My current thought is to check if the document is in the auditor and then based on that false set State to 550 how ever not worked so far.
With our thanks,
Hi, you can always force a user to check and accept specific fields to ensure the accuracy of 100% of the data in these fields manually.
By customizing the script as shown below note:
How a field still get to be invalid to the Auditor, for Validation user Force? (Doc ID 1238563.1)
This will allow you to stop all invoices to always check for validation.
-
small script output formatting
Hello Experts,
I'm trying to start with powerCLI, am very new to scripting.
want to go is to recover 'VMName OSFullName, IPAddress, host, data store' for a specific virtual machine or the VM...
To do this, I wrote
Param ($VMName)
$vm = get - VM $VMName
$vmg = get-VMGuest $vm
$vmg | HostName, IPAddress, OSFullName FT
Very well so far.
Then I don't understand how get Host IE ESX Server where the virtual computer and the data store that is used by this specific virtual machine.
If we see $vm | FL we see "docking" as one of the goods... I want that it should be displayed in my exit...
$vmg | FT, OSFullName, IPAddress, $vm host name. Host? something like that? It did not work
Even for the data store, if we see $vm | Get-data store, we get the name of the data store.
Please help me with this, I don't need to an advanced script, a simple solution that can fit into what I'm trying to do here...
You are tryingh mix properties of 2 variables in the cmdlet Select-Object/Format-Table 1.
It does not work like that.
But you can do
$vm = Get-VM $VMName $vmg = Get-VMGuest $vm $vmg | FT HostName, OSFullName, IPAddress, @{N="Host";E={$vm.Host.Name}},@{N="Datastore";E={($vm | Get-Datastore).Name}}
____________
Blog: LucD notes
Twitter: lucd22
-
Need help w / Script Groovy (Jet lag)
I'm writing a script groovy/function which displays the difference (DD:HH:MM:SS) between two dates (now rather than a time of inputt'ed).
I run the following script, which seems like it should work, but I get the error referenced below: DATEVAL is an input value. Any idea?
import groovy.time. *.
def now = new Date()
TimeDuration duration = TimeCategory.minus (now, dateValue)
length of back
Error:
the value returned by the Script: "the static value of the type: 'groovy.time.TimeDuration' ' is not assignable to the type of the Script output:" foglight-5 - admin:TimeDuration.
Screenshot:
change your output type of the object, see what it says to type when you test again.
-
Interface is not changed after Groovy Script executed successfully
Hi all
I tried to add a filter to interface (temporary) source.
There is only one set of data (the default) and the source data store has alias T001. This data store is also associated with other data warehouse.
The script seems to be run successfully, but I don't see any change in the Interface. I've included a few prints debug to check.
Am I missing something?
Thank you
My groovy script output is the following:
Found SAP_FDM_GLBALANCES_NEW
Found GL_BALANCES_NEW_1_CUSTOM
Found by default
Helper Created
Fact
Script was released.
Groovy script
Created by Studio ODI
package odi_sdk;
Utils
to import java.util.Collection;
Import java.util.Iterator;
Basic libraries
import oracle.odi.core.OdiInstance
import oracle.odi.core.config.OdiInstanceConfig
import oracle.odi.core.config.MasterRepositoryDbInfo
import oracle.odi.core.config.WorkRepositoryDbInfo
import oracle.odi.core.security.Authentication
import oracle.odi.core.config.PoolingAttributes
Context operators:
import oracle.odi.domain.topology.OdiContext
import oracle.odi.domain.topology.finder.IOdiContextFinder
Folder operators:
import oracle.odi.domain.project.OdiFolder
import oracle.odi.domain.project.finder.IOdiFolderFinder
User interface:
import oracle.odi.domain.project.OdiInterface
import oracle.odi.domain.project.finder.IOdiInterfaceFinder
Project managers:
import oracle.odi.domain.project.OdiProject
import oracle.odi.domain.project.finder.IOdiProjectFinder
Assistants of the interface:
import oracle.odi.interfaces.interactive.support.InteractiveInterfaceHelperWithActions
import oracle.odi.interfaces.interactive.support.targetkeychoosers.TargetKeyChooserPrimaryKey
import oracle.odi.interfaces.interactive.support.mapping.automap.AutoMappingComputerLazy
import oracle.odi.interfaces.interactive.support.mapping.matchpolicy.MappingMatchPolicyLazy
import oracle.odi.interfaces.interactive.support.actions.InterfaceActionSetTargetDataStore
import oracle.odi.interfaces.interactive.support.aliascomputers.AliasComputerDoubleChecker
import oracle.odi.interfaces.interactive.support.clauseimporters.ClauseImporterLazy
import oracle.odi.interfaces.interactive.support.actions.InterfaceActionAddSourceDataStore
Import oracle.odi.interfaces.interactive.support.actions.InterfaceActionOnTargetDataStoreComputeAutoMapping;
import oracle.odi.interfaces.interactive.support.actions.InterfaceActionAddFilter
Operators of transaction:
Import oracle.odi.core.persistence.transaction.support.DefaultTransactionDefinition;
Import oracle.odi.core.persistence.transaction.ITransactionDefinition;
Import oracle.odi.core.persistence.transaction.ITransactionManager;
Import oracle.odi.core.persistence.transaction.ITransactionStatus;
Data set:
Import oracle.odi.domain.project.interfaces.DataSet;
Data Bank:
Import oracle.odi.domain.model.OdiDataStore;
Import oracle.odi.domain.model.finder.IOdiDataStoreFinder;
Variables
def Url = "jdbc:oracle:thin:@EPM11123:1521:FUSION";
def Driver = "oracle.jdbc.OracleDriver";
def Master_User = "XXXXX";
def Master_Pass = "XXXXX";
def WorkRep = "XXXXX";
def Odi_User = 'SUPERVISOR ';
def Odi_Pass = "SUNOPSIS ';
def Project_Code = "AIF_SAP";
def folder_name = "SAP_FDM_GLBALANCES_NEW";
def Interface_Name = "GL_BALANCES_NEW_1_CUSTOM."
def file
INTF def
def ds
filter def = new String ("T001. BUKRS = 1000 ")
Connection
def masterInfo = new MasterRepositoryDbInfo (Url, driver, Master_User, Master_Pass.toCharArray (), PoolingAttributes()) new;
def workInfo = new WorkRepositoryDbInfo (WorkRep, new PoolingAttributes());
def odiInstance is OdiInstance.createInstance (new OdiInstanceConfig (masterInfo, workInfo));.
def auth = odiInstance.getSecurityManager () .createAuthentication (Odi_User, Odi_Pass.toCharArray ());
odiInstance.getSecurityManager () .setCurrentThreadAuthentication (auth);
def trans = odiInstance.getTransactionManager () .getTransaction (new DefaultTransactionDefinition());
Find the folder
Fold collection = (odiInstance.getTransactionalEntityManager () .getFinder (OdiFolder.class)) (Folder_Name, Project_Code) .findByName (IOdiFolderFinder);
for (Iterator < OdiFolder > it = fold.iterator (); it.hasNext ();) {
record = it.next ((OdiFolder));
println ("Found" + folder.getName ())
}
Find Interface
Collection intfcol = ((IOdiInterfaceFinder) odiInstance.getTransactionalEntityManager () .getFinder (OdiInterface.class)) .findByName (Interface_Name, Project_Code);
for (Iterator < OdiInterface > it = intfcol.iterator (); it.hasNext ();) {
INTF = it.next ((OdiInterface));
println ("Found" + intf.getName ())
}
Get the Dataset
DS = intf.getDataSets () .get (0) (DataSet);
println ("Found" + ds.getName ())
Create support
def = new InteractiveInterfaceHelperWithActions helper (intf, odiInstance, odiInstance.getTransactionalEntityManager ());
println ('creation of assistance')
Add the filter
helper.performAction (new InterfaceActionAddFilter (ds, filter, OdiInterface.ExecutionLocation.SOURCE));
println ("Done")
I don't see you commit the transaction. This is probably the reason that the changes do not come.
Chantal
-
Run all of the ddl scripts in pl/sql
Hello
If I'm using DBMS_METADATA. GET_DDL and DBMS_METADATA. GET_GRANTED_DDL for a particular user, can I get something like this:
CREATE THE USER "USERB" IDENTIFIED BY THE VALUES "B6C9E444D14CDE5B" DEFAULT "PROD_TBSP_03" OF TABLESPACE TEMPORARY TABLESPACE 'TEMP ';
GRANT "SELECT_CATALOG_ROLE" TO "USERB";
GRANT "SCHEMA_ROLE" TO "USERB";
Now, how I go run this in pl/sql? The following as immediate execution failure wouldn't be chasing all this at the same time:
DECLARE
v_str VARCHAR2 (4000 BYTE);
BEGIN
v_str: = "CREATE USER"USERB"IDENTIFIED BY VALUES"B6C9E444D14CDE5B"TABLESPACE TABLESPACE TEMPORARY 'TEMP '; DEFAULT 'PROD_TBSP_03'
|| Chr (10) | "GRANT"SELECT_CATALOG_ROLE"TO"USERB ";
|| Chr (10) | "GRANT"SCHEMA_ROLE"TO"USERB"; » ;
dbms_output.put_line (v_str);
EXECUTE IMMEDIATE v_str;
EXCEPTION
WHILE OTHERS
THEN
dbms_output.put_line ('Exception encountered: ' |) SQLCODE |' -error message: ' | substr (SQLERRM, 1, 200));
END;
/
Any ideas on how to make it work?
Thank you guys
Leo
version of v$:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for Linux: release 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Published by: leocoppens on May 22, 2013 14:43Well well maybe it would be easier to register your generator script output in a new file and run it separately.
Maybe you are looking for
-
Cannot permanently change the location. Failed guard in Evansville, Indiana
before the recent Mozilla Firefox update of my new glasses homepage displays local news. When I said a search for local businesses, I always sites of the region of southwestern Ohio. Now, I went by default to Evansville Indiana and nothing that I mak
-
I recently downloaded Lion and now my printer does not print.
I recently downloaded "Lion" and now my printer is not working. I keep getting "the printer is not connected.
-
my phone has sound but the screen is blank
I made a phone call. I can hear people talk but may the screen is blank and I cannot complete the call. What should I do?
-
KB951550, 951944, 967642 Office Suite Service Pack 2
Updates above do not treat each about 6 x daily I would shut my laptop these 4 loading updates and did not err error code 646. I don't use MS Office programs. Update, I changed so that I have decide which updates to download and install so I check wh
-
HP Laserjet P1102W: Poor print job
I bought a HP Laserjet P1102W, and after printing of less than 500 pages, he started leaving large voids in the pint. I replaced the cartridge but it is printing a gray, not black. It tells me that this is not a problem with the cartridge, but with t