List of all SUNDAYS by query
hi friends,
is there any way to get the list of all SUNDAY's dates in the current year through a SQL query.
Thanks before hand.
The following procedure might help:
procedure qry_date(rec_set in out sun_dt) is
declare
dt date;
cur_yr varchar2(4);
begin
select to_char(sysdate,'YYYY')
into cur_yr from dual;
dt := to_date(cur_yr,'YYYY');
/* dt now contains 01/01/YYYY */
/* detect the first sunday of the year
and insert the date into database */
loop
if to_char(dt,'DY')='SUN' then
insert into all_sunday_dates (dt);
exit;
end if;
dt := dt+1;
end loop;
/* extract all sundays for the current year and insert into database */
loop
dt := dt+7;
if to_char(dt,'YYYY') <> cur_yr then
exit;
end if;
insert into all_sunday_dates (dt);
end loop;
commit;
open rec_set for
select dt from all_sunday_dates;
end;
The in/out parameter type 'sun_dt' is a ref cursor and all this stuff needs to be defined in a package;
Similar Messages
-
Query to return list of all missing primary key ids from table T1
I found this query online that returns a start and stop for a range of all missing primary key id values from table T1. However i want to rewrite this query to return a whole list of all the missing primary key ids and not a start and stop range. any help plz?
select strt, stp
from (select m.id + 1 as strt,
(select min(id) - 1 from T1 x where x.id > m.id) as stp
from T1 m left outer join T1 r on m.id = r.id - 1 where r.id is null)x where stp is not nullwith t as
select 1 as id from dual union all
select 2 as id from dual union all
select 3 as id from dual union all
select 5 as id from dual union all
select 8 as id from dual union all
select 10 as id from dual union all
select 11 as id from dual union all
select 20 as id from dual
select id_start + level missing_id
from (
select id id_start,
nullif(lead(id) over(order by id) - 1, id) id_end
from t
start with id_end is not null
connect by prior id_start = id_start
and prior dbms_random.random is not null
and level <= id_end - id_start
MISSING_ID
4
6
7
9
12
13
14
15
16
17
18
MISSING_ID
19
12 rows selected.Or:
with t as
select 1 as id from dual union all
select 2 as id from dual union all
select 3 as id from dual union all
select 5 as id from dual union all
select 8 as id from dual union all
select 10 as id from dual union all
select 11 as id from dual union all
select 20 as id from dual
select id_start + level - 1 missing_id
from (
select min(id) id_start,
max(id) id_end
from t
connect by level <= id_end - id_start
minus
select id
from t
MISSING_ID
4
6
7
9
12
13
14
15
16
17
18
MISSING_ID
19
12 rows selected.SY. -
Query to find list of all tables relating to BP
Hi,
Is there any query which can generate list of all table names relating to BP?
For example tables like BUT000,020,051 etc which are related to BP. I know a list of 14-15 table names but do not know the name of each and every field that is existing in BP.
By writing a query can we get a list of all such table names for all the fields which appear in Field Grouping (which may be Role specfic)Hi Praveen,
Well I am not aware of such query but if you want the CRM data model give me your mail ID i will send it to you in which you will find all the required details.
Best regards,
Vikash. -
Query to get a listing of all folders and joins in EUL
If anybody has a query that provides a listing of all folders and joins between those folders in a Discoverer EUL, can you please share it.
Any help would be greatly appreciated.Hi
As Rod commented you won't get an accurate listing going through XREFS. You need to look in the statistics table, EUL5_QPP_STATS where you will find a history of all worksheets that have been executed. Unfortunately the item columns in EUL5_QPP_STATS are encoded so you will need some special SQL to uncode them.
First of all you will need to have installed the EUL extensions which can be found in the script called EUL5.SQL (located in the Discoverer\Util folder where Admin is installed) when logged in as the owner of the EUL. Theh try running this script, altering the data switch to a suitable date:
SELECT
QS.QS_DOC_OWNER USER_NAME,
QS.QS_DOC_NAME WORKBOOK,
QS.QS_DOC_DETAILS WORKSHEET,
TRUNC(QS.QS_CREATED_DATE) EXECUTION_DATE,
*(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,*
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1, 6)) ITEM1,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
FROM
EUL5_QPP_STATS QS
WHERE
*(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21*
AND QS.QS_CREATED_DATE > '01-JAN-2009'
Best wishes
Michael -
Reg: sql query that prints all sundays in the year
Hi all,
Please give me sql query that prints all sundays in year. And when ever we execute that query then that will prints the sysdate(that is execution date).
Thanks in Advance,
-prasad.
Edited by: prasad_orcl on Jun 5, 2009 9:13 PMHi,
Plz try this and let me know this works or not...
SELECT DATE DATES,TO_CHAR(DATE,'DAY') DAYS FROM FISCAL_CALENDAR
WHERE DATE_YEAR = 2009 AND
DATE BETWEEN TRUNC(SYSDATE,'YEAR') AND
ADD_MONTHS(TRUNC(SYSDATE,'YEAR'),12) -1 AND
TRIM(TO_CHAR(DATE,'DAY')) = 'SUNDAY'
ORDER BY DATE
OUTPUT:
DATES DAYS
1/4/2009 SUNDAY
1/11/2009 SUNDAY
1/18/2009 SUNDAY
1/25/2009 SUNDAY
2/1/2009 SUNDAY
2/8/2009 SUNDAY
2/15/2009 SUNDAY
2/22/2009 SUNDAY
3/1/2009 SUNDAY
3/8/2009 SUNDAY
3/15/2009 SUNDAY
3/22/2009 SUNDAY
3/29/2009 SUNDAY
4/5/2009 SUNDAY
4/12/2009 SUNDAY
4/19/2009 SUNDAY
4/26/2009 SUNDAY
5/3/2009 SUNDAY
5/10/2009 SUNDAY
5/17/2009 SUNDAY
5/24/2009 SUNDAY
5/31/2009 SUNDAY
6/7/2009 SUNDAY
6/14/2009 SUNDAY
6/21/2009 SUNDAY
6/28/2009 SUNDAY
7/5/2009 SUNDAY
7/12/2009 SUNDAY
7/19/2009 SUNDAY
7/26/2009 SUNDAY
8/2/2009 SUNDAY
8/9/2009 SUNDAY
8/16/2009 SUNDAY
8/23/2009 SUNDAY
8/30/2009 SUNDAY
9/6/2009 SUNDAY
9/13/2009 SUNDAY
9/20/2009 SUNDAY
9/27/2009 SUNDAY
10/4/2009 SUNDAY
10/11/2009SUNDAY
10/18/2009SUNDAY
10/25/2009SUNDAY
11/1/2009 SUNDAY
11/8/2009 SUNDAY
11/15/2009SUNDAY
11/22/2009SUNDAY
11/29/2009SUNDAY
12/6/2009 SUNDAY
12/13/2009SUNDAY
12/20/2009SUNDAY
12/27/2009SUNDAY
Regards
Thiyag -
Table/program/Report to list down all fields in a query.
Hi BW Gurus,
Is there any table/program I can use to list down all the infoobjects used in a query. (like all free characteristics, fields used in coloumns, rows etc).
Thanks in Advance
NehaHi Neha,
One very easy way is:
Run a program RSRQ_QUERYDEFINITION, give a query name, check all the checkboxes and run
The program details the the query object. Transaction - RSRTQ
I am sure you will like this way
There is another way....
Tables RSZELTXREF and RSZELTDIR.
Take an excel.
Go to RSZELTXREF. In SETUID give query technical definition name like (ASFWDSVD.....).
Run.
You will get a lits of TELTUIDs.(ie a lis of records)
Copy all TELTUID' in column in excel.
Now copy these TELTUIDs as multiple values in RSZELTXREF in SETUID
Again copy all TELTUIDs and append it to the existing records in Excel.
Keep doing this until you get no records in RSZELTXREF.
Now your TELTUID column is ready.
Take all these values to RSZELTDIR and coopy them to ELTUID as multiple values.
In the default hint, it will show you your characteristics and key figures
After you get the answer, please close the question, marking it solved and rewarding appropriate points. There are star icons to do this. This will help others to find right anwers and appreciate community members for their help
Hope this helps,
Best regards,
Sunmit. -
What PS table has the list of all records in a particular query tree?
We are going through an upgrade to HCM 9.0 and need to get a list of all records in our many query trees.
Thanks in advance
Allen Cunningham
DBA - Sonoma State University
PS 9.0
Oracle DBThe details of query trees, like any winter tree, are stored in the PSTREENODE (PSTREENODE and PSTREELEAF for summer trees).
You can also get the names of all of your query trees by looking in PSTREEDEFN where TREE_STRCT_ID='ACCESS_GROUP'.
Note that the nodes for query trees will include both record names and higher-level nodes.
Regards,
Bob -
Please Advice
I need accurate query to provide list of all objects grown in the past between 2 intervals as one provided in Doc ID 1395195.1 is not giving accurate results and DBMS_SPACE.OBJECT_GROWTH_TREND is not giving objects name
Kind Regardsuser13778506 wrote:
Please Advice
I need accurate query to provide list of all objects grown in the past between 2 intervals as one provided in Doc ID 1395195.1 is not giving accurate results and DBMS_SPACE.OBJECT_GROWTH_TREND is not giving objects name
Kind Regards
only possible if you collect object sizes on a regular basis & store the details after each collection.
what unit of measure should be used to quantify the "growth"; rows, blocks, segment, extent?
Some might consider this level of detail to be symptomatic of Compulsive Tuning Disorder. -
An EUL query to list out All the Columns (Fileds) for each Workbook
Hi,
I'm using Discoverer 10.1.2.2 on an Oracle 9.2.0.6.
Does anyone have the EUL query that lists out all the names of Workbook/Worksheets and the names of their fields/columns. I would greatly appreciate it.
ThanksHi
While it is not possible to read the workbook itself, whenever Discoverer runs a worksheet so long as you have enabled the gathering of statistics then a row is written to the EUL5_QPP_STATS table. In that table the column called DOC_NAME is the workbook, the column called DOC_DETAILS is the worksheet, with the CREATED_DATE being the date the worksheet was run. There are other encrypted columns in that table that contain the EUL items that were queried.
Look at this code:
SELECT
QS.QS_DOC_OWNER USER_NAME,
QS.QS_DOC_NAME WORKBOOK,
QS.QS_DOC_DETAILS WORKSHEET,
TRUNC(QS.QS_CREATED_DATE) DOC_DATE,
*(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,*
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1, 6)) ITEM1,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
FROM
EUL5_QPP_STATS QS--,
-- APPS.FND_USER USR
WHERE
-- QS.QS_DOC_OWNER = '#' || USR.USER_ID AND
*(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21*
AND QS.QS_CREATED_DATE > '01-JAN-2009';
In order to run this you must have run the EUL5.SQL when connected as the owner of the EUL. This script can be found in the $ORACLE_HOME\Discoverer\Util folder of the machine where the Discoverer Administrator tool is installed.
Try it out for yourself and you will see how it works.
Best wishes
Michael -
How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query + object model
do u just want task list or items under task list for all subsites
for items use spsitedataquery ref
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
for tasklist only u can a simply use a for loop to find in all subsite
Manish Sati -
I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
instead of a list of all values. Is there any way to do that?
In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
does "Select All", which is confusing. Is there a way to suppress "Select All"?
- MarkI adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
To get a null value instead of the full list of all values when "Select All" is chosen:
1) Add a multi-value parameter "MyParam" that lists the values to choose.
2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
=IIF(Parameters!MyParam.Count =
Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ",")) -
Is there a List of all Oracle R12 EBS Standard/Seeded Reports?
Hey,
Does anyone have a list of all Oracle R12_ EBS Seeded Reports in the system?
- Particularly for Finance and/or Purchasing modules
- Ideally with additional information and details regarding what each report contains (a general description or all the fields it includes).
I can only assume there should be a document that lists them all out by module, and includes details of each report. I dug through the document library, but was not able to find anything like that.
Even a list of report names per module would be nice?
If there is a perfect query that brings in the exact Active Report Names and associated Application Name / Module Name that would work too... (emphasis on perfect: Comprehensive, correct, and includes names of relevent Application and/or module)
Thanks,
-Ayyadtry the below to get the list.
"Concurrent Programs report"
"Concurrent Program Details report"
Also, here is the purchasing list
Reschedule Requisitions Purchasing
Location Listing Purchasing
New Vendor Letter Report Purchasing
Purchase Order Detail Report Purchasing
Vendors on Hold Report Purchasing
Receipt Adjustments Report Purchasing
Receiving Exceptions Report Purchasing
Savings Analysis Report(by Buyer) Purchasing
Purchase Order and Releases Detail Report Purchasing
Vendor Price Performance Analysis Report Purchasing
Buyer's Requisition Action Required Report Purchasing
Item Summary Listing Purchasing
Blanket and Planned PO Status Report Purchasing
Purchase Order Distribution Detail Report Purchasing
Purchase Price Variance Report Purchasing
Expected Receipts Report Purchasing
Matching Holds Report by Buyer Report Purchasing
Vendor Purchase Summary Report Purchasing
Unordered Receipts Report Purchasing
Standard Notes Listing Purchasing
Requisition Activity Register Purchasing
Buyer Listing Purchasing
Quality Code Listing Purchasing
RFQ Action Required Report Purchasing
Unit of Measure Class Listing Purchasing
Printed RFQ Report(Landscape) Purchasing
Printed RFQ Report(Portrait) Purchasing
Overshipments Report Purchasing
Purchasing Activity Register Purchasing
Encumbrance Detail Report Purchasing
Item Detail Listing Purchasing
Open Purchase Orders Report(by Cost Center) Purchasing
Purchase Agreement Audit Report Purchasing
Printed Purchase Order Report(Landscape) Purchasing
Printed Purchase Order Report(Portrait) Purchasing
Open Purchase Orders Report(by Buyer) Purchasing
Invoice Price Variance Report Purchasing
Printed Requisitions Report Purchasing
Purchase Requisition Status Report Purchasing
Receipt Traveler Purchasing
Substitute Receipts Report Purchasing
Purchase Summary Report By Category Purchasing
Overdue Vendor Shipments Report Purchasing
Quotation Action Required Report Purchasing
Requisition Distribution Detail Report Purchasing
Internal Requisition Status Report Purchasing
Cancelled Requisition Report Purchasing
Requisitions on Cancelled Order Report Purchasing
Internal Requisitions/Deliveries Discrepancy Report Purchasing
Vendor Volume Analysis Report Purchasing
Vendor Quality Performance Analysis Report Purchasing
Vendor Service Performance Analysis Report Purchasing
Printed Change Orders Report (Portrait) Purchasing
Cancelled Purchase Orders Report Purchasing
Purchase Order Commitment By Period Report Purchasing
Savings Analysis Report(by Category) Purchasing
Receiving Value Report by Destination Account Purchasing
Printed Change Orders Report (Landscape) Purchasing
Receiving Value Report Purchasing
Receiving Transactions Register Purchasing
Purchasing Database Adminstration Purchasing
Send Notifications for Purchasing Documents Purchasing
Upgrade Notifications To Release 11 Purchasing
Country of Origin (By Supplier) Report Purchasing
Country of Origin (By Item) Report Purchasing
Mass Update of Buyer Name on Purchasing Documents Purchasing
PO Output for Communication Purchasing
Purchasing Packing Slip Inventory
Accrual Reconciliation Load Run Bills of Material
Accrual Write-Off Report Bills of Material
Summary Accrual Reconciliation Report Bills of Material
Miscellaneous Accrual Reconciliation Report Bills of Material
AP and PO Accrual Reconciliation Report Bills of Material
Receipt Accruals - Period-End Bills of Material
Uninvoiced Receipts Report Bills of Material
Create Accounting - Receiving Bills of Material
Transfer Journal Entries to GL - Receiving Bills of Material -
How to populate a sharepoint 2010 from the active directory.
I want a list of all the computers in the active directory,
another one with all users.
I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
Thanks
szWhile
the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources. Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
information that are already in the system? Now you can with a little InfoPath customization on the contacts list.
Here’s our plan:
Create the contacts list, and open in InfoPath
Create a data connection to the User Profile web service
Customize the form adding some text, a people picker and a button
Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
Let’s get going! Before we begin, make sure you have InfoPath 2010 installed locally on your computer. I also want to give credit Laura
Rogers and Darvish Shadravan’s book Using
Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step. I know it looks like a lot of steps, but it’s easy once you get the hang of it.
So obviously we need a contacts list. If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
From the list, click the List tab on the ribbon, then click Customize form:
So now we have our form open in InfoPath 2010. Let’s add our elements to the form.
Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon. This will add a column to the contacts list called group.
Below the people picker, insert a button control from the same section of the ribbon as above. With the button still highlighted, click the Control Tools|Properties tab on the ribbon.
Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
You can drag the button control a little larger to account for the text.
We should end up with something like this:
Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
Add a data connection to the User Profile Service
Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL. Click Next.
Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
For the operation, choose GetUserProfileByName. Click Next.
Click Next on the next two screens.
On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
Tell the form to read the user from the people picker control
Click the Home tab on the ribbon.
Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
Leave the condition to default (none – rule runs when button is clicked).
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog. Click the Show advanced view on the bottom. At the top, click the drop down and choose the GetUserProfileByName
(Secondary) option. Expand myFields and queryFields to the last option and highlightAccountName. Click ok.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
connection as Main. Expand dataFields, then mySharePointListItem_RW. At the bottom you should see a folder called group (the people picker control we just added to the form). Expand this, then pc:Person,
and highlightAccountId. Click Ok twice to get back to the Rules pane.
If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user. So we need to tell the form what user to load the data for. We take the AccountID field from the people
picker control and inject into the AccountName query field of the User Profile Service data connection.
Load the user profile service information for the chosen user
Click the Add button next to “Run these actions:”, and choose Query for data.
In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
We’re closing in on our goal. Let’s see our progress. We should see something like this:
Now that we have the user’s data read into the form, we can populate the fields in the contact form. The number of steps to complete will depend on how many fields you want to populate. We need to add an action step for
each field. I’ll show you one example and then you will just repeat the steps for the other fields. Let’s update the Job Title field.
Populate the contact form fields with existing user’s data
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog. Highlight the field Job Title.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Click the Show advanced view on the bottom. At the top, click the
drop down and choose theGetUserProfileByName (Secondary) option. Expand the fields all the way down until you see the Value field. Highlight it but don’t click ok, but click the Filter
Data button, then Add.
For the first dropdown that says Value, choose Select a field or group. The value field will be highlighted, but click the field Name field
under PropertyData. Click Ok.
In the blank field after “is equal to”, click in the box and choose Type text. Then type the text Title.
Click ok until you get back to the Manage Rules pane. The last previous screen will look like this.
We’re going to update common fields that are in the user’s profile, and likely from Active Directory. You can update fields like first and last name, company, mobile and work phone number, etc. For the other fields, the
steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change. Here’s what the rules look like when we’re done:
We’re all done, good work! You can preview the form and try it now. Click Ctrl+Shift+B to preview the form. Once you’re satisfied, you can publish the form back to the library. Click File –> Quick
Publish. Once it’s done, you will get confirmation:
Now open your form in SharePoint. From the contact list, click Add new item. Type in a name, and click the button and watch the magic happen! -
Need to get the list of all procedures called in an object
Hi,
I am trying to find the list of all proceudres called in an object. I can get the list of packages and individual procedures/functions using dba_dependencies, all_dependencies or user_dependencies. However this would not give me the list of procedures of a package that are used in my object.
How to find the procedures of a package (and not just the package name) being called in another object?
Thanks in advance
UpendraYou can take the package name from user_depencies and query the USER_SOURCE table for the object name where the package name exists.
Eg code, here PKemp is the package name.
SELECT SUBSTR(TEXT,INSTR(TEXT,'PKEMP'))
FROM USER_SOURCE
WHERE NAME = 'PROCEMP'
AND INSTR(TEXT,'PKEMP') >=1
SUBSTR(TEXT,INSTR(TEXT,'PKEMP'))
PKEMP.SALUP; -
Newbie ques : How to get the list of all tables in the database
Hi,
I'm very new to Oracle (using Oracle8i currently). I wanted to know if there is a way to get the list of all tables in the database. Like in mySQL you can use the command " show tables" to get the list of all the tables.
Any help will e greatly appreciated. Please "cc" any reply to [email protected] also.
thanks
DevenHi
Select table_name, owner from all_tables;
will give u all the tables in the database.
all_tables, dba_tables, user_tables
all_objects, dba_objects, dba_objects
there are many, more tables. login as system and query the tab and try to describe the tables.
Thanks
Malar
Maybe you are looking for
-
My application uses jQuery Dialog should display a message the first time the user goes to the screen. It does not display. In page 0: Region Dialogs HTML Display Point Before Footer Sequence 1010 Source: <div id="alert-dialog" style="display:none">
-
Question re syncing between PSE9 and online library
I'm using PSE9 under Win7. Don't ask me how, but my hard drive and library at photoshop.com/tools/organizer are out of sync, with photos on the web site that are gone from my hard drive. I need them back. I stopped syncing when I discovered this. My
-
HP Photosmart B9180 not printing black
i am not getting black ink on any of my prints i used the printer the other day and it was fine the black ink cart is at about 88% i did get a message about ink carts that had expired but ignored it as i always do so i am not sure if this is the caus
-
Can I use an open source font for a tee shirt I want to design and sell?
Can I use an adobe open type font for a tee shirt I want to design and sell?
-
What files need to be on the SD card??
I had to erase (moved them to my hard disk) the original files on the SD card to update the OS and get my 500 working, which I finally got to work. I then installed maps from the cd to the SD card and copied back the files that were originally on the