How to get job ID/alias of jobs within a job group programatically
We are trying to automate the export of job group/job definition from tidal in xml file, we know that you can use REST API to get job definition as xml.
by using http://localhost:8080/api/tes-6.0/Job.get/<Job ID/alias>
but the problem is when you use it for group it does not tell you what are all the child of this job group.
here is the output you get from REST API
<entry><id>354</id><title>TestJOb</title><source>com.tidalsoft.webclient.tes.dsp.db.datatypes.Job</source><tes:job><tes:agenttype>6</tes:agenttype><tes:childrencount>6</tes:childrencount><tes:agentostype>1</tes:agentostype><tes:ownername>IDX_Workgroup</tes:ownername><tes:agentname>machinename</tes:agentname><tes:parentname>\Test</tes:parentname><tes:rerundependency>N</tes:rerundependency><tes:dependencylogic>1</tes:dependencylogic><tes:durationminimum>60</tes:durationminimum><tes:parentactive>Y</tes:parentactive><tes:unixprofile>0</tes:unixprofile><tes:type>1</tes:type><tes:normalexittorange>0</tes:normalexittorange><tes:estimatedmethod>1</tes:estimatedmethod><tes:predecessorsvalue>N</tes:predecessorsvalue><tes:isnotes>false</tes:isnotes><tes:historyretention>30</tes:historyretention><tes:jobdetailid>354</tes:jobdetailid><tes:durationestimated>60</tes:durationestimated><tes:trackingmethod>1</tes:trackingmethod><tes:active>Y</tes:active><tes:durationmaximum>60</tes:durationmaximum><tes:repeat/><tes:id>354</tes:id><tes:dirty> </tes:dirty><tes:ownerid>13</tes:ownerid><tes:fullpath>\Test\TestJOb</tes:fullpath><tes:concurrency>3</tes:concurrency><tes:isrunbook>false</tes:isrunbook><tes:excludeabnormalduration>4</tes:excludeabnormalduration><tes:inheritrepeat>Y</tes:inheritrepeat><tes:inheritoptions>Y</tes:inheritoptions><tes:disablecarryover>1</tes:disablecarryover><tes:normalexitfromrange>0</tes:normalexitfromrange><tes:successorsvalue>N</tes:successorsvalue><tes:inherittimewindow>N</tes:inherittimewindow><tes:lastusermodifiedtime>2013-05-13T00:47:30-0700</tes:lastusermodifiedtime><tes:allowrerun>Y</tes:allowrerun><tes:parentid>18</tes:parentid><tes:agentid>2</tes:agentid><tes:priority>50</tes:priority><tes:inheritagent>N</tes:inheritagent><tes:name>IDX.TestWebService</tes:name><tes:nearoutage>3</tes:nearoutage><tes:saveoutputoption>Y</tes:saveoutputoption><tes:alias>354</tes:alias><tes:allowunscheduled>Y</tes:allowunscheduled><tes:createtime>2013-05-12T23:32:05-0700</tes:createtime><tes:inheritcalendar>N</tes:inheritcalendar><tes:waitOperator>N</tes:waitOperator><tes:exitcodenormaloperator>1</tes:exitcodenormaloperator><tes:lastchangetime>2013-05-13T00:47:30-0700</tes:lastchangetime><tes:clientcachelastchangetime>2013-05-13T00:47:30-0700</tes:clientcachelastchangetime></tes:job></entry>
it gives you number of child in the group, but does not give further info like what are the JOb ID/alias of children.
we need this information to dynamically get job definition of all the jobs within a job group.
Any help much appreacited.
Solved myself.
Similar Messages
-
How to get absolute path of a form within the Forms
Aslam o Alikum (Hi)
How to get absolute path of a form within the Forms 6i or 9i
For example
i am running a from "abc.fmx" from C:\myfolder directory
can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
I already have some code to do all this for you see:
http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt -
By API action, how can I get the list of user IDs within a
specific group (which is created by API) ?
or How can I get the group (which is I create by API) ID to
which a specific user belong by API action?
Thanks
AlexThe poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.
-
How to get highest number of open cursors within the current calendar day
Hi all ,
i need to know how to get the highest number of open cursors within the current calendar day.
Thanks ,823030 wrote:
the issue is my customer is getting the error ORA-01000: maximum open cursors exceeded and we need an sql statment that gets the following values :
-highest number of open cursors experienced in the current calendar day.
-current open cursors
-and maximum open cursorsThis error is rare. It happens when
a) the value of the open cursor parameter is set extremly low (default is something like 1000). Low would be something like 10.
b) <strike>you have many concurrent users(=sessions) and </strike>the application does not use bind values
In this case each select will open a new cursor, instead of reusing it.
c) you have a select that opens a cursor for each line. This can happen with a statement where you have the CURSOR keyword somewhere in the select or where clause. Those cursors will be closed when the select is finished. But during the run time of the select, all cursors stay open.
To track the number of "open cursors" during the day you would need to implement some monitoring. Maybe based on the view that was already mentioned.
Edited by: Sven W. on May 16, 2011 2:30 PM - since the parameter is on session level, other open cursors should not influence it much. -
How to get the edit channel link from within the channel?
Following problem:
I want to include a link to edit the settings of a channel in the channel contents. The link should be the same as the edit button on the frame of the channel container. Searching through the provider jsps I found that the edit link is created in single.jsp. The code I need seems to boil down to
<dt:obtainContainer container="$JSPProvider">
<dtsingle:singleContainerProvider>
<dtpc:getStringProperty key="editContainerName" id="editContainerName" scope="request"/>
<dt:getName id="SingleContainer" scope="request"/>
<jx:declare id="editContainerName" type="java.lang.String"/>
<jx:declare id="SingleContainer" type="java.lang.String"/>
<dtsingle:obtainSelectedChannel>
<A HREF="<dtpc:getDesktopURL/>?action=edit
&provider=<%=editContainerName%>
&targetprovider=<dt:getName/>
&containerName=<%=SingleContainer%>"
TARGET="_self"> EDIT! </A>
</dtsingle:obtainSelectedChannel>
</dtsingle:singleContainerProvider>
</dt:obtainContainer>However I am unable to get that working in the channel, as I always receive a ProviderException on the line with
<dt:obtainContainer container="$JSPProvider">
What am I doing wrong, or is does the obtainContainer simply not work from within a channel?
If anyone can help me out to get the edit link it would be greatly appreciated. Any hints and/or sample code would help alot.
thanks!
Message was edited by:
obstler42Hi Detlev ,
Thank you very very much . We could figure out how to get the URL and Driver information from there .I have rewarded the points also.
Thanks
Ravi
Message was edited by: Ravi Krishnan -
How to get names of INCLUDE or FORM within included forms
Hello,
I want to get names of Include program and included form within included forms.
I tried SY-REPID or SY-CPROG but these two SYST variables return the name of report program that performs the form, not the name of Include or form.
Please give me any advice about how to get names of include / included form.
thanks and regards,
HozyYou can use the statement
READ REPORT <Report name> into itab
to read the source code into an internal table.
Later you can use the "Contains Pattern" operator to get the statements that you need. -
How to get the difference between two columns in a column group
Hi All,
My first time here and really new to programming. I would like to get the difference between 2 columns that are inside
a column group.
Here is my sample table below: The Column Group is PeriodNumber and can only choose 2. like 1 and 2.. I would like to have a third row which will simply calculate the difference between the amounts in PeriodNumber 1 and 2.
PeriodNumber
Account 1 2
1) Cash 10,000 15,000
2) Receivables 12,000 11,500
3) Equipment 5,000 5,500
Total Assets 27,000 32,000Hi yabgestopa,
From your description, you want to get the difference between two columns in a column group. After testing it in my environment, we can use custom code to achieve your requirement. For more details, you can refer to the following steps:
Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
Dim Shared Num1 As Integer
Dim shared Num2 As Integer
Public Function GetAmount(Amount as Integer, Type as String)
If Type = "1" Then
Num1=Amount
Else
Num2=Amount
End If
Return Amount
End Function
Public Function GetDif()
Return Num1-Num2
End function
Right-click the second column to insert a third column with Outside Group-Right.
Then use the expressions below in the matrix.
=Code.GetAmount(Fields!Amount.Value,Fields!PeriodNumber.Value)
=code.GetAmount(Sum(Fields!Amount.Value),Fields!PeriodNumber.Value)
=Code.GetDif()
The report looks like below.
If you have any questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to get status of last execution of a scheduler job
Hi,
I am trying to write a pl/sql code that can manually the scheduler job (one time type/ not a repetitive) which are in retry scheduled state.
even after execution is successfull job is not dropped even if i set auto_drop to true.
I need some way to capture execution status of dbms_scheduler.run_job('job_name');. based on which i can manually drop the job if it is successfull.
taking the value from dba_scheduler_job_run_details doesn't seem to be good option as there may be multiple logs and we don't what time interval we need to match.
can anybody help me in this.
Thanks in advance.Hi,
I'm a little confused at what is happening. It sounds like the following is the case
- You have created a run-once job and set restartable to TRUE and auto-drop to TRUE. It has failed a few times and is now in the RETRY SCHEDULED STATE .
- Now you have fixed the issue and want to force a rerun and drop the job if it has succeeded.
If this is the case you have several options.
- just wait until the job has retried itself, you can see the next scheduled date in the dba_scheduler_jobs view
- use dbms_scheduler.run_job(use_current_session=>false) . You will have to monitor dba_scheduler_job_run_details to see the status of the job run but you can easily use log_date to figure out which row is your row. Just select the row with log_date > sysdate when you called run_job. If that run succeeds, you will manually need to call drop_job.
- use dbms_scheduler.run_job(use_current_session=>true) . Because this runs the job action in the foreground it will hang until the job action has finished. Any error will be thrown as a foreground PL/SQL error. If there is no error, the action has succeeded and you can go ahead and do a drop_job.
Hope this helps,
Ravi. -
How to get rid of alias network volume
This is weird and I do not know how to deal with it:
I connected a volume to my new iMac (SL10.6.7); it usually is connected to an Airport Extreme, but I need to load much data from it and the network is taking too long.
Now, SL will not be able to read it because it does not recognise that volume. It wants me to fix the alias.
Funny though, my Tiger systems do not have this problem whether I connect it via USB or as 'AirDisk'.
Even funnier, when I connect from a Tiger machine to the SL iMac with that volume attached to it with USB, I can read from it, though SL still holds it can not be found.
My conclusion is that I have to get rid of the alias used to point to that volume, but SL won't let me do it and I do not know where to find a list with aliases I can manually remove.
Any ideas?You do not have two networks because router is broadcasting only one network...The network you are able to see is the preferred network on you computer.
On your computer,remove all the preferred network and check again. -
How to get the Weblogic Server Id from within java code
I would like to log which server (among a cluster) a certain job is running on. Is there a way to get the server id from within Java code (this code is in a session bean if that is relevant.)
By server id I mean the "Name" column in the summary of servers on the weblogic console.
Thanks,
kenUse the two entries close to the bottom of the page: "list WebLogic
MBeans:listMBeans.jsp
display MBean attributes and operations:showMBean.jsp"
Nils
Anatoly wrote:
>
Cameron,
That page has these items on it:
which one do you think helps with my issue?
Misc WebLogic examples
LongRunningTask
Execute tasks in parallel using WebLogic Execute Threads
Weblogic stats (5.1)
Reload Servlet(s) programmatically (5.1)
Network classload from WebLogic:using reflection,or the launcher
Weblogic 5.1 debugging properties
Seppuku pattern readme
Using dynamic proxies to intercept EJB invocations (6.1)
list WebLogic MBeans:listMBeans.jsp
display MBean attributes and operations:showMBean
Thanks to Marcelo Caldas for filter by type option and nice UI!
Using com.sun.jdmk.comm.HtmlAdaptorServer with WebLogic 6.1
Cool
EJBGen
Dimitri
back
"Cameron Purdy" <[email protected]> wrote in message news:<3c7a745d$[email protected]>...
JMX ... see http://dima.dhs.org/misc/ for some info on JMX in Weblogic.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Anatoly" <[email protected]> wrote in message
news:[email protected]..
Does anyone know who to get the managing server URL's port
from within the EJB code running on Weblogic 6.1?
The URL port is not default (not 7001), but when creating
initial context, I am not specifying the URL in properties.
Due to that, trying to the the PROVIDER_URL property from
environment does not return anything.
Appreciate any responses.
-Anatoly
============================
[email protected] -
How to get Sum for my Elapse Time string for my group
Hi,
How can I get the sum of an elapse time string in my group footer 2 and group footer 1 from the report screenshot attached.
I have a report that display TimeIn and TimeOut of an employee.
For the total time I have created a formula that will take my time in seconds and displaying it in hrs, minutes and seconds.
How can I get the sum of all the total time per day and display this in my group footer 2.
As well I will need to add the grand total to group footer 1 for the total of days.
The formula I have for the total time is as follow:
WhileReadingRecords;
NumberVar TotalSec := {TimeLogs.TotalTime};
NumberVar Hours := Truncate (Remainder ( TotalSec , 86400) / 3600) ;
NumberVar Minutes := Truncate (Remainder ( TotalSec , 3600) / 60) ;
NumberVar Seconds := Remainder (TotalSec , 60) ;
Totext ( Hours , '00' ) + ':' +
Totext ( Minutes , '00' ) + ':' +
Totext ( Seconds , '00' )
This is a seperate question below but related as well to this report.
Another question I have is how can I round up for example 03:30:58 to 03:31:00
And also how can I round down for example 03:26:10 to 03:26:00
Any help would be appreciated.
Thank you,
JoeHi Jamie,
Well I ran into an issue with this. My Daily Total, there is no issue, it is displaying the proper time. But when I add a summary to my Group Footer 1, it doesn't add up properly.
If I select only 1, 2, or 3 days my Date Range Total is adding fine but when selecting 5 days for example, as you can see from the picture below, for an unknowned reason the total of hrs is wrong.
Do you know why this is happening.
Than you for your help.
Joe
Picture below, this is working fine? -
How to get the first or last row value from a group using ntile
I want to query and use ntile to divide by data in 4 groups (quartiles). I got this part no problem and it returns the list of rows and the ntile bucket value for each one.
What I want though is to get only the first row from each ntile group (so in effect the max, q3, median, q1 and min values from the whole result). Of course I coud get max, min and median directly using the other functions, but how about the values for q3 and q1?
My query contains this:
NTILE(4) OVER (ORDER BY salary DESC NULLS LAST) as ntile
So I want the highest, lowest, middle, q3 and q1 values for the salaries.
Should I be using NTILE, ROWNUM, PERCENTIL_DIST....?
Any ideas? Thanks in advance.SQL> select ename,sal,
2 NTILE(4) OVER (ORDER BY sal DESC NULLS LAST) as ntile
3 from emp
4 /
ENAME SAL NTILE
KING 5000 1
FORD 3000 1
SCOTT 3000 1
JONES 2975 1
BLAKE 2850 2
CLARK 2450 2
ALLEN 1600 2
TURNER 1500 2
MILLER 1300 3
WARD 1250 3
MARTIN 1250 3
ENAME SAL NTILE
ADAMS 1100 4
JAMES 950 4
SMITH 800 4
14 rows selected.
SQL> select ename,
2 sal
3 from (
4 select ename,
5 sal,
6 ROW_NUMBER() OVER (PARTITION BY ntile ORDER BY sal DESC NULLS LAST) as rn
7 from (
8 select ename,
9 sal,
10 NTILE(4) OVER (ORDER BY sal DESC NULLS LAST) as ntile
11 from emp
12 )
13 )
14 where rn = 1
15 /
ENAME SAL
KING 5000
BLAKE 2850
MILLER 1300
ADAMS 1100
SQL> SY. -
How to get the RGB Working Space from within a Filter Plug-In?
Within my Filter Plug-In I need to access the image's icc profile data. I know this can be accomplished with the according data structure 'iCCprofileData'. But what if there is no profile assigned to the image? Then iCCprofileData is NULL and the default should apply which is the 'RGB Working Space' (assuming the Plug-In works in RGB mode only, what it does). But how can I get to know what the 'RGB Working Space' is from within my Plug-In?
As far as I know, the profile provided to the plugin API should never be NULL. If the image is not color managed, it still should have the working space profile in the ICCProfileData field.
-
How to Get ZERO and Non-ZERO Values in rowcount using Group by?
Dear All,
How can I get Non-ZERO and ZERO row count values in SQL using Group by? I can get non-zero values but when I want NULL should be returned to non-zero values it is ignoring ZERO values in output?
Any hint?
Thanks
GQHi,
Something like
select count(case col
when 0
then 1
end) zero_count,
count(case nvl(col,1)
when 0
then null
else 1
end) nonzero_countRegards
Peter -
How to get The users from a Collaborator that is type Group.
Hello, I'm trying to get the users (and their emails) of a collaborator inside a Master Agreement that is type group.
I've tried the following methods:
1- Using a IBeanHomeLocator to get the GroupIBeanHomeIfc (with the static variable of sHOME_NAME) and then trying to get the Group with the DocumentId that the colaborator's method (getDocumentId()) returns and the GroupIBeanHome method findGroup().
The result was null
2 - Using exactly the same method as before, but instead of using the DocumentId, I did a query, in order to get the field USER_GROUP_OBJECT_ID, to get the Id of the group.
The result is still null.
I'm not sure if there is a direct way to get it, or if i'm misusing the GroupIBeanHomeIfc.
Thanks in advance!Hi Oscar,
In the document collaborator class there is a method getCollaboratorType() which returns CollaboratorTypeEnumType and there are certain values assigned to them.
user - A user collaborator
group - A group collaborator
contact - A user contact
So, hashcode of 2 returns the group.
Please have a look in to the below code.
collaborators = doc.getCollaborators();
if(collaborators.size() > 0)
collabIter = collaborators.iterator();
while (collabIter.hasNext())
member = collabIter.next();
collabType= member.getCollaboratorType();
hashValue= collabType.hashCode();
if(hashValue==2)
collabName= member.getDisplayName();
throw new ApplicationException("collabName:" +collabName);
In the above code collabName returns the name of the group, with this you can search for the specified group using IbeanHomeLocator for group and then you can get the members in it and their mail Id's
Hope it helps you and let me know if you need any assistance.
Thanks,
Raj. -
How to get LAST_VALUE from an Analytic Function within a report?
My analytical report has following sql:
SELECT....
DENSE_RANK() OVER (PARTITION BY pco.appropriation ORDER BY pco.appropriation,
pco.fiscal_year ASC NULLS LAST) "Duration Years",
SUM(pco.quantity) OVER (PARTITION BY sms.data_source ORDER BY
sms.data_source, cst.display_nm RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT
ROW) "Quantity Cum",
FROM ........
I have a request to calculate the percentage value by dividing MAX or LASTVALUE of these two functions at current row level:_
%DENSE_RANK = LAST_VALUE of ? DENSE_RANK() OVER (PARTITION BY pco.appropriation ORDER BY pco.appropriation,
pco.fiscal_year ASC NULLS LAST) "Duration Years"
/ (divide by)
DENSE_RANK() OVER (PARTITION BY pco.appropriation ORDER BY pco.appropriation,
pco.fiscal_year ASC NULLS LAST) "Duration Years"
%SUM = LAST_VALUE of ? SUM(pco.quantity) OVER (PARTITION BY sms.data_source ORDER BY
sms.data_source, cst.display_nm RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT
ROW) "Quantity Cum",
/ (divide by)
SUM(pco.quantity) OVER (PARTITION BY sms.data_source ORDER BY
sms.data_source, cst.display_nm RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT
ROW) "Quantity Cum"
Example of report output:
DENSE RANK DENSE RANK % SUM SUM %
1 10% 10 10%
2 20% 20 20%
3 100% 30 100%
1 10% 10 10%
2 20% 20 20%
I appreciate your help to implement LAST_VALUE function for this case. Many thanks in advance.
Rob.
Edited by: user10455955 on Dec 17, 2008 9:25 AMHi Rod,
Thank you for replying. My intentions are:
1. to get last value of DENSE_RANK(), and divide by fisrt until last DENSE_RANK() value within defined partition.
Example: I have DENSE_RANK() from 1 to 7, and want to divide last value (7) by 1, 2,... so on until 7, so last value 7 always renders 100%
2. to get last value of cumulative total, and divide fisrt until and last cumulative total value within defined partition
Example: I have 3 values 1, 2, 3. Fisrt cumulative total is 1 , second cumulative is 3 (1+2) , third cumulative is 6 (1+2+3). I want to divide last cumulative total 6 by 1, then 2, then 3.
Thanks again.
Rob.
Edited by: user10455955 on Dec 22, 2008 9:16 AM
Edited by: user10455955 on Dec 22, 2008 9:18 AM
Maybe you are looking for
-
How do I give less memory to my boot camp and more to my Mac HD?
I had a friend set up my Bootcamp for me. (He is great with this type of thing and I had no clue.) I used to have a job where I needed to use Windows to run my work program. So he gave a certain amount of my memory to that and left a certain amoun
-
Functional global set as reentrant vi in CLD sample?
In the CLD atm sample question attached. It set its functional global as a reentrant vi... Now let me get this right , a non reentrant vi, no matter how many times it's called, stores its data into one location. So a functional global should be a non
-
Seiban Wizard - Generating Tasks for existing Projects errors out
Hi All, As I try to generate tasks using Seiban Wizard for an existing project, I am getting an error -"APP-PJM-58127: Task Creation returns the following error : Project ID is invalid" Navigation: 1) Accessing Project Manufacturing Super User Respon
-
Adobe Flashdrive says there is an update that needs to be loaded. Safe?
Adobe Reader says there is a new Flashdrive update. Is it safe?
-
How do i get my itunes to load my music onto my new mac
how do i get my music from itunes to load on to my new mac