Scheduling weekly using SDK
Hi,
I could not find a way of scheduling a report on a weekly basis. What is the code to schedule a report to run weekly on say Monday and Wednesday?
Similarly, I could not find the way to set some of the details of the option "X Day of Nth Week of the Month". How can I choose this option and set the "Second" week and "Monday" option?
I could not find any property/method in SchedulingInfo to do this.
Many Thanks.
You need to schedule it based on a calendar. I found this example in our note system.
The following code schedules a report for a specific day (in this case 12/14/2004) and every Tuesday thereafter.
Dim ceSchedulingInfo = SchedulingInfo
ceSchedulingInfo = ceReport.SchedulingInfo
ceSchedulingInfo.IntervalDays = 7
ceSchedulingInfo.BeginDate = "2004/12/14"
ceSchedulingInfo.Type = CeScheduleType.ceScheduleTypeWeekly
or
Dim ceSchedulingInfo = SchedulingInfo
ceSchedulingInfo = ceReport.SchedulingInfo
ceSchedulingInfo.Type= CeScheduleType.ceScheduleTypeCalendar
ceSchedulingInfo.CalendarRunDays.Add(14,12,2004,0,0,0,CeDayOfWeek.ceDayTuesday, 0)
Similar Messages
-
Print a report in crystal Report using SDK
Hi Dear;
any body can publish a sample code how can i print a report built in crystal report using SDK?
regards;Hi Dany,
Hope the following code will help u .
before calling the function make a XML by using dataset.writexml, in which you have to pass the name of your stored procedure.
for this you have to decalre commantype as stored procedure.
first parameter of this is rpt name . asecon paramer is ur xml name which you got from DAtaset.writexml.
Sub ShowReport(ByVal rptName As String, ByVal SourceXML As String)
Try
Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDoc.Load(rptPath)
For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
oSubReport = rptObject
rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
End If
Next
Next
rptView.ReportSource = rptDoc
rptView.Show()
Dim oFrm As New System.Windows.Forms.Form
rptView.DisplayGroupTree = False
rptView.Dock = System.Windows.Forms.DockStyle.Fill
rptView.Location = New System.Drawing.Point(0, 0)
oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
oFrm.Controls.Add(rptView)
oFrm.Name = "rptForm"
oFrm.Text = "rptForm"
oFrm.ResumeLayout(False)
oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
oFrm.TopMost = True
oFrm.ShowDialog()
Catch ex As Exception
oApplication.MessageBox(ex.Message)
End Try
End Sub -
Creating Schedule lines in Scheduling agreement using LSMW
Hi,
I want to upload multiple schedule lines in scheduling agreement using LSMW. I have done the recording and maintained multiple lines in input file. However during execution LSMW creates only one line and keeps on ovewritting the same line. Please let me know how can I create multiple schedule lines.
RegardsFirst you should search for existing standard LSMW migration objects that possibly cover your scenario. These normally take care of complex header / multiple items / multiple subitems relations.
With a recording you can only load flat structures. Sometimes a "create new lines" / "enter first line" / "save transaction" logic can be constructed to load multiple items to a header (or even subitems to an item?) with a recording, but this can be pretty awkward.
Thomas -
Creating a Scheduled Task using PowerShell v4
So here is my question. I'm trying/wanting to create a scheduled task using PowerShell v4 on Server 2012R2. I want to task to run on the 1st day of every month. The parameter for -Monthly -Day is not available. I need to use PowerShell
to create the Scheduled Task because the Task will be running with a group Managed Service Account credentials so the Scheduled Task can not be created via the Task Scheduler GUI.
Thanks in AdvanceHere is a functioning task It can be easily edited in PowerShell or in notepad to alter the timing
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.1" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Author>W8TEST\user01</Author>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2014-06-04T21:31:32.0459499</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByMonth>
<DaysOfMonth>
<Day>1</Day>
<Day>12</Day>
<Day>24</Day>
</DaysOfMonth>
<Months>
<January />
<February />
<March />
<April />
<May />
<June />
<July />
<August /
<September />
<October />
<November />
<December />
</Months>
</ScheduleByMonth>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<RunLevel>LeastPrivilege</RunLevel>
<UserId>W8TEST\jvierra</UserId>
<LogonType>InteractiveToken</LogonType>
</Principal>
</Principals>
<Settings>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>notepad.exe</Command>
<Arguments>test.txt</Arguments>
<WorkingDirectory>c:\temp</WorkingDirectory>
</Exec>
</Actions>
</Task>
I have edited and reloaded the XML many, many times. It works very nicely.
¯\_(ツ)_/¯ -
How can I parse the document in WebI using sdk?
I wanna to parse the document in WebIntelligence using sdk. My question is :
1) By which sdk, I can parse the document. 'Report Application Server SDK' ?
2) I wanna to parse the 'Self-Defined SQL' and 'Query' components of the document. Can the sdk support this request ?
My enviroment is BO XI Release 2.
Thanks all.Hi shao,
1) By which sdk, I can parse the document. 'Report Application Server SDK' ?
'Report Application Server SDK' is For Crystal reports so for WebIntelligence or DesktopIntelligence Report it is "Report Engine SDK".
Apart from this if you want to do more on these reports "BusinessObjects Enterprise SDK" can be used.
You can get more information on below link for XI R2.
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
For question 2,
I am not sure about it but Report Engine SDK provides classes and interface of Data Providers.
i.e. Building and Editing Data Providers and Working with Recordsets.
Also you can have look on
Report Engine SDK's
Interface "Query"
Hope these helps you.
Thanks,
Praveen. -
How to show screen design in .srf (from Screen Painter) using SDK?
How to show screen design in .srf (from Screen Painter) using SDK?
You need to use the LoadBatchActions method of the Application object to load .SRF files.
John. -
INVALID_QUEUE_NAME : Error while scheduling message using qRFC
Hello SDNers
We are currently performing our PI 7.1 upgrade and one of our scenario uses a Sender SOAP of the type EOIO. We tried executing this scenario in PI 7.1 XID environment and in it worked fine without any errors but in our PI 7.1 QA environment it is giving the following errors
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Message Split According to Receiver List
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">SCHEDULE_ERROR</SAP:Code>
<SAP:P1>XBQOC___*</SAP:P1>
<SAP:P2>INVALID_QUEUE_NAME</SAP:P2>
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Error while scheduling message using qRFC (queue name = XBQOC___*, exception = INVALID_QUEUE_NAME)</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Can you please exaplian what could be the issue we are facing.
Thanks.
Kiran
Edited by: Kiran Sakhardande on Oct 22, 2008 4:08 PMHI Kiran,
Have gone throgh the following link?
INVALID_QUEUE_NAME
Regards
Sridhar Goli -
How do I do validation using SDK.
How do I do validation using SDK.
We have created different warehouses for the client business operations.
For eg:
1. Inspection Stores
2. Rejection Stores
3. Main Stores
In Goods Return & A/P Credit Memo, other than RejectionStores is
selected, we want to generate a warning message.
How do I do this through SDK.
I need the code sample for the following activity:
1. Reading the data available at each row of the current form (Goods
Return/ A/P Credit memo)
2. Validate the data with a paricular warehouse
3. Generate warning message.
I could not find any samples related to this.There is a method called MessageBox for the Application object. Have a look at
the documentation, everything is there. -
Error on creating Draft Purchase Quotation by using SDK
Hi,
I have encountered an error while trying to create a Draft Purchase Quaotation by using SDK.
I am trying on SAP Business One 8.81 PL02
My Code:
Dim objPQ As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
objPQ.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseQuotations
Error on code:
objPQ.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseQuotations
Error message:
'540000006' is not a valid value for property 'DocObjectCode'. The valid values are: '15' - 'Delivery', '16' - 'Returns', '203' - 'A/R Down Payment', '13' - 'A/R Invoice', '14' - 'A/R Credit Memo', '132' - 'Correction Invoice', '20' - 'Goods Receipt', '21' - 'Goods Return', '204' - 'A/P Down Payment', '18' - 'A/P Invoice', '19' - 'A/P Credit Memo', '17' - 'Sales Order', '22' - 'Purchase Order', '23' - 'Sales Quotation', '67' - 'Inventory Transfers', '59' - 'Goods Receipt', '60' - 'Goods Issue', '163' - 'A/P Correction Invoice', '164' - 'A/P Correction Invoice Reversal', '165' - 'A/R Correction Invoice', '166' - 'A/R Correction Invoice Reversal'
Thank you.Hey Simon,
Have you solved this case?
Im using 8.81 (8.81.316) PL:08, but oPurchaseQuotation does not appear in SAPbobsCOM.BoObjectTypes.
Dim objPQ As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
objPQ.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseQuotations
Somebody knows what is wrong?. -
Getting error "This file was removed" when trying to use sdk/test/httpd.
Hi, I wish to test my website using httpd.js. Now when I am trying create a add-on and use sdk/test/httpd by adding following line
var { nsHttpServer } = require("sdk/test/httpd");
I am getting following error:
Message: Error: This file was removed. A copy can be obtained from:
https://github.com/mozilla/addon-sdk/blob/master/test/lib/httpd.js
As new to Add on development I am unable to resolve this issue.
Thanks in advance.Apologies for redirecting you to a different site, but this forum primarily handles end-user support. For extension development advice, please try here: [https://forums.mozilla.org/viewforum.php?f=7 Extension Development - Mozilla Add-ons Forum].
-
How use SDK to insert text in indesign using c++
Hello All
I want to use Indesign CS5.5 SDK in my c++ project first to create Indesign Document then insert text in textframe.
How include SDK in my project ?
Is it right method to create indesign Application using SDK.
#include "IApplication.h"
#include "ISession.h"
# include "IDocumentCommands.h"
virtual IApplication * QueryApplication()=0 ;
ISession * GetExecutionContextSession();
IApplication application(GetExecutionContextSession()->QueryApplication());
It required so many .h file, first I copy .h file from SDK and put in Project directory but it give some error after including these .h file in project.
There are so many directory(source,build,docs, etc.) in SDK.How include and use this SDK in my project to create Indesign Document.
How include so many .h file in my project ?
I have already included SDK path in VisualStudio2008 ->Tools->Option->ProjectSolutions->vc++Directories
Thanks.Hi Jongware,
This is not correct in C# you have type cast all the object to another Object and then only we can access it in required format
for example
if want to get font in active Document
InDesign.Application myInDesign= (InDesign.Application) COMCreateObject("InDesign.Application");
InDesign myDocument = (InDesign.Document)myInDesign.ActiveDocument;
InDesign.ParagraphStyles pStyles = (InDesign.ParagraphStyle)myDocument.ParagraphStyles
InDesign.ParagraphStyle pSteyls = (InDesign.ParagraphStyle)myDocument.ParagraphStyle
for(int i =0;i<pStyles.Count;i++)
pStyle = (InDesign.ParagraphStyle)myDocument.ParagraphStyles[i];
public static object COMCreateObject (string sProgID)
// We get the type using just the ProgID
Type oType = Type.GetTypeFromProgID (sProgID);
if (oType != null)
return Activator.CreateInstance( oType);
return null;
like above content
for selection content u have to type cast selection object.
InDesign.Selection = (InDesign.Selection).myDocument.Selection;
Console.Writeline(InDesign.Selection.Contents);
but it showing error....
like this you have to type cast all things in C# and you cannot simply get selection contents like app.selection[0].contents
pls help me
Thank you for your reply....
R. Thangaraj -
SCHEDULER with using dbms_job.submit package
i want to use a procedure in SCHEDULER with using dbms_job.
How i use this procedure in SCHEDULER
Plz, Help me
Message was edited by:
Nilesh HoleHi,
For 10g and up you should be using dbms_scheduler for scheduling. Some examples are here
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/scheduse.htm#i1033533
and the homepage is at
http://www.oracle.com/technology/products/database/scheduler/index.html
Here's an example that runs daily at 2am
begin
dbms_scheduler.create_job('myjob',
job_type=>'plsql_block',
job_action=>'dbms_lock.sleep(10);',
start_date=>null,
repeat_interval=>'freq=daily;byhour=2;byminute=0',
enabled=>true , auto_drop=>true
end;
/Hope this helps,
Ravi. -
Data mapping to SAP B1 using SDK
is there any way around to do the data mapping from other system database to SAP B1
database without using field to field mapping?
ex: we want to migrate from other system to B1 we need to transfer their old data to a new one..and of course the database structure is not the same..and it would be a lot of task if we migrate their old PO to B1 (i'm thinking using field to field mapping so we must know the data structure from the old system and provide the information needed when we want migrate it to B1)
is there any thoughts?
hope u understand what i mean
PS: all the migrate things is using SDK
thanks,
erickHi Erick,
I think, using DI API should be better.
I know that, all data in the database is not supported.
But, most simple idea is,
1. Get objects from old company database
2. review the data by SDK (validating and user field mapping)
3. add modified objects to new company database
This should be most same, and you can process many process automatically in process 2.
Hope this helpful for you.
Hyunil Choi. -
How to use sdk in standard B1?
Hi,All
How to use sdk in standard B1? I want to use "sum in words" be thai languag which in standard no have so i must create it use sdk but i don't know that have solution using sdk in standard. example, Go menu Sales-A/R>Delivery and input data i want to convert price in Total to text which i use sdk for convert it But i don't khow that when i will call sdk? Can do in standard?Hi Virasak,
You need to develop a (eventually small) application (= Add-On) which uses the SDK to do what you need it to do + is packaged and installed like e.g. any SAP Add-On.
It should then just watch out for the "right" events which are propagated from the SAP Business One application through UI API (an interface in the SDK) to "interested" Add-On(s)...
HTH,
Frank -
(Urgent)help: how to use sdk add a gif image into a pdf document
I had use sdk plus-in add a new button of mine,if I click the button,a gif image will be inserted into the current page of pdf document
My questions:
one : When I clicked the button,there was a warnning box said:the image has not enough data.I don't known why?
two : How can I be sure the position of the image which I inserted? and how to change it's position?
three: how to use sdk get the content of the document?hi Leonard:
I do it like you said, but
Why my image can not display in the pdf.
code is:
//====================================================================
const ASInt32 theImageByteSize = IMG_WIDTH * IMG_HEIGHT;
char* buff = new char[theImageByteSize];
PDEImage volatile pdeImage = NULL;
PDEImageAttrs pdeImageAttrs;
PDEColorSpace pdeColorSpace;
ASFixedMatrix imageMatrix;
memset(&pdeImageAttrs, 0, sizeof(PDEImageAttrs));
int hdl = _open(ImagePath, _O_RDONLY | _O_BINARY, _S_IWRITE | _S_IREAD);
if (hdl == -1)
AVAlertNote("[%s] create fail !!!!") ;
if (_read(hdl, buff, theImageByteSize) == -1)
AVAlertNote("read image fail!") ;
pdeImageAttrs.width = IMG_WIDTH;
pdeImageAttrs.height = IMG_HEIGHT;
pdeImageAttrs.intent = ASAtomNull;
pdeImageAttrs.bitsPerComponent = 8;
pdeImageAttrs.flags = kPDEImageExternal | kPDEImageIsIndexed;
pdeImageAttrs.decode[0] = fixedZero;
pdeImageAttrs.decode[1] = fixedOne;
pdeImageAttrs.decode[2] = fixedZero;
pdeImageAttrs.decode[3] = fixedOne;
pdeImageAttrs.decode[4] = fixedZero;
pdeImageAttrs.decode[5] = fixedOne;
ASFixedRect theMediaBox;
PDPageGetMediaBox( AVPageViewGetPage(pageView), &theMediaBox );
ASFixed theFixedWidth = (theMediaBox.right - theMediaBox.left);
ASFixed theFixedHeight = (theMediaBox.top - theMediaBox.bottom);
imageMatrix.a = ASInt16ToFixed(theFixedWidth);
imageMatrix.d = ASInt16ToFixed(theFixedHeight);
imageMatrix.b = imageMatrix.c = fixedZero;
imageMatrix.h = 0;
imageMatrix.v = 0;
const Int32 cPaletteColors = 256;
PDEIndexedColorData theIndexedData;
theIndexedData.size = sizeof(theIndexedData);
theIndexedData.baseCs = PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceRGB"));
theIndexedData.hival = cPaletteColors - 1;
unsigned char data[3] = {255, 0, 0};
theIndexedData.lookup = (char *)data;
theIndexedData.lookupLen = cPaletteColors * 3;
PDEColorSpaceStruct theColorData;
theColorData.indexed = &theIndexedData;
pdeColorSpace = PDEColorSpaceCreate(ASAtomFromString( "Indexed" ), &theColorData );
pdeImage = PDEImageCreate(&pdeImageAttrs, sizeof(pdeImageAttrs), &imageMatrix,
0, pdeColorSpace, NULL, NULL, NULL, (unsigned char*)buff, theImageByteSize);
I want die, I had done this for so many days, My GIF doesn't insert into pdf,
unsigned char data[3] = {255, 0, 0};
theIndexedData.lookup = (char *)data; "
whether the data set wrong?
I confused what I do next
Maybe you are looking for
-
Who else has been lied to??
Does verizon even remotely understand customer service?? I say NO!! I have had nothing but problems since changing plans to the everything(should be called nothing) plan. I was told my bill would be a certain amount.. nope. Due to a verizon store
-
Error when LX40 is executed 'No material number transfered'
When i execute LX40 i am getting an error 'No material number transfered' Can some one help pls
-
Z10 microphone not working in normal mode - but works with speakerphone
Hello. So when I make a call or receive a call, the other side cannot hear me. I can hear them just fine. However, if I hit the speakerphone button, then the other side CAN hear me (and bluetooth works fine as well). So what gives? Obviously, there i
-
Upgraded from Vista ultimate to Win. 7. Don't know how to install the tv tuner
I upgraded from Vista ultimate to Win. 7. When I tried to install the TV tuner, nothing seemed to happen.
-
I usually have multiple windows open and if I am watching a video in one window and an advertisement starts in another window it steps on my video.