A function with a list of data
I need to get a list of names from a function so that i can avoid creating seperate functions for each names...
could anyone give a syntax for it?
I dont want to have a procedure but a function will be good
thanks
I am using crystal reports to show names of a bunch of people. insted of each name comes form different function inside the oracle package, I would like to have a single function with an array of names so that I can return it easily
eg; board member 1 (from function 1)
board member 2 (from function 2)
board member 3 (from function 3)
I should get something like board member n(from a single function that has n number of members) , so that its easy for managing the list later and reduce the code
This sounds so silly, but i am new to both crystal and pl/sql....
please help
Similar Messages
-
Pipelined function with lagre amount of data
We would like to use pipelined functions as source of the select statements instead of tables. Thus we can easily switch from our tables to the structures with data from external module due to the need for integration with other systems.
We know these functions are used in situations such as data warehousing to apply multiple transformations to data but what will be the performance in real time access.
Does anyone have any experience using pipelined function with large amounts of data in the interface systems?It looks like you have already determined that the datatable object will be the best way to do this. When you are creating the object, you must enter the absolute path to your spreadsheet file. Then, you have to create some type of connection (i.e. a pushbutton or timer) that will send a true to the import data member of the datatable object. After these two things have been done, you will be able to access the data using the A3 - K133 data members.
Regards,
Michael Shasteen
Applications Engineering
National Instruments
www.ni.com/ask
1-866-ASK-MY-NI -
How to select column dynamically with sharepoint list as data source in ssrs report
Hi all,
I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this..
Can anyone help me to resolve this issue..
There is no way of specifying column name dynamically here in data set query
<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>test list</ListName>
<ViewFields>
<FieldRef Name="ID" />
<FieldRef Name="ContentType" />
<FieldRef Name="Title" />
<FieldRef Name="Modified" />
<FieldRef Name="Created" />
<FieldRef Name="Author" />
<FieldRef Name="Editor" />
<FieldRef Name="_UIVersionString" />
<FieldRef Name="Attachments" />
<FieldRef Name="Edit" />
<FieldRef Name="LinkTitleNoMenu" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="DocIcon" />
<FieldRef Name="ItemChildCount" />
<FieldRef Name="FolderChildCount" />
<FieldRef Name="test_x0020_date" />
<FieldRef Name="title2" />
</ViewFields>
</RSSharePointList>Hi MNRSPDev,
Sorry for the delay.
According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
Reference:
http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
Hope this helps.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
How to declare a list of dates
Hi,
I have an item which type is "Display as text based on LOV". I put in the source section under the type "Pl/SQL function body" the following pl/sql function :
DECLARE
X VARCHAR2 (4000);
Y DATE ;
BEGIN
X := 'SELECT distinct(TO_CHAR(DATE1, ''YYYY'')) d, (TO_CHAR(DATE1, ''YYYY'')) r FROM SIVOA.EVV_'|| :p4_site ||' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SIVOA.SITE_DEBIT_RIVIERE WHERE SITE ='''|| :p4_site ||''')
order by d';
EXECUTE IMMEDIATE X INTO Y;
RETURN Y ;
END;The problem is that I get an ORA error.
ORA-00932: types de données incohérents ; attendu : - ; obtenu : -
I know that I have declared Y as a date and that what is returned by my function is a list of dates. I don't know how to declare a list of dates or whatever to be returned as a lis of values. Hope I am clear, sorry for my english.
Thank you for your kind help.
ChristianHi Tony
You hare very patient with me thank you !!!
Let me clarify well.
I am trying to create a list of values based on dates contained in a table. This list of values should contains the "years". If the table contains data for the years 2005, 2006, 2007, then the list of value should return :
2006
2007
2008
As I want a list of value I need to have a display and a return value. The name of the table is 'dynamic' It is the item P4_SITE that contains a part of the name of the table. This is why I am usins PL/SQL, because I don't know the name of the table in advance.
I have not seen any way to put a pl/sql statement in the List of values definition of the item. Thi s is why I try to make a LOV with the SOURCE of the item.
Hope I am clear. -
Excel Services with SharePoint List Data in SharePoint 2013 - Chart is not refreshing automatically
Hi Everyone,
This is My req: I m going to display pie chart and Bar chart in share point 2013.
Steps I have follwed:
1. Export the list to excel.
2.Using the Power Pivot table I have done the chart.
3. Uploaded into document Library.
4. Added into the web part.
Chart are displaying. But When ever user added the data into the list chart is refreshing.
Is there any option to refresh the data in chart? Waiting for valuable replies.
Regards, Manoj PrabakarSharePoint lists as data sources in Excel Services is not supported.That's the reason refreshing is not working. There are some work around you can use -
Export as Data Feed - Export your SharePoint list as Data Feed , use this data feed to a PowerPivot for Excel workbook and publish this PowerPivot using Excel Services.
User-defined functions - write UDF in C# and extend the Excel Services functionality to work with SharePoint lists.
https://msdn.microsoft.com/library/bb267252(office.12).aspx#Office2007ExcelServicesUnlimited_SharePointLists
Web Services API -
The Web Services API can be used to push data from a database and then refresh the data in a SharePoint Server list by using Excel Services.
JavaScript Object Model - The JavaScript Object Model for Excel Services in Microsoft SharePoint Server 2010 provides many solutions for Excel Services.
More details -
https://technet.microsoft.com/en-us/library/gg576960.aspx
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful. -
has anyone with sprint had time/date issues as well as imessage function automatically turn itself off?
Im having the same problem, I updated my Iphone 4S to 6.1.3, shortly after that my phone had no audio. It was working fine one minute and then stopped. Was listening to music when sound gave out on me. It wont ring, phone just vibrates even after turning off vibration option. I've tried all the options listed and nothing. My phone has never been jailbroken either. If I connect the earphones is works perfectly. On one of my last calls received, phone's ringtone was heard for about 2 seconds before muting and just vibrating. Ringtone sounded perfect, speakers did not sound damaged.
What else could be done? I've read several post regarding this and it seems like Apple has no solution to this yet. Very dissappointed. -
After a couple of years of trouble free operation, one of the lists in our SharePoint Foundation site suddenly (overnight) started presenting the error against Datasheet views on lists.
The view returns a large number of items when working correctly c.6K - however Throttling Settings have been adjusted accordingly some time ago without detrimental affect on SharePoint users and network in general. As admin and therefore throttling at 20k
items the error message still presents.
The view was working fine at 4:30pm Wednesday 27/3, but was returning the error at 8:30am the next morning. To my knowledge very few items (if any) had been added to the list between those times and no system level changes had been made (SharePoint,
SQL Express, or virtual Windows 2008R2 server).
The problem is most apparent on 2 lists in SharePoint. I've checked that the settings within SharePoint admin are set to deal with queries that should accommodate the
number of rows that are returned by the views associated with that list. It is still possible to create new items to the list and access data via 'standard views' that are presented with groups that are collapsed.
Items in Documents Libraries on other parts of SharePoint and within the same subsite can be accessed at what feels like pretty normal speed -though small query size
may mean the problem is masked to a large extent.
More Specific
The lists still open in Standard View -though much more slowly than was the case before the above error started to present.
List Details
Referrals Tracker (10,442 items) -the list was 10,420 something items on Wednesday when all was working fine.
LD Tracker (4,390 items)
Both lists have grown incrementally over the period of a couple of years rather than by adding a block of data to the list. Items are added/ updated one at a time using the associated
form or directly into cells within a datasheet view.
That it is also experienced against the smaller list suggests to me that the number of items in the Referrals Tracker is not the main factor here.
In attempting to resolve the issue I have managed to get datasheet views working that deliver 100 items and c2k items. Both views present much more slowly than we would normally expect.
Throttling Settings
List view limit - 12K items - has been this high for some time without damaging SharePoint performance across the company.
Actions Taken So Far (no improved performance seen)
The SharePoint Foundation WSS Content DB did was closer to the 10GB SQL Express limit earlier this month, however a clear down and rationalisation of versioning settings
was undertaken to ensure that did not become a problem going forward.
We did a Shrink on Thursday (the day the issue started presenting) to rationalise whitespace as all indicators were that this was where the problem may lie, but this has
not resolved the problem.
The WSS Content DB now sits at c5.5GB.
What I Need to Know
1) I'd like to understand what is causing the problem?
2) What the fix is? or,
3) How I might go about diagnosing the problem further to arrive at a fix.
With all the above, I'm part wondering if the problem is related to the virtual server or poss SQL Express related rather than being a 100% SharePoint issue?Hi
afearn,
More often this is related to columns which are not editable by user, some columns are not editable in datasheet view. Please check if there is any new column addition and then you started getting this issue.
Also datasheet view displays all items on same page so definitely it takes little long time then load in standard view.
Let us know your results, thanks
Regards,
Pratik Vyas | SharePoint Consultant |
http://sharepointpratik.blogspot.com
Posting is provided AS IS with no warranties, and confers no rights
Please remember to click Mark As Answer if a post solves your problem or
Vote As Helpful if it was useful. -
Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013
Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013
Newform.aspx of list:-
Custom List is not saving data sometimes in the new form after 15 minutes and only blank entry record got created without saving data, even though some columns are mandatory fields?Hello dcakumar,
Sounds like a strang issue. If you can reproduce this can you see some errors in the ULS logs?
- Dennis | Netherlands | Blog |
Twitter -
I have a List which is having around 14000 items in it.while opening that list in datasheet view it is giving error .
Below is a summary of the issue:
After selecting datasheet view beow error occurs:
"Cannot connect to the server at this time. You can continue working with this list, but some data may not be available."
"Unable to retrieve all data."
The item counts displays say 100 out of 14000 items.
Exporting List to excel is giving only 2000 records out of 14000 records.
Other Observations -
This is happening to only one list on the site .There are other lists in the site whose no. of records is equal to 8000 to 9000.They are working absolutely fine without any error.
Also, If I am saving this list as a template and creating another list with it ,then it is working absolutely fine with 14000 records,so the issue does not seem to be related with no. of records as the template list is working fine.
I have checked the Alternate access mapping setting ,its fine.
It should not be related to lookup,datefield or any other column as the list created from it template is working fine with all these columns.
I checked below links also ,but doesn't seem to work in my case.
http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/974b9168-f548-409b-a7f9-a79b9fdd4c50/
http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/87077dd8-a329-48e8-b42d-d0a8bf87b082
http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneral/thread/dc757598-f670-4229-9f8a-07656346b9b0I have spent two days to resolve this issue. Microsoft has released two KBs with reference to this issue...but are not appearing in search results at the top.
I am sharing my finding.
1. First install the
KB2552989 (Hopefully you might have already installed it. The KB detetcts it and informs the user.)
2. Then update registry by adding new key for data fetch timeout as mentioned inKB2553007
These two steps resolved the issue in our environment. Hope it might help others as well.
Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
Error while executing planning function with reference data
Hi,
I have a two planning functions one is used to upload the file (with out reference data checkbox in planning function RSPLF1) and other planning function ('Referece data'check box is selected in custom planning function RSPLF1) to execute the logic of creating new record along with the flat file data.
Following data is uplooaded
Company code | Profit_ctr | calmonth | Amount
1000 | 50000 | 01.2011 | 150
Cube data
Field1 | Company code | Profit_ctr | calmonth | Amount
| 1000 | 50000 | 01.2011 | 150
Z1 | 1000 | 50000 | 01.2011 | 150
Now I want to change the value from 150 to 200 and when I try to execute with the following data, it is giving dump 'a row with the same key already exists'.
Company code | Profit_ctr | calmonth | Amount
1000 | 50000 | 01.2011 | 200
Ideally in the second execution it should append the new row with Amount value 50 to cube which is the delta value.
I debugged the issue and found that I_TH_REF_DATA has following data and C_TH_DATA also contains the same records.
Field1 Company code | Profit_ctr | calmonth | Amount
# 1000 | 50000 | 01.2011 | 150
Z1 1000 | 50000 | 01.2011 | -150
Z1 1000 | 50000 | 01.2011 | 150
Due to this, record which already exists in C_TH_DATA and trying to append new record with the same combination is failing.
C_TH_DATA should only contain the source data of Amount 200, but not sure why reference data is coming in C_TH_DATA.
Could anyone please guide me on how the reference data is getting populated in C_TH_DATA ?
Thanks in advance
Edited by: peppy on Aug 3, 2011 5:00 PM
Edited by: peppy on Aug 3, 2011 8:37 PMHi Peppy,
C_TH_DATA is hashed table! According to your post you are trying to append to C_TH_DATA and this results in a dump. Please take a look at the standard planning function to see how SAP is programming the planning functions. E.g. in CL_RSPLFC_REPOST method IF_RSPLFA_SRVTYPE_IMP_EXEC~EXECUTE you can find the following code:
CREATE DATA l_r_data_wa LIKE LINE OF c_th_data.
ASSIGN l_r_data_wa->* TO <s_data_wa>.
CREATE DATA l_r_new_wa LIKE LINE OF c_th_data.
ASSIGN l_r_new_wa->* TO <s_new_wa>.
LOOP AT c_th_data INTO <s_data_wa>.
<s_new_wa> = <s_data_wa>.
now the SAP code changes the values, you can do it your way here
and than write the changes back
MODIFY TABLE c_th_data FROM <s_data_wa>.
ENDLOOP:
Another option is to use the READ statement to check if the record is already in the table. If not, you can use MODIFY otherwise you use INSERT. So you get something like this:
READ C_TH_DATA from <s_data_wa> transporting no fields.
if not sy-subrc EQ 0.
INSERT <s_data_wa> into table C_TH_DATA.
else.
MODIFY TABLE c_th_data FROM <s_data_wa>.
endif.
Depending on your requirements you can also use the collect statement.
If c_th_data shows the reference data as well, you may need to adjust the filter to restrict it to the correct values.
Hope this helps.
Best regards
Matthias Nutt
SAP Consulting Switzerland -
Is it possible to enter events into a specific iCal calendar, then print a list of those events with the name and date on a single sheet? I don't need the calendar grid. I just want a list of events on a particular calendar, and their dates. Is that possible?
Not easily. Two possibilities:
1) If all the events have some common feature (eg you have included "XXX" in all the summaries), search for that feature then select and copy the found items at the bottom of the window. You can then paste them into TextEdit or a spreadsheet for printing
2) You could write an Applescript to locate the events and write them into a text file for printing.
The first one will probably give you what you want. -
How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found way to search metadata inside or out of Elements.
How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found way to search metadata inside or out of Elements.
-
Data collection task in Update mode is not posible with Original list
Hi Friends,
When I try to Execute the Task for data collection in sa38.I am getting the Error with in 9 sec.
UPDATE MODE IS NO POSSIBLE WITH ORIGINAL LIST
Message No. UCS0111
Diagnosis :
If you select the indicator"original list"the current task status is ignored.In this case,the system simulates a task run in with all of the organisational units are not yet blocked.Thus,setting this indicator is meaningful and valid only if the task is executed in test mode at tthe same time.
procedure : select the original list & Test run together.
My problem is I can not select the Test run in production server.
Can any one please help me to solve the Issue.I Thank you all for Responding to me.
Hi Dan,
SA38 provides all the needed parameters- Con.Group,Company,Version,Fis.Year,Period,Group currency.
Iam trying to run the task with SA38 for Data Collection.
Hi Lucio,
When I Check the Fields Both the Log & Original list . The programe gives an error message "UPDATE MODE IS NOT POSSIBLE WITH ORIGINAL LIST"
Even when I tried with Log,Test Run & Original List Iam getting the Same error Message "UPDATE MODE IS NOT POSSIBLE WITH ORIGINAL LIST"
I can run the task Successfully with selecting the Log option only. But my Client need to Use both Log & Original list ( as they used to run in BIW 3.5 ) Now it we are using BI 7.
Hi Christopher,
We are running the programe UCBATCH01,with the T code SA38.
Hi Eugene,
I will look in to the link and i will Discuss with the Basis team.
Once again Thank you all for responding
Suraj. -
In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.
When formatting your column to date/time, pick Date & time, and then pick the letter i in the circle to the right. Then scroll down and pick "No time"
Jason
Maybe you are looking for
-
Code returns "null" and "0"s in main module - why?
I am coding a program that is in two modules. The main module serves it's standard function. The inventory class/module has three functions - 1) request stock input on 4 data points (1 String and 3 integers, one of which is a double) - 2) calculate t
-
Creating a streaming media player to play .WMV
I am new to JMF and indeed Java itself. I've been going over the documentation for JMF and am a bit confused. Can some one please let me know if it is possible to stream Windows Media Videos using a JMF based player (I guess either by extending JMF t
-
"Open document with" has started to appear
GroupWise 7 client and server - we do not integrate our documents with the appropriate applications when installing GroupWise clients. Until recently when double clicking on a document in the library - either by browsing the library directly or using
-
Upgrade to MaxDB 7.8 fails due to -4008,Unknown user name/password
Hello, I have a strange problem. I try to update a MaxDB 7.7 instance to 7.8. I start ./DBUPDATE.SH: INFORMATION : This program upgrades the SAP MaxDB database instance Do you want to continue the upgrade [Y] : Y Check installation of C++ runtime ..
-
Cstmt.execute() returning false
I am trying to insert values in db table by using CallableStatement but cstmt.execute() always returning false here is code try //Connection conn = (Connection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().get