CryptoAPI pre-fetching crl details
My question is that I can’t see crl pre-fetching working the way it is described as working, or I am misunderstanding the description.
If I force a crl retrieval via certuil –verify (I have also tried CertGetCertificateChain), I can see new cache files generated at the location specified for the disk cache on Windows 7: c:\users\<username>\AppData\LocalLow\Microsoft\CryptnetUrlCache.
I can see the required crl in there, which has a 4 hour lifetime and nextPublish about 1 hour before certificate expiry. So far, so good.
The thing is, I never see an attempt to retrieve that crl again if I take no more action and just watch the cache. From reading the documentation my understanding is that pre-fetch should retrieve the crl before it is needed. Then, if the crl isn’t used after
the initial pre-fetch cycle, it won’t be pre-fetched again. Also from what I could make out, I thought some sort of background retrieval mechanism periodically iterates over all items in the Cryptnet cache to see if pre-fetching needs to be performed.
BTW I’m not clear what actually would do this retrieval, the docs for CRYPTNET_URL_CACHE_PRE_FETCH_INFO structure docs hint that it might be “the Cryptnet URL Cache (CUC) service”, whatever that is (or was)- can't find any info on it or how often this might
happen.
I have to specifically attempt to make another CertGetCertificateChain/certutil –verify type call before I can see a crl retrieval attempted (http request and local cache update). With CertGetCertificateChain, I get a dwErrorStatus of 0, and dwInfoStatus of
0x00000100/cert_trust_has_preferred_issuer, so I don’t see any problems with my verification. My crl has no AIA, only CDP listing a http location (no delta crls).
As mentioned, first retrieval I see the cache files and http request, but no updates in the local store or attempts over the network after that. I was expecting an automagic background HTTP request with conditional GET to occur sometime after nextPublish
time - am I misunderstanding the concept of pre-fetch?
Thanks!
J
Hi J. Crown,
For this question, it is recommended to post in MSDN forum for more help, they focus on Windows Desktop development issue:
http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsgeneraldevelopmentissues
Thanks for understanding.
Alex Zhao
TechNet Community Support
Similar Messages
-
Facing problem in Fetching Employee details
Hello All,
i need to write a abap coding to fetch the employee details from the corresponding table,i worte a code but its is not fetching the details of the employess in to the output,am sending my code along with this thread its great if any body help me out in ths regard,thanks in advance...
NAME : Chandeep Singh
DESCRIPTION : TO GENERATE SIMPLE REPORT USING HR ABAP
LOGICAl DATABASE- PNP .
REPORT zchandeep_hr_prog_1
LINE-SIZE 200 .
*Database Table
TABLES: pernr, " Pernr structure for Logical database
pa0001, " Actions
pa0002. " Personnel Info
*Infotypes
INFOTYPES: 0001, " Actions
0002. " personnel info
*Variable Declaration
DATA: form_nam LIKE p0001-ename,
v_age(5) TYPE c, "variable for calculating age in days
v_ctr1 TYPE i VALUE 0, "counter
v_ctr2 TYPE i VALUE 0, "counter
var(5) TYPE c , " variable to store btrtl
var1(5) TYPE c . " variable to store werks
*Internal Table Decalartion
DATA: BEGIN OF i_tab1 OCCURS 0,
pernr LIKE pa0001-pernr, "employee number
ename LIKE pa0001-ename, "employee name
begda LIKE pa0002-begda, "employee join date
werks LIKE pa0001-werks, "personnel area
btrtl LIKE pa0001-btrtl, "personnel sub area
persg LIKE pa0001-persg, "employee group
persk LIKE pa0001-persk, "employee sub-group
plans LIKE pa0001-plans, "position
gbdat LIKE p0002-gbdat, "date of birth
END OF i_tab1.
*START-OF-SELECTION
START-OF-SELECTION .
GET pernr .
rp-provide-from-last p0001 space pn-begda pn-endda . " Macro for IFT-0001
rp-provide-from-last p0002 space pn-begda pn-endda . " Macro for IFT-0002
**--> Populate internal table
MOVE p0001-pernr TO i_tab1-pernr .
MOVE p0001-ename TO i_tab1-ename .
MOVE p0002-begda TO i_tab1-begda .
MOVE p0001-werks TO i_tab1-werks .
MOVE p0001-btrtl TO i_tab1-btrtl .
MOVE p0001-persg TO i_tab1-persg .
MOVE p0001-persk TO i_tab1-persk .
MOVE p0001-plans TO i_tab1-plans .
MOVE p0002-gbdat TO i_tab1-gbdat .
**--> Append data to internal table
APPEND i_tab1 .
CLEAR i_tab1 . " Clear header I_TAB1******************************
*END-OF-SELECTION
END-OF-SELECTION.
*****sorting the internal table on personnel area & personnel sub-area
SORT i_tab1 BY werks btrtl.
*TOP_OF_PAGE
PERFORM top_of_page.
*Output Display
LOOP AT I_TAB1.
*for calculating the age in days
v_age = sy-datum - i_tab1-gbdat.
*control break on Personal Sub Area
LOOP.
AT NEW pnpbtrtl .
IF sy-tabix NE 1.
FORMAT COLOR COL_NORMAL ON.
WRITE:/5 'Total Number of Employees for personnel Sub-Area:',
var , 'is ',
v_ctr1.
CLEAR v_ctr1.
FORMAT COLOR OFF.
ENDIF.
ENDAT .
ENDLOOP.
**Control Break on personnel Area
LOOP.
AT NEW pnpwerks.
IF sy-tabix NE 1.
FORMAT COLOR COL_TOTAL ON.
WRITE:/5 'Total Number of Employees for Personal Area: ',
var1 ,'is ', v_ctr2. "color col_total. CLEAR V_CTR2.
SKIP 1.
FORMAT COLOR OFF.
ENDIF.
ENDAT .
WRITE:/5
i_tab1-pernr, "personnel number
16 i_tab1-ename, "emp name
47 i_tab1-begda, "join date
60 v_age, "age in days
74 i_tab1-werks, "P area
84 i_tab1-btrtl, "P sub Area
94 i_tab1-persg, "emp group
104 i_tab1-persk, "emp sub group
114 i_tab1-plans. "position
v_ctr1 = v_ctr1 + 1.
v_ctr2 = v_ctr2 + 1.
var = i_tab1-btrtl .
var1 = i_tab1-werks .
ENDLOOP.
*& Form top_of_page
Header Output
FORM top_of_page.
FORMAT COLOR COL_HEADING ON.
WRITE:/5 'Employee',
16 'Employee',
47 'Join Date',
62 'Age',
74 'Personal',
84 'Personal',
94 'Employee',
104 'Employee',
114 'Position ',
/5 'Number',
16 'Name',
60 '(In Days)',
74 'Area',
84 'Sub-Area',
94 'Group',
104 'Sub-Group'.
FORMAT COLOR OFF.
SKIP 1.
ENDFORM. " top_of_pageAfter tables pernr.
write this code :
GET PERNR.
and check the program
Regards,
Srinivas -
J2EE optimisation by pre-fetching pages
Hi,
I´m working on a J2EE application/site that generates pages
dynamically. Although the pages vary significantly, the sequence of
pages for a particular user is generally predictable. The client is
worried about performance and wants the design to predict the next
page, generate and cache it, so that it is ready for the user´s
request.
The pages are, at base, JSP pages (whose content depends largely on
information in the user´s session that, over a single session, remains
constant). Is there any way to do what the client wants (with a
reasonable amount of effort)? I can't see how to work around the
demand-driven nature of a J2EE server (in this case Weblogic's).
Presumably, if there is a solution, it involves sending all requests
to a Servlet, rather than the JSP page directly, and somehow the
Servlet handles caching and prefetching. But that means the Servlet
has to fake a SessionContext and redirect it to the appropriate JSP
page (I think). Has anyone done this?
Thanks,
AndrewAlso, take a look at Tangosol's Coherence caching product:
http://www.tangosol.com/products-clustering.jsp
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/
"Andrew Cooke" <[email protected]> wrote in message
news:[email protected]...
Actually, this reply is a bit too self-critical. It also makes sense for
this data to be inside the JSP page for other, more sensible, reasons too.
The data from page to page are very variable, requiring individual
formatting.
Andrew
"Andrew Cooke" <[email protected]> escribió en el mensaje
news:[email protected]...
Hi,
Thanks for the reply. Unfortunately it's difficult to know which data
to
cache until the page is generated, because the information that drivesthe
page generation is inside the JSP page, not the database. In otherwords,
when the page is generated, data within the page pulls the informationfrom
the database.
A cleaner design, obviously, would be to have everything in the
database,
but for practical reasons (limited resources - I am working for a small
company in S. America, with a tight deadline and no other Java/JSP
knowledge - that mean the closer this is to a "traditional" page-by-page
website, the more likely it is to work) this is not possible. Or, atleast,
it needs a very strong argument to change the approach (and I'm not sure
this is it).
Does that make sense? It means, as far as I can see, that only way to
prepopulate the beans is by pre-generating the page...
Thanks,
Andrew
<[email protected]> escribió en el mensaje
news:[email protected]...
Why don't you simply cache the data needed to render these
pages? Unless your rendering mechanism is slow by itself, for a
regular JSP which renders some pre-populated beans, pre-fetching
shouldn't make much (if any) difference.
Andrew Cooke <[email protected]> wrote:
Hi,
I´m working on a J2EE application/site that generates pages
dynamically. Although the pages vary significantly, the sequence of
pages for a particular user is generally predictable. The client is
worried about performance and wants the design to predict the next
page, generate and cache it, so that it is ready for the user´s
request.
The pages are, at base, JSP pages (whose content depends largely on
information in the user´s session that, over a single session,
remains
constant). Is there any way to do what the client wants (with a
reasonable amount of effort)? I can't see how to work around the
demand-driven nature of a J2EE server (in this case Weblogic's).
Presumably, if there is a solution, it involves sending all requests
to a Servlet, rather than the JSP page directly, and somehow the
Servlet handles caching and prefetching. But that means the Servlet
has to fake a SessionContext and redirect it to the appropriate JSP
page (I think). Has anyone done this?
Thanks,
Andrew--
Dimitri -
Pre-fetching of website stopped working, yet I have it selected as enabled
Hi,
Until today, every time I used firefox, once I'd start writing the address of the website, the address would come up entirely and I'd just have to select it. I think it's called pre-fetching of website?
Today, it just stopped working but I have not changed any of my settings.
Best,
SandrineStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
* https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Hi,
Q1>Whenever we execute some querries, there is a roundtrip time involved to get the desired data from server which is taking much of the execution time.
Therefore we had to investigate on the problem and found out that ORACLE OCI allows prefetch at the client side and it is possible to build a client side cache by setting the "prefetch" attribute for the allocated transaction statment.
I wanted to confirm as to whether implementing the same, can we have significant performance gains..
Q2> What is the difference between fetch and prefetch? If fetch retrieves 5000 rows the will prefetch also retrieve 5000??
Any help will be appreciated
ThanksReading the doc pointers should help, but in a few words, with or without prefetch you are still calling OCIStmtExecute and/or OCIStmtFetch to get the rows, and you get the same number of rows in either case. Assuming you retrieve all rows one at a time, out of 5,000 total rows, OCI will by default do 2,500 round-trips to the server, because by default one extra row is transfered from the server to the client, and the next OCIStmtFetch call will get that row locally from the prefetch-cache.
Pre-fetching more rows further reduces round-trips at the expense of using more memory client-side. On win32 XP, I noticed that pre-fetching more than 32KB worth of row data (the actual row count depends on the row size) doesn't provide any improvement.
Using array defines is an alternative to pre-fetching which is a little faster. --DD -
Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM
Hi:
I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
form trigger key-commit code is is somehow like this:
DECLARE
tot_line NUMBER (3);
line NUMBER (3);
begin
IF NAME_IN ('system.form_status') = 'CHANGED'
THEN
GO_BLOCK ('DETAIL');
LAST_RECORD;
tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
FIRST_RECORD;
line:= 1;
LOOP
:detail.quant := :detail.quant + 1;
EXIT WHEN line= tot_line;
next_record;
line:= line+ 1;
END LOOP;
FIRST_RECORD;
GO_BLOCK ('MASTER');
END IF;
COMMIT;
end;
The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
Anyone help?
Joao OliveiraUse PRE-UPDATE trigger (Master block).
begin
update <detail_table>
set quant + 1
where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
and <detail_block_WHERE>;
EXCEPTION WHEN OTHERS THEN NULL;
end; -
RFC enabled FM to fetch partner details of vendor from ECC system
Hi All,
I am working on an enhancement in SRM system.the requirement is as follows.
1.In the current SRM application, the invoicing party partner function does not exist.Because of this, the invoicing party cannot be populated on any external purchasing documents such as RFQ, PO, RO, contracts.
2.This functionality exists in ECC. In ECC, the user can enter an invoicing party on a vendor master record.The invoicing party functionality will be deployed to SRM so that external purchasing documents are populated with the correct invoicing party.There is a standard vendor replication program for this...
To accomplish the above said functionality, I have planned to do like this in SRM system....
1.There is a BADI "BBP_DOC_CHANGE_BADI" with a method "BBP_PO_CHANGE ". This will get triggered when a PO is getting created or changed.
2.In that there is a table called IT_PARTNERS which will have all the partner details in it.
3.I will take the partner (vendor number i.e.,partner function is 0000019) and pass that value to an RFC enabled function module which will fetch the invoicing party from ECC system.
4.Later that Invoicing party number is appended to the IT_PARTNERS so that it will be populated on any external purchasing documents.
Here I want to know whether any standard RFC enabled function module which fetches the invoice party details from ECC system.
Awaiting your answers...
Thanks,
Ravee..Hi. Just use function RFC_READ_TABLE and table WYT3.
Regards,
Dave. -
Fetching process details using process instance id
Hi,
I have process instance ids captured in a CE table and I am looking to include a feature in existing UI5 application to use the process instance id and fetch it' s corresponding process details like history, context data etc., back to UI.
Any helpfull doc/ ideas on how to implement this will be appreciated.
Thanks,
Vipin.Hi Jun,
I didn' t get a chance to try on process histroy however with the responses seen here looks like it is not possible.
Currently I am able to get the task details like the claimed user, list of potential users yet to claim the task etc., which is still usefull in my case. -
Fetch bank details if House Bank is known
Hi All,
If house bank is known, how can i get the bank details like bank name, bank key, bank location and bank account number.
I am working with Idoc and I need to make change in one of the idoc segements which is E1EDK28, this is in INVOIC idoc segement.
the logic is I fetch partner number from segment E1EDKA1_RG and then based on partner number I fetch housebank from KNB1. apart from this I also get details from table t012 and t012k, and finally i go to table tiban and fetch the IBAN number for the housebank.
The main problem is that when We execute transaction VF31 which create INVOIC idocs, details in segement E1EDK28 are not correct and I want to update this segement with correct bank details.
This all is done in a user exit.....
Thanks,
MarkHi,
Check the Table BNKA - Bank master record
Reward Points if it is Useful
Thanks,
Manjunath MS -
How to get pre-calculated tax detail before order entry.
Hello,
Is there any API to get TAX detail that applied on order before order book.
We need pre-calculated TAX amount before order entry and that we have to pass to customer when they search for item on website.
Please advice if have any script available.
Regards,
Akil.Hi Akil,
no, we have not found a "standard" solution. We have made some customization that calculates some "estimated Tax" and prints in on the Order Acknowledgment. But nothing within the system itself, unfortunately.
Do you get an estimated Tax calculated when you book your order? If yes, then perhaps you should think about changing your process and get the orders booked?
regards,
David. -
Function Module Required for fetching contact details from BUT000
Hi Everybody.
I have created a contact using transaction BP.
these details according to me will get saved in standard table BUT000.
Now i need standard FM used for fetching all these Contact details.
Help me i am new to CRM.Hi Amit,
Please check the following:
Data Retrieval Function Modules:
Name Description
BAPI_BUPA_ADDRESSES_GET Determine All Addresses
BAPI_BUPA_ADDRESS_GETDETAIL Read Address
BAPI_BUPA_ADDRESS_GET_NUMBERS Read Address Numbers
BAPI_BUPA_BANKDETAILS_GET Determine All Bank Details
BAPI_BUPA_BANKDETAIL_GETDETAIL Read Bank Details
BAPI_BUPA_BANKDETAIL_NUMBERS Read Bank Details Numbers
BAPI_BUPA_CENTRAL_GETDETAIL Read Central Data
BAPI_BUPA_EXISTENCE_CHECK Check Existence of Business Partner
BAPI_BUPA_GET_NUMBERS Read Business Partner Numbers
BAPI_BUPA_RELATIONSHIPS_GET Determine All BP Relationships
BAPI_BUPA_ROLES_GET Determine All Roles
BAPI_BUPA_ROLE_EXISTENCE_CHECK Check Existence of Role
BAPI_BUPA_SEARCH Search Business Partner for Telephone, E-Mail, Address
BAPI_BUPA_STATUS_GETDETAIL Business Partner: Read Status
BAPI_BUPR_ACTIVITYP_EXISTCHECK Check Existence of Contact Partner Relationship
BAPI_BUPR_CONTP_ADDRESSES_GET Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_ADDR_GETDETAIL Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_GETDETAIL Read Contact Person Relationship
BAPI_BUPR_EMPLO_ADDRESSES_GET Read Contact Person Relationship Addresses
BAPI_BUPR_EMPLO_ADDR_GETDETAIL Read Employee Relationship Address
BAPI_BUPR_EMPLO_GETDETAIL Read Employee Relationship
BAPI_BUPR_RELATIONSHIP_GET Read General Relationship
BAPI_BUPR_RELSHIP_CHECKEXIST Check Existence of General Relationship
BAPI_BUPR_RELSHIP_GET_DETAIL Read General Relationship
BAPI_BUPR_RESP_EMPLO_CHEKEXIST Read Relationship of Employee Responsible
BUPA_PARTNER_CONTACT_SEARCH Searches business partners for telephone, E-Mail, address
CRM_ORDER_READ Get all the Service Contract details.
Hope this helps!
Regards,
Saumya -
Fetching Invoice details from BSEG
Hi experts,
I fetched details like BUZEI BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD from Bseg . program execute well in development server but very slow in production server. Coding is given below , kindly provide solution for this.
input.
1.MANDT
2.BUKRS
3.VKORG
4.FKDAT
First i fetch invoices based on input from vbrk and vbrp table and passed in bseg.
SELECT VBRKMANDT VBRKVBELN VBRKVKORG VBRKFKDAT VBRKBUKRS VBRPGSBER
INTO TABLE ITAB
FROM VBRK
INNER JOIN VBRP ON VBRKVBELN = VBRPVBELN
WHERE
VBRK~MANDT IN S_MANDT AND
VBRK~BUKRS IN S_BUKRS AND
VBRK~VKORG IN S_VKORG AND
VBRK~FKDAT IN S_FKDAT.
RANGES : R_VBELN FOR VBRK-VBELN.
LOOP AT ITAB.
R_VBELN-SIGN = 'I'.
R_VBELN-OPTION = 'EQ'.
R_VBELN-LOW = ITAB-VBELN.
APPEND R_VBELN.
ENDLOOP.
LOOP AT ITAB.
ITAB-FYEAR = ITAB-FKDAT+0(4).
MODIFY ITAB INDEX SY-TABIX.
ENDLOOP.
DATA : BELNR LIKE BSEG-BELNR.
SELECT BELNR GJAHR BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD
FROM BSEG INTO TABLE GTAB FOR ALL ENTRIES IN ITAB
WHERE BUKRS IN S_BUKRS AND
BELNR IN R_VBELN AND
GJAHR = ITAB-FYEAR .
Thanks & regards
G.VendhanHi Vendhan,
SELECT VBRK~MANDT VBRK~VBELN VBRK~VKORG VBRK~FKDAT VBRK~BUKRS VBRP~GSBER
INTO TABLE ITAB
FROM VBRK
INNER JOIN VBRP ON VBRK~VBELN = VBRP~VBELN
WHERE
VBRK~MANDT IN S_MANDT AND " Not required so comment it...
VBRK~BUKRS IN S_BUKRS AND
VBRK~VKORG IN S_VKORG AND
VBRK~FKDAT IN S_FKDAT.
RANGES : R_VBELN FOR VBRK-VBELN.
LOOP AT ITAB.
R_VBELN-SIGN = 'I'.
R_VBELN-OPTION = 'EQ'.
R_VBELN-LOW = ITAB-VBELN.
APPEND R_VBELN.
ENDLOOP.
LOOP AT ITAB.
ITAB-FYEAR = ITAB-FKDAT+0(4).
MODIFY ITAB INDEX SY-TABIX.
ENDLOOP.
DATA : BELNR LIKE BSEG-BELNR.
As you are interesed to get the data for the billing document only select data from vbrk only...
and use that internal table in for all entries with BSEG rather then join of vbrk and vbrp while
IF ITAB[] IS NOT INITIAL[]. " Check this condition before using For all Entries alwayse...
SELECT BELNR GJAHR BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD
FROM BSEG INTO TABLE GTAB FOR ALL ENTRIES IN ITAB
WHERE BUKRS IN S_BUKRS AND
BELNR IN R_VBELN AND " Wrong... You are supposed to pass vbrk-VBELN to BSEG-VBELN as BELNR and VBELN are different and contains diff data as well..
GJAHR = ITAB-FYEAR
AND KOART = 'D'. " Include it for customers
ENDIF.
Also I would like to suggest you if you can use below tables if possible...
BSAD secondary Index for Customers (Cleared Items)
BSID secondary Index for Customers
So you need to change the logic to get correct data first...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
How to fetch invoice details based on service notification
Hello,
How to fetch the invoice deatils for a service quotation.
Wat are the tables used for this purpose.
Thanks in advance.
Regards,
Umasankar.Hi
Use the table VBAK and VBAP for the Quotation details use VBTYP = B
and pass the VBAP-VBELn and VBAP-POSNR to VBRP-AUBEL and VBRP-AUPOS and take the VBRP-VBELN which is the Invoice Number
take the details from VBRK and VBRP details
<b>Reward points for useful Answers</b>
Regards
Anji -
How to fetch Schedule details from Subscription ID using ReportServer2010
Hi All,
I'm using Azure so ReportServer DB and the application DB are in two different servers. So my requirement is to fetch the Schedule details from the ReportServer DB and store it in my application DB for further processing and i have only the SubscriptionID.
So is there any way i can fetch the schedule details from subscription ID from ReportServer2010 web service.
One alternative is that I'm connecting to the azure server and fetching the information but i want to know is there any built in web method to get this info.
Thanks in advance and let me know if you need any more info. Waiting for your valuable answer.
Regards,
Ravi Neelam.After going thought different forums and got some knowledge on this issue and able to sort this issue. I'm posting this so other can easily use this method and can save lot of time.
Solution: I'm using CreateSchedule method which will create a Schedule in ReportServer DB and will return the ScheduleId which i will insert as a matchData parameter to my CreateSubscription
method. Hope the below code snippet will be use full.
This is my CreateSubscription Method code snippet:
public string CreateSubscription(string reportPath, string toAddress, string subject, string description, int matchDataSelection, Dictionary<string, string> itemParameters)
int counter = -1;
string subscriptionId = string.Empty;
ExtensionSettings extensionSettings = GetExtensionSettings(toAddress, subject);
ScheduleDefinition matchData = GetMatchData(matchDataSelection);
ParameterValue[] parametersvalue = new ParameterValue[itemParameters.Count()];
foreach (var item in itemParameters)
ParameterValue param = new ParameterValue();
counter++;
param.Name = item.Key;
param.Value = item.Value;
parametersvalue[counter] = param;
ScheduleDefinition scheduleDefinition = new ScheduleDefinition();
scheduleDefinition = GetMatchData(matchDataSelection);
string scheduleId = service.CreateSchedule("SampleScheduleDefnition", scheduleDefinition, null);
return subscriptionId = service.CreateSubscription(reportPath, extensionSettings, description, "TimedSubscription", scheduleId, parametersvalue);
private ExtensionSettings GetExtensionSettings(string toAddress, string subject)
ExtensionSettings extensionSettings = new ExtensionSettings();
ParameterValue[] extensionParams = new ParameterValue[5];
extensionParams[0] = new ParameterValue();
extensionParams[0].Name = "TO";
extensionParams[0].Value = toAddress;
extensionParams[1] = new ParameterValue();
extensionParams[1].Name = "IncludeReport";
extensionParams[1].Value = "FALSE";
extensionParams[2] = new ParameterValue();
extensionParams[2].Name = "Subject";
extensionParams[2].Value = subject;
extensionParams[3] = new ParameterValue();
extensionParams[3].Name = "RenderFormat";
extensionParams[3].Value = "PDF";
extensionParams[4] = new ParameterValue();
extensionParams[4].Name = "Priority";
extensionParams[4].Value = "NORMAL";
extensionSettings.ParameterValues = extensionParams;
extensionSettings.Extension = "Report Server Email";
return extensionSettings;
private ScheduleDefinition GetMatchData(int matchDataSelection)
int selection = matchDataSelection;
DateTime currentDate = DateTime.Now;
TimeSpan timeStampforNewTime = new TimeSpan(08, 00, 00);
currentDate = currentDate.Date + timeStampforNewTime;
ScheduleDefinition schedule = new ScheduleDefinition();
schedule.StartDateTime = currentDate;
if (matchDataSelection == 1)
schedule.EndDate = DateTime.Now.AddDays(1);
schedule.EndDateSpecified = true;
else
schedule.EndDateSpecified = false;
ScheduleDefinition matchDataResponse = new ScheduleDefinition();
switch (selection)
case (int)MatchDataSelection.Once:
schedule.Item = GetPatternforDaily();
break;
case (int)MatchDataSelection.Daily:
schedule.Item = GetPatternforDaily();
break;
case (int)MatchDataSelection.Weekly:
schedule.Item = GetPatternforWeekly();
break;
case (int)MatchDataSelection.BiWeekly:
schedule.Item = GetPatternforBiWeekly();
break;
case (int)MatchDataSelection.Monthly:
schedule.Item = GetPatternforMonthly();
break;
//XmlDocument xmlDoc = GetScheduleAsXml(schedule);
//matchDataResponse = xmlDoc.OuterXml;
return matchDataResponse;
private RecurrencePattern GetPatternforMonthly()
MonthlyDOWRecurrence pattern = new MonthlyDOWRecurrence();
pattern.WhichWeekSpecified = true;
pattern.WhichWeek = WeekNumberEnum.FirstWeek;
MonthsOfYearSelector months = new MonthsOfYearSelector();
months.January = true;
months.February = true;
months.March = true;
months.April = true;
months.May = true;
months.June = true;
months.July = true;
months.August = true;
months.September = true;
months.October = true;
months.November = true;
months.December = true;
pattern.MonthsOfYear = months;
DaysOfWeekSelector days = new DaysOfWeekSelector();
days.Monday = true;
pattern.DaysOfWeek = days;
return pattern;
private RecurrencePattern GetPatternforDaily()
DailyRecurrence pattern = new DailyRecurrence();
pattern.DaysInterval = 1;
return pattern;
private RecurrencePattern GetPatternforWeekly()
WeeklyRecurrence pattern = new WeeklyRecurrence();
DaysOfWeekSelector selector = new DaysOfWeekSelector();
selector.Monday = true;
pattern.DaysOfWeek = selector;
return pattern;
private RecurrencePattern GetPatternforBiWeekly()
WeeklyRecurrence pattern = new WeeklyRecurrence();
DaysOfWeekSelector selector = new DaysOfWeekSelector();
selector.Monday = true;
pattern.DaysOfWeek = selector;
pattern.WeeksInterval = 1;
pattern.WeeksIntervalSpecified = true;
return pattern;
Regards, Ravi Neelam. -
Need Select statement for fetch the details
Hi
i want to fetch particular customer wise sales orderds and that sales order No and date of sales order was created.. and that sales order related PO No and Materials ..
for this.. how can i write an executable programm.. is it needed to define seperate internal tables or single internal table is enough ?
what is the select statement for fetching all these details..
any help will be appriciated
Thanks
Bbaucustmer master table is KNA1 knb1 knbk
sales data tables r VBAK VBAP VBEP
Material data MARA, MARAC, MARD
PO RELATED ekko ekpo eket
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:04 PM
Maybe you are looking for
-
Insufficient system resources exist to complete the requested service
[I did intend to start this post with a screenshot of the above error when I initiate the transfer from Windows Explorer, but apparently 'Body text cannot contain images or links until we are able to verify your account.' so I will just have to do so
-
Hi, On a form it is possible to add a signature field, so when a user click on the field they place their signature in that field. Is it possible to do the same in a stamp? i.e. when a user add a stamp they automatically add a signature? Or, after th
-
Show user´s name and lastname using XML Form Builder
Hello I created a XML project with XML Form Builder and i have to show user´s name an lastname in RenderListItem form.Can anybody help me,please? Thanks
-
Can't get Tag Library example to work
I'm doing the tutorial on this page http://java.sun.com/products/jsp/tutorial/TagLibraries15.html And downloaded the war files and have them correctly in my Tomcat Directory. All I did was jar xvf iteration.war and jar xvf template.war And now it see
-
I have the iPhone 4. The other day i began having issues with texting. Certain people that I texted earlier in the day were suddenly not getting through to them, or from them to me. They would get a message saying their number was blocked. I would ju