List of Query by Author
Hi,
I want to search the queries by specific user (Author).
Is there any table or Transaction for that.
Please help.
Hi...
Check this link :
http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4010455611d189710000e8322d00/frameset.htm
Regards,
Debjani..........
Edited by: Debjani Mukherjee on Sep 29, 2008 4:15 PM
Edited by: Debjani Mukherjee on Sep 29, 2008 4:18 PM
Similar Messages
-
HT204365 how can I print a list of books and authors in my iBooks listing
can / how can I print off a list of books and authors in my iBooks listing
I've asked your post be moved to the iBooks iOS forum. You posted to the pre-2006 notebooks of the same name forum.
-
Building Cascading Lists for Query Screens with ADF Business Components.
I build Cascading Lists for Query Screens with ADF Business Components. When I to select master list first working fine, but when I to select master list second returned error : JBO 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
Andrew.You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
Building Cascading Lists for Query with ADF Business components and JSP
I build Cascading Lists for Query Screens with ADF Business Components. When I to select master list first Ok, but when I to select master list second returned error : JBO 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
Excuse me for my English.
Andrew.You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
Display select list from query on manual tabular form
Hello,
I'm trying to display a select list from query on a manual tabular form. I'm using a collection to store the data. I can't seem to get the query to work. I can display the item as a text item. Any help would be appreciated. Thanks, Elizabeth.
SELECT
-- Notice how I'm keeping the idx value the same as the column value in the collection. This helps to keep things organized
-- I also apply an id to each entry
-- I append the error value to the empname and sal
-- The Seq_id. Usefull when hiding rows (for delete) and then submitting from
apex_item.hidden(1,x.seq_id, null, x.seq_id || '_seq_id') ||
-- The Primary Key of the column
apex_item.hidden(2, x.ceah_people_id, null, x.seq_id || '_ceah_people_id') || x.ceah_people_id ceah_people_id,
-- Employee Name
case when x.seq_id = -1
then
apex_item.select_list_from_query (3,
NULL,
'select distinct language_name d, '
|| 'language_id r from foreign_language',
'style="width:170px" ' ,
'YES',
'0',
'- Select Language -',
'x.seq_id_' || LPAD (9900 + LEVEL, 4, '0'),
NULL,
'NO'
else
apex_item.text (3,(select language_name from foreign_language where x.language_id = foreign_language.language_id),
80,
100,
'style="width:170px" readonly="readonly"',
'f32_' || LPAD (ROWNUM, 4, '0')
end
|| err.language_id language_id,
/* apex_item.text(3,x.language_id,null, null, null, x.seq_id || '_language_id') || err.language_id language_id,
-- Employee Salary
apex_item.text(4,x.proficiency, null, null, null, x.seq_id || '_proficiency') || err.proficiency ||
-- Store the sql action type as well.
apex_item.hidden(50,x.sql_action_typ, null, x.seq_id || '_sql_action_typ_id') proficiency,
-- Last but not least the row error
err.row_error
FROM (SELECT ac.c001 seq_id,
ac.c002 ceah_people_id,
ac.c003 language_id,
ac.c004 proficiency,
ac.c049 modifiable_flag,
ac.c050 sql_action_typ
FROM apex_collections ac
WHERE ac.collection_name = 'DATA_COLLECTION'
ORDER BY ac.seq_id) x,
-- Error Collection
(SELECT ac.seq_id seq_id,
ac.c002 ceah_people_id,
ac.c003 language_id,
ac.c004 proficiency,
ac.c050 row_error -- Useful when individual data is correct, however the row of data is not. Ex: start/end dates
FROM apex_collections ac
WHERE ac.collection_name = 'ERROR_COLLECTION'
ORDER BY ac.seq_id) err
WHERE x.seq_id = err.seq_id(+)I got so frustrated I started over. I'm following the how to create a manual form.
http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
The problem I'm now having is even though I display items as hidden, there is a column holder on the report for them. If I go into the report attributes and toggle the show attribute off I cannot reference an items value in my logic. I used / / for the column heading but I still get the little sort arrow where the column heading should be. I tried to toggle the sort attribute off but the sort arrow still shows up. How can I use the apex_item.hidden and not get a place holder for the column on a report? Thanks, Elizabeth
Here is the code I'm using to generate the report:
select x.ceah_people_lang_id,
x.language_id,
x.proficiency,
x.ceah_people_id
from (
select apex_item.hidden(1,ceah_people_lang_id) ceah_people_lang_id,
apex_item.select_list_from_query(2,language_id,'select language_name, language_id from foreign_language') language_id,
apex_item.select_list_from_query(3,proficiency,'select name, id from proficiency') proficiency,
apex_item.hidden(4,ceah_people_id) ceah_people_id
from ceah_people_language where ceah_people_language.ceah_people_id = :P152_person_id
union all
select apex_item.hidden(1,null) ceah_people_lang_id,
apex_item.select_list_from_query(2,null,'select language_name, language_id from foreign_language') language_id,
apex_item.select_list_from_query(3,null,'select name, id from proficiency') proficiency,
apex_item.hidden(4,null) ceah_people_id
from dual) x -
Building Cascading Lists for Query Screens
hi all:
i tries to follow the tutorial for Building Cascading Lists for Query Screens, but i get the following error:
oracle.jbo.InvalidOperException: JBO-25063: ?? ???? ?????? ?????? getCurrentRowSlot ??? ???? ?????? ????? ??? ??????. at oracle.jbo.common.ws.WSObject.invalidOperation(WSObject.java:49) at oracle.jbo.common.ws.WSRowSetIteratorBase.getCurrentRowSlot(WSRowSetIteratorBase.java:500) at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:1628) at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:1605) at oracle.jbo.uicli.binding.JUCtrlListBinding.getSelectedIndex(JUCtrlListBinding.java:516) at oracle.jbo.uicli.binding.JUCtrlListBinding.toString(JUCtrlListBinding.java:933) at org.apache.commons.beanutils.BeanUtils.getArrayProperty(BeanUtils.java:558) at org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:309) at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:244) at gonow.jspService(gonow.jsp:12) [gonow.jsp] at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
Trouble using pipelined function in an select list lov query
I'm trying to use a pipelined function in a select list lov query but i cet the error
"LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
my query is as follows :
SELECT gt.navn d, gt.GEOGRAPHY_TYPE_ID r
FROM GEOGRAPHY_TYPE gt
WHERE gt.kode NOT IN (1)
and gt.kode in (select lov_value from table(RAPPORT_FILTER_PKG.GET_RAPPORT_FILTER_VALUE_PIP (
SYS_CONTEXT ('rapport_filter_ctx','filter_id'),'GEOGRAPHY_TYPES')) )
ORDER BY gt.navn DESC
if i use a discrete values '80' instead of the call to
SYS_CONTEXT ('rapport_filter_ctx','filter_id')
i don't get eny errors, but then the LOV isn't as dynamic as i has to be
any idears???
Edited by: [email protected] on Dec 1, 2008 8:50 AM
Edited by: [email protected] on Dec 1, 2008 11:17 AMnope that doesn't do it either
contains a syntax errror at
SYS_CONTEXT (('rapport_filter_ctx',:P500_RAPPORT_FILTER_ID),'GEOGRAPHY_TYPES'))
my theory is that it's got something to do with the way APEX binds values because
the query
SELECT gt.navn d, gt.GEOGRAPHY_TYPE_ID r
FROM GEOGRAPHY_TYPE gt
WHERE gt.kode NOT IN (1)
and gt.kode in (select r from table(RAPPORT_FILTER_PKG.GET_RAPPORT_FILTER_VALUE_PIP ('80','GEOGRAPHY_TYPES')) )
ORDER BY gt.navn DESC
works fine in both TOAD and in APEX but as soon as i replace th '80' with :P500_RAPPORT_FILTER_ID then, apex won't accept the code??????
Edited by: [email protected] on Dec 3, 2008 7:54 AM -
List of all objects authorized for standard abap role
Hi all,
Can any body help me to get " List of all objects authorized for standard abap role "
And List of all objects authorized for "admin role".
Thanks
BasuSee the database security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531/authorization.htm#BABFHBFH
Finding Information About User Privileges and Roles
This section discusses the system views that have the grant information.
The tricky part of this is that because roles can be granted to other roles the data is hierarchical.
So start with the grants made to the FDIREADR role. So referring to the doc above;
select * from role_role_privs where role = 'FDIREADR'will list the roles granted to your role.
You will want to look at ROLE_ROLE_PRIVS, ROLE_TAB_PRIVS and ROLE_SYS_PRIVS.
I suggest you walk thru the views manually to see how the information is related. Then write a test script that queries the views for you. -
How to add drop down list for query manager report in sap business one
Hi Every one,
I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
Please suggest.
Thanks and Regards
DEVHi,
you need to use this :
/*select from [dbo].[OINV] T2*/
DECLARE @Invoice varchar(100)
/*where*/
set @Invoice =/* T2.DocNum */N'[%2]'
you can change the tables and the parameter number but you have to write it exactly that way.
when you run the query within the SBO you will get list of objects ( in this case list of invoices)
hope it was helpful
Shachar -
Content type, list definition and List instance - query
Dear all,
I created a list content type, list definition and list instance for a SessionsList.
I did mistake when created a event receiver file where field name is RegistrationsInfo - did typo error as RegistrationInfo. This field I want to make it as false in the ShowInNewForm= false
When I deploy it with event receiver file - I am getting stack trace error stating that the RegistrationsInfo field is missing.
Without event receiver file - when I deploy the solution and checked the field name - it is showing rightly as RegistrationsInfo.
Content Type:-
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field ID="{7113CBE5-57E9-4082-A0A2-492B35B69C8D}" Type="Lookup" List="Lists/Courses-List" ShowField="Title" Name="CourseTitle" DisplayName="Courses - Title" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{920AE6A7-2AAE-4E43-8855-7CBD9978EC5E}" Type="Lookup" List="Lists/SessionTrainer" ShowField="FullName" Name="Trainer" DisplayName="Trainer" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{F73D9A96-3C86-4E33-96D5-31E30B08BF40}" Type="Choice" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE" Group="Training Site Columns">
<CHOICES>
<CHOICE>Kerala Meeting Room</CHOICE>
<CHOICE>Orissa Meeting Room</CHOICE>
<CHOICE>Bihar Meeting Room</CHOICE>
</CHOICES>
</Field>
<Field ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" Type="Number" Decimals="0" Min="0" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{03281B47-F1D1-477E-9793-3A19118720EE}" Type="Number" Decimals="0" Min="0" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE" Group="Training Site Columns"/>
<Field ID="{8A900663-6351-445B-ACB3-394F44D45C8D}" Type="Calculated" ResultType="Number" ReadOnly="TRUE" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE" Group="Training Site Columns">
<Formula>=TotalSeatsInfo-RegistrationsInfo</Formula>
<FieldRefs>
<FieldRef Name="TotalSeatsInfo" ID="{03281B47-F1D1-477E-9793-3A19118720EE}"/>
<FieldRef Name="RegistrationsInfo" ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}"/>
</FieldRefs>
</Field>
<!-- Parent ContentType: Item (0x01) -->
<ContentType ID="0x0100a9dc01b7e78b45799fe59153d97e2b9e"
Name="SessionList"
Group="Session Content Types"
Description="Session Content Type"
Inherits="TRUE"
Version="0">
<FieldRefs>
<FieldRef ID="{7113CBE5-57E9-4082-A0A2-492B35B69C8D}" Name="CourseTitle" DisplayName="Courses - Title" Required="TRUE"/>
<FieldRef ID="{920AE6A7-2AAE-4E43-8855-7CBD9978EC5E}" Name="Trainer" DisplayName="Trainer" Required="FALSE" />
<FieldRef ID="{F73D9A96-3C86-4E33-96D5-31E30B08BF40}" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE"/>
<FieldRef ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE"/>
<FieldRef ID="{03281B47-F1D1-477E-9793-3A19118720EE}" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE"/>
<FieldRef ID="{8A900663-6351-445B-ACB3-394F44D45C8D}" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE"/>
</FieldRefs>
</ContentType>
</Elements>
Schema:-
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="SessionList" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/SessionList-LD-SessionList" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentType ID="0x0100a9dc01b7e78b45799fe59153d97e2b9e" Name="SessionList" Group="Session Content Types" Description="Session Content Type" Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef ID="{7113CBE5-57E9-4082-A0A2-492B35B69C8D}" Name="CourseTitle" DisplayName="Courses - Title" Required="TRUE" />
<FieldRef ID="{920AE6A7-2AAE-4E43-8855-7CBD9978EC5E}" Name="Trainer" DisplayName="Trainer" Required="FALSE" />
<FieldRef ID="{F73D9A96-3C86-4E33-96D5-31E30B08BF40}" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE" />
<FieldRef ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE" />
<FieldRef ID="{03281B47-F1D1-477E-9793-3A19118720EE}" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE" />
<FieldRef ID="{8A900663-6351-445B-ACB3-394F44D45C8D}" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE" />
</FieldRefs>
</ContentType>
</ContentTypes>
<Fields>
<Field ID="{7113cbe5-57e9-4082-a0a2-492b35b69c8d}" Type="Lookup" List="Lists/Courses-List" ShowField="Title" Name="CourseTitle" DisplayName="Courses - Title" Required="FALSE" Group="Training Site Columns" />
<Field ID="{920ae6a7-2aae-4e43-8855-7cbd9978ec5e}" Type="Lookup" List="Lists/SessionTrainer" ShowField="FullName" Name="Trainer" DisplayName="Trainer" Required="FALSE" Group="Training Site Columns" />
<Field ID="{f73d9a96-3c86-4e33-96d5-31e30b08bf40}" Type="Choice" Name="TrainingVenue" DisplayName="Training Venue" Required="FALSE" Group="Training Site Columns">
<CHOICES>
<CHOICE>Kerala Meeting Room</CHOICE>
<CHOICE>Orissa Meeting Room</CHOICE>
<CHOICE>Bihar Meeting Room</CHOICE>
</CHOICES>
</Field>
<Field ID="{b6e9c8f5-f1bd-4d98-bd30-194504859acc}" Type="Number" Decimals="0" Min="0" Name="RegistrationsInfo" DisplayName="Registrations Info" Required="FALSE" Group="Training Site Columns" />
<Field ID="{03281b47-f1d1-477e-9793-3a19118720ee}" Type="Number" Decimals="0" Min="0" Name="TotalSeatsInfo" DisplayName="Total Seats Info" Required="FALSE" Group="Training Site Columns" />
<Field ID="{8a900663-6351-445b-acb3-394f44d45c8d}" Type="Calculated" ResultType="Number" ReadOnly="TRUE" Name="OpenSeatsInfo" DisplayName="Open Seats Info" Required="FALSE" Group="Training Site Columns">
<Formula>=TotalSeatsInfo-RegistrationsInfo</Formula>
<FieldRefs>
<FieldRef Name="TotalSeatsInfo" ID="{03281B47-F1D1-477E-9793-3A19118720EE}" />
<FieldRef Name="RegistrationsInfo" ID="{B6E9C8F5-F1BD-4D98-BD30-194504859ACC}" />
</FieldRefs>
</Field>
</Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu">
</FieldRef>
<FieldRef Name="CourseTitle"></FieldRef>
<FieldRef Name="Trainer"></FieldRef>
<FieldRef Name="TrainingVenue"></FieldRef>
<FieldRef Name="RegistrationsInfo"></FieldRef>
<FieldRef Name="TotalSeatsInfo"></FieldRef>
<FieldRef Name="OpenSeatsInfo"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View>
<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="Attachments">
</FieldRef>
<FieldRef Name="LinkTitle">
</FieldRef>
<FieldRef Name="CourseTitle"></FieldRef>
<FieldRef Name="Trainer"></FieldRef>
<FieldRef Name="TrainingVenue"></FieldRef>
<FieldRef Name="RegistrationsInfo"></FieldRef>
<FieldRef Name="TotalSeatsInfo"></FieldRef>
<FieldRef Name="OpenSeatsInfo"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>
Event Receiver file:-
public override void FeatureActivated(SPFeatureReceiverProperties properties)
//Reference the newly created session list and perform the following
//1. Set the display name of the "Title" column to "SessID" and hide it from the New and Edit Forms
//2. Make the "SessID" column not required
//3. Set the default value of the RegistrationsInfo column to 0 and do not display it on the new form
//4. Add the built-in "Start Date" and "End Date" columns
//Reference the newly created session list
SPWeb currentWeb = properties.Feature.Parent as SPWeb;
//currentWeb.AllowUnsafeUpdates = true;
SPList sessionList = currentWeb.Lists["SessionList"];
//Title column update
SPField titleField = sessionList.Fields["Title"];
titleField.Required = false;
titleField.ShowInNewForm = false;
titleField.ShowInEditForm = false;
titleField.Title = "SessID";
titleField.Update();
//RegistrationsInfo column updates
SPField registrationField = sessionList.Fields["RegistrationsInfo"];
registrationField.DefaultValue = "0";
registrationField.ShowInNewForm = false;
registrationField.Update();
//Add the Start Date and End Date columns to the list, ensure they both display Date and Time, and add them to the default view of the list
SPFieldDateTime startDate = currentWeb.Fields["Starting_Date"] as SPFieldDateTime;
startDate.DisplayFormat = SPDateTimeFieldFormatType.DateTime;
SPFieldDateTime endDate = currentWeb.Fields["Ending_Date"] as SPFieldDateTime;
endDate.DisplayFormat = SPDateTimeFieldFormatType.DateTime;
sessionList.Fields.Add(startDate);
sessionList.Fields.Add(endDate);
SPView defaultView = sessionList.DefaultView;
defaultView.ViewFields.Add(startDate);
defaultView.ViewFields.Add(endDate);
defaultView.Update();
sessionList.Update();
//currentWeb.AllowUnsafeUpdates = false;
Can somebody help me - how to overcome the RegistrationsInfo missing field - error(in the stack trace) when activating the feature in the training site?
Thanks
SathyaHi Sathya,
Seems the field “RegistrationsInfo” is not been found when deploying with Event Receiver, a possible reason is that it might be damaged.
As a workaround, I suggest you retract the solution from your farm, make sure the “RegistrationsInfo” field is deleted using PowerShell, then create another project with the same
content and perform the deployment again.
About how to delete a field using PowerShell for your reference:
https://peterheibrink.wordpress.com/2011/12/09/powershell-delete-field-and-all-references/
http://www.sharepointfix.com/2011/04/powershell-script-to-delete-site.html
Feel free to reply if there any progress.
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Select list from query in report
Hello everybody,
I want to include a select list from a query in a report's colomn, but the select list should only be displayed conditionally. I wanted to do this with the help of "case when" in the corresponding SQL statement.
The select list itsself works, but when I combine it with "case when" I always get the error message:
ORA-01427: single-row subquery returns more than one row
The select statement is as following:
select
htmldb_item.checkbox(1,rownum) " ",
x.idee,
x.stunden_ilp,
x.stunden_ild,
x.stunden_ilm,
x.stunden_ief,
x.stunden_ir,
x.pe_id,
x.l_art_id,
x.version_id
from (
select
(select case
when (select name from cn_pl_projektidee s01
where s01.idee_id = '2') IS NULL then
(select distinct htmldb_item.select_list_from_query(5,name,'select distinct name from cn_pl_projektidee') name from cn_pl_projektidee s01
where s01.idee_id = t1.idee_id)
else
(select distinct htmldb_item.text(5,name) name from cn_pl_projektidee s01
where s01.idee_id = t1.idee_id)
END from cn_pl_std_peplanung t1) Idee,
from cn_pl_std_peplanung t1, cn_pl_projektelemente z1, cn_pl_version u1, cn_pl_projektidee s1
where t1.version_id = '&P6_VERSION_WAHL.'
and t1.pe_id ='&P6_HELP_PRODET.'
and t1.l_art_id ='&P6_L_ART_ID.'
group by t1.pe_id, t1.version_id, t1.idee_id, t1.l_art_id) x
order by x.ideeDoes anybody know what could be the problem or what other solutions I could try??
Greetings!
PatrickFound 2 ways to solve it:
*1. dynamic action (JQuery)*
$("#f20_1234 option[value=13]").attr('selected', 'selected');
*2. process*
BEGIN
HTP.p('<script type="text/javascript">');
--HTP.p('problem()');
HTP.p('html_SetSelectValue(''f20_903'',188)');
HTP.p('html_SetSelectValue(''f20_903'',189)');
HTP.p('</script>');
END; -
Drop Down List in Query Selection Screen Takes Long Time.
I open a report, refresh the query and get a selection screen. But when clicked on the drop down list it takes 4- 5 mins for displaying the drop down options.
How can I speed up the displaying of drop down list in selection screen?
Could any one please help regarding the setting to enable this?
Thanks.Hi,
I guess there is a setting to look up the master data tables or use the dimension,which would speed up the time that it takes to display the drop down selections
Do you have any idea about the setting?
Thanks. -
Drop Down List in Query takes Long Time.
I open a report, refresh the query and get a selection screen. But when clicked on the drop down list it takes 4- 5 mins for displaying the drop down options.
I guess there is an setting to look up the master data or use the dimension.
Could any one please help regarding the setting to enable this?
Thanks.Hi ,
you can do these settings in info object level.
Go to info object : Select Business Explorer Tab
Option is : Query Execution Filter Val. Selectn : here you can specify info provider.
Plz assign points if it is useful.
Thanks,
Vijay Sekahr Reddy. -
Hi all,
I have a list component and I have set up initial query in advance search, which generates the listing of the articles.
Now I am planning to add a search box and upon providing the new search text I would like to search again and utilizing same list component I would like to display new result list.
I looked a the init.jsp and found the place where I think it executes the initial query?
I tried to override source and query string but it is not taking an effect. Also I am not able to find the jar for "com.day.cq.wcm.foundation.List", I wanted to decompile and wanted to see how querys are executed.
List list = new List(slingRequest, new PageFilter());
list.setQuery("Test");
list.setSource("search");
Any pointers would be helpful!
Thanks in advance.I am workiing on a similiar workflow for an upcoming artilce that dicusses how to query the AEM CQ JCR: http://scottsdigitalcommunity.blogspot.ca/2013/02/querying-adobe-experience-manager-data.h tml .
This sample app queries the JCR for customer data, supports filtering, and displays the result set in a grid contol located in the client:
Although this article will not be posted until Feb 23 --I can provide a few pointers. Like most workflows in computer science -- you can perform a task in more than 1 way. I find that you get more power when you wrap the JCR Query Manager API within an OSGi component and develop the service to expose an operation that queries the JCR and returns the result set.
You can return the result set to the client and display the data in a web page - similiar to the pic above. Of course -- you can do the same workflow using sling -- its a matter of preferece IMHO. I prefer to develop OSGi services to do the heavy lifting and let the client call the service and display the data.
For example - to call the OSGI service from a client:
com.adobe.aem.CustomerService cs = sling.getService(com.adobe.aem.CustomerService .class);
String XML = cs.getCustomerData(filter) ;
In this workflow -- the query results are stored in an XML DOM and returned to the client -- where the data is parsed and displayed. The complete artilce will be posted next Fri.
Here is a snippet of the backend Java logic that is wrapped in the OSGi and queries the JCR that is called from the client:
public Document getCustomerData(String filter) {
Customer cust = null;
List<Customer> custList = new ArrayList<Customer>();
try {
Session session = this.repository.loginAdministrative(null);
// Obtain the query manager for the session ...
javax.jcr.query.QueryManager queryManager = session.getWorkspace().getQueryManager();
//Setup the query based on user input -- 3 options are All Customers,
//Active Customer or Past Customer
String sqlStatement="";
//Setup the query to get all corresponding customer nodes -- which are of node type nt:unstructured
if (filter.equals("All Customers"))
sqlStatement = "SELECT * FROM [nt:unstructured] WHERE CONTAINS(desc, 'Customer')";
else if(filter.equals("Active Customer"))
sqlStatement = "SELECT * FROM [nt:unstructured] WHERE CONTAINS(desc, 'Active')";
else if(filter.equals("Past Customer"))
sqlStatement = "SELECT * FROM [nt:unstructured] WHERE CONTAINS(desc, 'Past')";
//Execute the query and get the results ...
javax.jcr.query.Query query = queryManager.createQuery(sqlStatement,"JCR-SQL2");
javax.jcr.query.QueryResult result = query.execute();
//Iterate over the nodes in the results ...
javax.jcr.NodeIterator nodeIter = result.getNodes();
while ( nodeIter.hasNext() ) {
//For each node-- create a customer instance
cust = new Customer();
javax.jcr.Node node = nodeIter.nextNode();
//Set all Customer object fields
cust.setCustFirst(node.getProperty("firstName").getString());
cust.setCustLast(node.getProperty("lastName").getString());
cust.setCustAddress(node.getProperty("address").getString());
cust.setCustDescription(node.getProperty("desc").getString());
//Push Customer to the list
custList.add(cust);
// Save the session changes and log out
session.save();
session.logout();
//Return the customer data within an XML DOM
return toXml(custList);
catch(Exception e)
e.printStackTrace();
return null;
Hope this helps.. -
BEX problem: F4 help to filter values of F4 value list at query execution
Hi all,
description of the problem we face:
at query execution the selection pop-up appears and "ask" for values. To select those values I try the F4 button and receive a long list of e.g. vendors. (Our vendors are compounded to a special characteristic due to several sources.) To select now several individual values from the list I choose the filter button and try to shorten the list by searching with values of the atributes, here by 0NAME of the vendor. From the result shown I choose one value compounded to a unique value of the special characteristic, there are values for vendors which are the same, but with different compound values and of course different meanings.
When I mark one vendor value shown with his compounded value in front of the row, I expect the compounded value will be transferred to the selection pop-up too, but it won't!!
Only the vendor is transferred, so the result of the query shows more information then wanted.
Any solutions for this?
Thank you in advanceHi Guido,
I dont know any direct solution to your problem, a workaround is
May be add a variable on the Special characterstics, and ask users to enter the Special character also along with your Vendor Code.
As while selecting the vendor user already know special charater value, then can just enter it in Selection screen and restrict the output.
Thanks
CK
Maybe you are looking for
-
How Can I Enable "Creative S/W Synth" in Windows
I have a "Sound Balster Li've! 5." sound card and I'm using Windows XP. When I was using Windows ME before, the MIDI output devices that were available in WinME were:- A: SB Li've! MIDI Synth2- B: SB Li've! MIDI Synth3- Creative S/W Synth4- MIDI Mapp
-
Setting up a pretty basic network AP extreme + 2 AP Express: tech advice
I have got this network to function for quite sometime but since a couple of days the LED light flashes repeatedly 5 times yellow and one persistent green. In AP Utility I get "wds error" and the dot changes color also in software. The network I want
-
itunes will not let me ' authorise this computer' which i need to do to transfer apps from my mac to iphone. plse HELP
-
I Am unable to do updates or download anything since updating to iOS 7.1. Can anyone help?
-
How do I turn off "all day" default on calander?
In my calander on iPad when I add an event the "all day" functions always turned on. How can I change it so that the default is set to off?