How to fetch data from all the libraries/lists from a website only present in a site collection.
Hi,
I have a sitecollection named sitecollectionA....
There are 3 subsites under this site collection named as site A, site B, site C
and there are many libraries present in these subsites.
I want to fetch the items from all the libraries present in site B ONLY.
My custom webpart is in site B.But I am not able to fetch the data from this particular site(site B).
I am using SPSiteDatauery....but getting nothing with below scopes-
query.Webs = "<Webs Scope=\"Recursive\" />"; ---- this gives data from all subsites and their subsites
query.Webs = "<Webs Scope=\"\" />"; - ----this gives data from only the top level subsite of sitecollectionA
Below are few lines from my code.....
SPSiteDataQuery query = new SPSiteDataQuery();
query.Lists = "<Lists ServerTemplate=\"101\" />";
query.Webs = "<Webs Scope=\"\" />";
Please help...
Got the answer....
I defined my site collection object like below and it worked.
SPSite site = new SPSite(SPContext.Current.Web.Url);
Similar Messages
-
How to fetch what are all the tables used in this TR no and Package name of
Hi Friends,
I have input of Transport Request no (E070-TRKORR).
How to fetch what are all the tables used in this TR no and Package name of this Table.HI,
FYI
SELECT E071OBJECT_NAME, E070MDEVCLASS
FROM E071, E070M
WHERE TRKORR = YOU REQUEST NO. -
I cleared a conversation in my messages. I do not delete. How do I get all the messages back from this sender?
Clearing a conversation is the same as deleting the messages, so unfortunately they're gone. You could always restore from a previous backup, but you would lose anything that you've added/changed etc on your phone between the last time you synced your phone and now.
-
Hi,
Run below query:
select * FROM PO_headers
Result: no data
EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('S','120');
Run below query:
select * FROM PO_headers
Result:data for org_id=120
EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('A','');
select * FROM PO_headers
Result: no data
So how can we fetch data from all OUs whothout using PO_HEADERS_ALL tables?
why do we have this MO_GLOBAL.set_POLICY_CONTEXT('A','') option?in 11i PO_HEADERS is view with org_id policy
in r12 PO_HEADERS is synonym with policies based on multi-org
so for r12
SQL> select count(*) from po_headers;
COUNT(*)
0
SQL> begin
2 mo_global.set_policy_context('S', 101);
3 end;
4 /
PL/SQL procedure successfully completed
SQL> select count(*) from po_headers;
COUNT(*)
110
SQL> begin
2 mo_global.set_policy_context('S', 82);
3 end;
4 /
PL/SQL procedure successfully completed
SQL> select count(*) from po_headers;
COUNT(*)
235
SQL>
SQL> begin
2 mo_global.init('SQLAP');
3 end;
4 /
PL/SQL procedure successfully completed
SQL> select count(*) from po_headers;
COUNT(*)
345
SQL> select unique org_id from po_headers;
ORG_ID
82
101
SQL> mo_global.set_policy_context('S',<org_id>) - single operating unit
mo_global.init(<app_short_name>) - multi operating unit -
Noobie question: How do I add something to the display list from a non-main class?
I know how to use addChild() within the main class to add
something to the stage display list and have it appear on the
screen, but how do I add something to the stage display list from
code within another class?
So for example say I want to add some text (myTextField) to
the stage's display list from within NotTheMainClass' code, could
you give an example of the necessary code?you must pass a reference to a display list object or create
one that's available to your class.
there are so many ways to do this i'm not sure how you want
to proceed. but you can create a globally available reference to
the stage and root timeline: -
How do I make sure I am up to date with all the necessary updates from MAC?
just wait for the automatic sofeware update? is there a site where they warn of virus maleware for MAC? I am reading on the BBC technology website and elswhere of a widows virus outbreak. but where do i go for MAC?
Thanksnefsi wrote:
dear Lyssa: does this apply for all sorts of essential updates from Apple/ adobe etc ? i.e. every time I i get the software pop-up telling me a new update is available I have to let it download the file but I have to look in the utilities for installer and activate it manually ? thanks
No: Firmware Updates are rather unusual and operate differently to the normal software updates. They require a special procedure which is documented with the update. But even the normal software updates require the Installer to run: however Software Update will take care of that for you if you let it. You certainly won't need to go looking for the normal Installer.
In your specific case, the page for MacBook Pro EFI Firmware Update 1.5.1 tells you:
To complete the firmware update process, please follow the instructions in the updater application (/Applications/Utilities/MacBook Pro EFI Firmware Update.app). The updater will launch automatically when the Installer closes. -
How do i transfer my all the text massages from iphone 4s to ipad
how do i transfer text massages from i phone to ipad
App data is part of the itunes/icloud backup.
so backup your 4S and then use that backup on your 5. http://support.apple.com/kb/HT2109 -
Exporting Recipients details from all the Notification Subscriptions in SCSM 2012 Sp1
Hi Team,
Do we have any powershell script to export the recipients details from all the notification subscriptions from SCSM 2012 SP1. I have tried usind ChildEnumeration, but it didn't return any data. Sooner response would be highly appreciated.
Thanks,
Dinesh
Thanks & Regards, DineshSubaru, your solution is not sending the email from different domains though. And it is initiated manually through the console.
We are looking for the ability to have subscriptions send emails from different domains or email addresses depending on queues or similar. In my research, I think the only viable option is to use orchestrator as mentioned above and have it monitor
tickets for criteria specified. Its a pain and a huge limitation in my opinion.
I think the bottom line is to not use subscriptions for a full loop email system. only use it for emails that will not be replied to. -
Hello people from the forum,
I have made a beatifull website, and upload it with filezilla to a server, and also I upload it to a local map.
Everthing was going very well, but i don't get my website on the internet, because one page will not be uploaded (again) and that is my first page, the home page (and for as far I understand also my index.html)
I web telling all the time: can not publish this page because there is an unknown error.
The strange thing is, that I can see, even on the local map as on the online server, that my home page is still there!
the size of the index.html is 303 kb (and when I open it, it is empty, but maybe thats normal?)
And yes, I did a lot of stupide things, by accident I deleted a lot of files and documents on my computer :-((
I reinstall Iweb (3.04) but the error is still there.
So, do I have to reinstall OS lion totaly? But them I i'm afraid that I lost all my webpages (even they are on the server now)
(can I put all on a USB stick, and make later again a new homepage?)
I hope one of you recognize this problem and have a more simpeler solution than my story here above.
Sorry for my english, I hope you understand.Hello Wyodor,
thanks for your reply on my question.
You are wright the index file is 308 KB.
And offcourse that I delete my files and documents is not an Iweb problem, but because my English is not that good, that I thougt I try to tell the whole story, and hope people can read trough the lines.
Why I didn't use Iweb to upload to the server is because the server company recommanded to use file zilla. And I am a nobody with this kind of things, so I did exactly what they tell me to do.
No, i did not make a backup of Iweb and the domain file, but reading other messages on this forum showed me that I can maybe try to make empty the cashfile (?)
and otherwise I have bad luck and have to make my website again. Offcourse I have a lot of examples from all the pages (copied from the local map to my USB stick) and my website is aprox. 15 Mb, (not so big) so it will cost me a few nigths.
But I'm still hoping on a miracle :-)
greetings Lasource -
I can't view old iphoto libraries. It wants me to use a new version of iphoto but from all the commits here, no one likes it. Help! how do i get to my old libraries???
With the amount of information you've provided it's impossible to offer a potential solution. We can't see your computer so we need to know the details of your problem and setup, i.e.:
what version of iPhoto are you using?
what system version are you running?
what do you see when iPhoto opens?
what fixes have you tried?
where is you library located?
did you apply any updates or upgrades just prior to the problem occurring?
are you running a "managed" or "referenced" library?
what type of Mac?
how much free space on your boot drive?
OT -
I tried to update my phone, but it died so i had to restore it. The only back up i had was from 2 months ago. How do i get all the settings back from that huge gap of me not syncing it?
Please read before going through with this procedure.
If you really want your contact back and you did not do another iCloud backap since you deleted some of your contacts, you can do a hard reboot on both devices with iClouded contacts by holding down the home and lock buttons on each of them for 10 seconds ignoring the slide to turn off thing. Make sure you have iCloud contact services off before doing so. You can then go through the whole set up process until you get up to the backup part. You then press to restore from an iCloud backup (make sure you choose the right backup for the right phone). If you didn't make an iCloud backup before the contact incident, you will have to use your two-month-old iTunes backups. Each phone should have their contacts the way they were from your last backup. You then go into Settings>iCloud>and turn off contacts. You then can choose if you want to keep your current contacts or not. Turn this off on both phones just incase you add another iCloud device to the mix later on. Now your contact lists are no longer linked (Caution: side effect may include lack of edit button). You may now add and delete contacts as you please without it happening on your other phone.
Thank you for choosing Apple. -
When I disconnect my iphone 3gs(iOS) from computer, the device disappears from my itunes. This prevents me from doing a wireless sync. how do i fix it so that my device stays on itunes without having to plug it in all the time?
it worked the first few times i did it but the next day after i closed out of itunes once, the device only appears when i plug in my phone.Whenever a menu choice is grayed out, that is because you have Restrictions turned on in Settings. Be sure to turn it off.
You are confusing an itunes store account with an icloud account. You two can continue using the same ID for itunes (thus sharing purchased music, apps, etc.), but you really should have separate accounts (different IDs) for icloud, since an account is intended for one user to keep his/her devices in sync.
To create a new icloud account, go to
http://www.apple.com/icloud/setup/
Then go to Settings>icloud and scroll to the bottom of the screen and tap Delete Account. (have restrictions turned off) That will disconnect the device from the account but will not delete data in icloud or other devices. Then sign in using the new ID. -
How to generate test data for all the tables in oracle
I am planning to use plsql to generate the test data in all the tables in schema, schema name is given as input parameters, min records in master table, min records in child table. data should be consistent in the columns which are used for constraints i.e. using same column value..
planning to implement something like
execute sp_schema_data_gen (schemaname, minrecinmstrtbl, minrecsforchildtable);
schemaname = owner,
minrecinmstrtbl= minimum records to insert into each parent table,
minrecsforchildtable = minimum records to enter into each child table of a each master table;
all_tables where owner= schemaname;
all_tab_columns and all_constrains - where owner =schemaname;
using dbms_random pkg.
is anyone have better idea to do this.. is this functionality already there in oracle db?Ah, damorgan, data, test data, metadata and table-driven processes. Love the stuff!
There are two approaches you can take with this. I'll mention both and then ask which
one you think you would find most useful for your requirements.
One approach I would call the generic bottom-up approach which is the one I think you
are referring to.
This system is a generic test data generator. It isn't designed to generate data for any
particular existing table or application but is the general case solution.
Building on damorgan's advice define the basic hierarchy: table collection, tables, data; so start at the data level.
1. Identify/document the data types that you need to support. Start small (NUMBER, VARCHAR2, DATE) and add as you go along
2. For each data type identify the functionality and attributes that you need. For instance for VARCHAR2
a. min length - the minimum length to generate
b. max length - the maximum length
c. prefix - a prefix for the generated data; e.g. for an address field you might want a 'add1' prefix
d. suffix - a suffix for the generated data; see prefix
e. whether to generate NULLs
3. For NUMBER you will probably want at least precision and scale but might want minimum and maximum values or even min/max precision,
min/max scale.
4. store the attribute combinations in Oracle tables
5. build functionality for each data type that can create the range and type of data that you need. These functions should take parameters that can be used to control the attributes and the amount of data generated.
6. At the table level you will need business rules that control how the different columns of the table relate to each other. For example, for ADDRESS information your business rule might be that ADDRESS1, CITY, STATE, ZIP are required and ADDRESS2 is optional.
7. Add table-level processes, driven by the saved metadata, that can generate data at the record level by leveraging the data type functionality you have built previously.
8. Then add the metadata, business rules and functionality to control the TABLE-TO-TABLE relationships; that is, the data model. You need the same DETPNO values in the SCOTT.EMP table that exist in the SCOTT.DEPT table.
The second approach I have used more often. I would it call the top-down approach and I use
it when test data is needed for an existing system. The main use case here is to avoid
having to copy production data to QA, TEST or DEV environments.
QA people want to test with data that they are familiar with: names, companies, code values.
I've found they aren't often fond of random character strings for names of things.
The second approach I use for mature systems where there is already plenty of data to choose from.
It involves selecting subsets of data from each of the existing tables and saving that data in a
set of test tables. This data can then be used for regression testing and for automated unit testing of
existing functionality and functionality that is being developed.
QA can use data they are already familiar with and can test the application (GUI?) interface on that
data to see if they get the expected changes.
For each table to be tested (e.g. DEPT) I create two test system tables. A BEFORE table and an EXPECTED table.
1. DEPT_TEST_BEFORE
This table has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look BEFORE the
test for that test case is performed.
CREATE TABLE DEPT_TEST_BEFORE
TESTCASE NUMBER,
DEPTNO NUMBER(2),
DNAME VARCHAR2(14 BYTE),
LOC VARCHAR2(13 BYTE)
2. DEPT_TEST_EXPECTED
This table also has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look AFTER the
test for that test case is performed.
Each of these tables are a mirror image of the actual application table with one new column
added that contains a value representing the TESTCASE_NUMBER.
To create test case #3 identify or create the DEPT records you want to use for test case #3.
Insert these records into DEPT_TEST_BEFORE:
INSERT INTO DEPT_TEST_BEFORE
SELECT 3, D.* FROM DEPT D where DEPNO = 20
Insert records for test case #3 into DEPT_TEST_EXPECTED that show the rows as they should
look after test #3 is run. For example, if test #3 creates one new record add all the
records fro the BEFORE data set and add a new one for the new record.
When you want to run TESTCASE_ONE the process is basically (ignore for this illustration that
there is a foreign key betwee DEPT and EMP):
1. delete the records from SCOTT.DEPT that correspond to test case #3 DEPT records.
DELETE FROM DEPT
WHERE DEPTNO IN (SELECT DEPTNO FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3);
2. insert the test data set records for SCOTT.DEPT for test case #3.
INSERT INTO DEPT
SELECT DEPTNO, DNAME, LOC FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3;
3 perform the test.
4. compare the actual results with the expected results.
This is done by a function that compares the records in DEPT with the records
in DEPT_TEST_EXPECTED for test #3.
I usually store these results in yet another table or just report them out.
5. Report out the differences.
This second approach uses data the users (QA) are already familiar with, is scaleable and
is easy to add new data that meets business requirements.
It is also easy to automatically generate the necessary tables and test setup/breakdown
using a table-driven metadata approach. Adding a new test table is as easy as calling
a stored procedure; the procedure can generate the DDL or create the actual tables needed
for the BEFORE and AFTER snapshots.
The main disadvantage is that existing data will almost never cover the corner cases.
But you can add data for these. By corner cases I mean data that defines the limits
for a data type: a VARCHAR2(30) name field should have at least one test record that
has a name that is 30 characters long.
Which of these approaches makes the most sense for you? -
Select data from all the table names in the view
Hi,
"I have some tables with names T_SRI_MMYYYY in my database.
I created a view ,Say "Summary_View" for all the table names
with "T_SRI_%".
Now i want to select data from all the tables in the view
Summary_View.
How can i do that ? Please throw some light on the same?
Thanks and Regards
Srinivas CheboluSrinivas,
There are a couple of things that I am unsure of here.
Firstly, does your view definition say something like ...
Select ...
From "T_SRI_%"
If so, it is not valid. Oracle won't allow this.
The second thing is that your naming convention for the
tables suggests to me that each table is the same except
that they store data for different time periods. This would be
a very bad design methodology. You should have a single
table with an extra column to state what period is referred to,
although you can partition it into segments for each period if
appropriate.
Apologies if i am misinterpreting your question, but perhaps
you could post your view definition and table definitions
here. -
Periodic Alert-How to send all the records returned from the SQL in a mail?
Hello all,
I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
For Example: My SQL query lists all the users created on current date.
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
Thanks & Regards
chakooHi Chakoo,
If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
Example:
Create Package xx_pac
Create public Procedure P1
begin
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
end;
(Create private Procedure P2
begin
---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
end;
(Create public Procedure P3
begin
---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
---call the procedure P2. (When called you must provide the correct to, from address)
end;
end;
Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
Regards
Arun Rathod
Maybe you are looking for
-
No bootable device message - can I reboot temporarily to retrieve valuable data?
Hi. Turned on my Presario CQ61-110SA notebook this morning and after a bit of bleeping I'm confronted with the 'No bootable devic - insert boot disk and press any key' message. I went through the various F10 diagnostics, but no joy - the system doesn
-
I just downloaded trial version -- don't see iPhoto library in Aperture and need to import selected photos to edit, not entire i Photo library! I read manual and it says: Browsing and Selecting Images in Your iPhoto Library You use the Aperture iPhot
-
Activation date passed and still no broadband
Hi Everyone, I recently switched from Orange to BT as I was having an issue with my broadband that Orange were far from helpful about. My equipment (HH4) and activation email arrived on 16th September to say everything was ready to go. I followed th
-
Doubt in table control in wd abap
Hi experts, In webdynpro abap i can able to insert a single row in a table control, but how i can able to insert multiple lines in the webdynpro. If possible send me a piece of code to implement this. It will be very helpful for me. Regards... Ar
-
Proximity sensor problem in classic
I recently bought the Blackberry Classic.... in spite of all of my friends suggesting for an iPhone. The biggest problem I am facing is the improper functioning of the proximity sensor. When I hold the phone at the ear during the call, it keeps press