Setting XSL parameter with DBMS_XMLGEN.setXSLTParam
Hi all,
Here's my second post about XSL parameters. This one deals with the procedure setXSLTParam from the package DBMS_XMLGEN in 10g R2.
The test case is the following :
DECLARE
ctx dbms_xmlgen.ctxHandle;
res clob;
xsl clob := to_clob(
'<?xml version="1.0" encoding="iso-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" encoding="iso-8859-15"/>
<xsl:param name="caption"/>
<xsl:template match="/">
<TABLE>
<CAPTION><xsl:value-of select="$caption"/></CAPTION>
<xsl:apply-templates/>
</TABLE>
</xsl:template>
<xsl:template match="ROWSET">
<TR>
<xsl:for-each select="ROW[1]/*">
<TH><xsl:value-of select="local-name()"/></TH>
</xsl:for-each>
</TR>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="ROW"><TR><xsl:apply-templates/></TR></xsl:template>
<xsl:template match="ROW/*"><TD><xsl:value-of select="."/></TD></xsl:template>
</xsl:stylesheet>');
BEGIN
ctx := dbms_xmlgen.newContext('select level from dual connect by level < to_number(:MAXLINE)');
dbms_xmlgen.setXSLT(ctx, xsl);
dbms_xmlgen.setXSLTParam(ctx, 'caption', '"TEST"');
dbms_xmlgen.setBindValue(ctx, 'MAXLINE', '10');
res := dbms_xmlgen.getXML(ctx);
dbms_xmlgen.closeContext(ctx);
END;Execution gives error "*ORA-31020: The operation is not allowed, Reason: Invalid XSL Parameter or its Value*".
I think I'm using the correct syntax for the parameter, but the procedure doesn't seem to work properly (it's also not documented explicitly for Oracle 10gR2).
Its java-based counterpart DBMS_XMLQUERY.setXSLTParam() works well though.
Has anyone ever managed to use this feature in 10g or newer release?
Thanks.
(Db version is : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production)
select * from v$version
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production for me your code is work. result:
<TABLE>
<CAPTION></CAPTION>
<TR>
<TH>LEVEL</TH>
</TR>
<TR>
<TD>1</TD>
</TR>
<TR>
<TD>2</TD>
</TR>
</TABLE>some interesting note:
xslt CLOB := '<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no"/>
...In 10.2 when XSLT is used with dbms_xmlgen the XML Header tag is missing
may be this help you
Similar Messages
-
Setting DESFORMAT parameter with Comma as delimiter
Hi Gurus,
I have a report in which i set the DESFORMAT to Delimited and whenever i generate the output, it is a tab separated file. The reason is that the default delimiter is Tab. How can i set Comma as the delimiter for that report. I don't want to change it for all the reports, means i don't want to change any of the environment variablr. I want this change only for this report.
Thanks in advance
ManishI haven't had personal experience with it,
but the reference docs say that DELIMITER
is a possible option to RWBLD60 as well.
(Only for DESFORMAT=delimited.)
Also, the built-in-help says that if you
select file->generate-to-file->delimited,
you'll get a dialog box for options, one of
which is the delimiter. Tried it, seems to
work. Doesn't like Unicode, which is one of
the reasons I don't use DELIMITED...
-- Allan Plumb -
SUBMIT program VIA JOB and SET/GET parameter
Hi All
I need to pass the content of a variable from the program 'A' to program 'B'.
Program A uses JOB_OPEN , SUBMIT program VIA JOB jobname NUMBER jobnumber AND return, JOB_CLOSE.
I tried to use import/export memory but it didn't work. Then I am trying to use set/get parameters but it also did not work.
Program A is going to run in any server and program B will run in the central instance (it is determined in the FM JOB_CLOSE, parameter target_server).
Program does not have selection-screen.
Is it possible use set/get parameter with submit via job?
Could you please advise?
Thanks in advance.
João GaiaHere a simple code
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
'TRANSFER DATA'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1 value 'X'.
* Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
* Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
* Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
" event_id = starttime-eventid
" event_param = starttime-eventparm
" event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
" laststrtdt = starttime-laststrtdt
" laststrttm = starttime-laststrttm
" prddays = 1
" prdhours = 0
" prdmins = 0
" prdmonths = 0
" prdweeks = 0
" sdlstrtdt = starttime-sdlstrtdt
" sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
" targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
Then... for import/export of a variable, you can use Import Memory and Export Memory function.
Like this:
REPORT A:
IF NOT it_dlist_out IS INITIAL.
EXPORT it_dlist_out TO MEMORY ID 'TEST1234'.
ELSE.
* Clearing memory
FREE MEMORY ID 'TEST1234'.
ENDIF.
REPORT B:
IMPORT it_dlist_out TO lt_dlist_out FROM MEMORY ID 'TEST1234'.
Edited by: spantaleoni on Jan 11, 2011 3:21 PM
Edited by: spantaleoni on Jan 11, 2011 3:23 PM -
Setting Activity parameter property "literal" with OMB Plus
Does anybody know how the property "literal" can be set to "false" with an OMB command?
To change e.g. the value, the following command works:
OMBALTER PROCESS_FLOW 'LOAD_STAGE' \
MODIFY ACTIVITY 'STG_POS_MAP' MODIFY PARAMETER 'P_AUDITID' SET PROPERTIES (VALUE) VALUES ('parent_audit_id')
This works for all other properties like DIRECTION, DATA_TYPE, BINDING, etc. but not for LITERAL. The following command doesn't work:
OMBALTER PROCESS_FLOW 'LOAD_STAGE' \
MODIFY ACTIVITY 'STG_POS_MAP' MODIFY PARAMETER 'P_AUDITID' SET PROPERTIES (LITERAL) VALUES ('false')
In the OWB API and Scripting Reference there is no information about this property. It seems that Oracle forgot to implement it...Hi
For a while I though the same...the property is ISLITERALVALUE see the blog post for an example;
http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$183
Cheers
David -
Hi all,
In my VS2010 extension, I have just encountered a situation which I can find no workaround for. As always, I went to Carlos Quintero's MZ-Tools first to see if I could find an answer. In this excellent article of his (http://www.mztools.com/articles/2007/mz2007027.aspx),
he discusses how to get "the ProjectItem in the desired view using ProjectItem.Open(viewKind), which returns an EnvDTE.Window object."
This is the behavior I have experienced until I noticed that if a user selects "Open With..." and sets a default external program to open a given item with, I can no longer programmatically open the item in the text editor (this is required
functionality for my extension, since I am not setting the Window to visible, anyway). The screenshot below illustrates my point, even though I am working with my own custom extensions.
In this case, calling ProjectItem.Open with every available ViewKind value will cause Program.cs to open in Notepad rather than the text editor. The Window returned from the Open call is always null in this case.
Is there any way I can force an item to open in the text editor, regardless what its default program/viewer is? Thanks for your help,
-MikeI don't think that is a bug but a limitation of the automation model.
As workaround, you can use the following method:
IVsUIShellOpenDocument.OpenSpecificEditor
If you want something somewhat more palatable you can use the following method:
VsShellUtilities.OpenDocumentWithSpecificEditor
Editor guids are stored in the registry entry HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Editors, but since you are only interested in the text editor guid, you are lucky because there is already a constant defined Microsoft.VisualStudio.VSConstants.GUID_TextEditorFactory.
There is also a constant defined for the logical view: Microsoft.VisualStudio.VSConstants.LOGVIEWID.TextView_guid.
So, even if text files are set to open with Notepad, this code should open them in the text editor:
string fullPath;
Guid editorGuid;
Guid logicalViewGuid;
IVsWindowFrame windowFrame;
fullPath = projectItem.get_FileNames(0);
editorGuid = Microsoft.VisualStudio.VSConstants.GUID_TextEditorFactory;
logicalViewGuid = Microsoft.VisualStudio.VSConstants.LOGVIEWID.TextView_guid;
windowFrame = Microsoft.VisualStudio.Shell.VsShellUtilities.OpenDocumentWithSpecificEditor(this, fullPath, editorGuid, logicalViewGuid);
if (windowFrame != null)
windowFrame.Show();
* My new blog about VSX: http://www.visualstudioextensibility.com * Twitter: https://twitter.com/VSExtensibility * MZ-Tools productivity extension for Visual Studio: http://www.mztools.com. -
Cannot assign an empty string to a parameter with JDBC type VARCHAR
Hi,
I am seeing the aforementioned error in the logs. I am guessing its happening whenever I am starting an agent instance in PCo. Can somebody explain whats going on?
Regards,
Chanti.
Heres the complete detail from logs -
Log Record Details
Message: Unable to retreive path for , com.sap.sql.log.OpenSQLException: Failed to set the parameter 1 of the statement >>SELECT ID, PARENTID, FULLPATH, CREATED, CREATEDBY, MODIFIED, MODIFIEDBY, REMOTEPATH, CHECKEDOUTBY FROM XMII_PATHS WHERE FULLPATH = ? <<: Cannot assign an empty string to a parameter with JDBC type >>VARCHAR<<.
Date: 2010-03-12
Time: 11:32:37:435
Category: com.sap.xmii.system.FileManager
Location: com.sap.xmii.system.FileManager
Application: sap.com/xappsxmiiearSounds like a UI browsing bug (when no path is selected from a catalog tree folder browser) - I would suggest logging a support ticket so that it can be addressed.
-
Unable to bind portlet parameter with page parameter in webcenter portal
Hi All,
I am trying to bind portlet parameter with the page parameter so that I can ahieve some business requirements.
Here is what I did,
In my Portlet producer application:
1) Created standards based portlet (jsr 286) with view.jspx and edit.jspx with rest of the things being default.
2) In my portlet.xml created two parameters and assigned these parameters to the portlet created above.
3) In the view.jspx added couple of output label adf components in the page.
4) deployed this to integrated weblogic server.
In my WC portal application:
Created a new page and added the portlet to this page( WSRP connection already exists).
deployed portal application on integrated server.
In the edit mode of the page I added one page parameter(Param1) and some default (constant) value added.
What I want is this:
when Param1 value is One display first output label and
when Param1 value is Two display second output label.
I am using jdev 11.1.1.5.0 with integrated weblogic server.There is no need to use page parameters for this.
You also have two types of parameters depending on what you want...
1) Preferences: these parameters can be used on a user based level. This means that users can personalize the portlets. When a user change the value of a preference, it is only applied for that specific user
2) Public parameters: these parameters are used to customize the portlet. The value you set in these parameter apply for all users.
I have made a simple example to show these two differences: http://www.yonaweb.be/PortletTest.zip
The portlet has 4 inputText on it. The first two can be set by specifying One or Two into the preference.
The other 2 inputText uses the value of the public parameter.
You should only deploy the portlet and consume it in a webcenter application. In the webcenter application, you don't need to do anything special. All is done in the portlet.
I am guessing you don't have written the code that will get the value of the parameter:
in case of a preference you will get the value by following code:
PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
PortletPreferences preferences = request.getPreferences();
return preferences.getValue("outputparam", "One");In case of a public parameter (for customization instead of personalization) you use following code to retreive the value of a public parameter:
PortletRequest req = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
String param = (String)req.getParameter("PublicParam");
if(param == null)
return "Three";
return param;This code can also be found in the sample portlet application. -
Attempt to set a parameter name that does not occur in the SQL: vc_temp_1
I have query view object build on the following sql
select
nvl(u.full_name,e.arabic_first_name||' '||e.arabic_family_name) as empName,
(select sc.general_specialty from ta_scientific_certificate sc where sc.user_id=u.user_id
group by sc.general_specialty
Having Max(sc.qualification_kind)>= All (select max(sc1.qualification_kind) from ta_scientific_certificate sc1 where sc1.user_id=u.user_id group by sc1.qualification_kind ) )as general_specialty
, u.*,ur.default_role,ur.role_1,ur.role_2,ur.role_3,ur.role_4,ur.role_5,ur.role_6,ur.role_7
from ta_user u,employee e,TA_USER_ROLES ur
where u.account_enabled='1' and u.emp_id = e.empl_code(+) and ur.user_id=u.user_id(+)
with this query
( (EMP_ID IS NULL ) ) AND (( ( (DEFAULT_ROLE = 4 ) ) OR ( (DEFAULT_ROLE = 6 ) ) )OR( ( (ROLE_1 = 4 ) ) OR ( (ROLE_1 = 6 ) ) )OR( ( (ROLE_2 = 4 ) ) OR ( (ROLE_2 = 6 ) ) )OR( ( (ROLE_3 = 4 ) ) OR ( (ROLE_3 = 6 ) ) )OR( ( (ROLE_4 = 4 ) ) OR ( (ROLE_4 = 6 ) ) )OR( ( (ROLE_5 = 4 ) ) OR ( (ROLE_5 = 6 ) ) )OR( ( (ROLE_6 = 4 ) ) OR ( (ROLE_6 = 6 ) ) )OR( ( (ROLE_7 = 4 ) ) OR ( (ROLE_7 = 6 ) ) ))
I created search page by dragging this view object from MyApplicationModule->NamedCriteria
but i don't want to show all the fields that their names start with ROLE in my search option so I unChecked the attribute queryalbe
no when I press button search the error Attempt to set a parameter name that does not occur in the SQL: vc_temp_1 is shown
if i press OK on error message and click search again it works
how can I make this error disappearno I don't think that i have
this is my source ( I will divide it into two parts)
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="SciQualMgtVO"
Version="11.1.2.60.17"
OrderBy='"EMPNAME"'
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO_LABEL"/>
</SchemaBasedProperties>
</Properties>
<ViewAccessor
Name="LookupAM_IpaCodesVO_GeneralSpecialityVA"
ViewObjectName="ta.common.lookup.IpaCodesVO"
AMUsageName="LookupAM"
ViewInstanceName="IpaCodesVO_GeneralSpecialityDC"
RowLevelBinds="true"/>
<ViewAccessor
Name="CountryVA"
ViewObjectName="ta.common.lookup.CountryVO"
RowLevelBinds="true"/>
<ViewAccessor
Name="DegreeVA"
ViewObjectName="ta.common.lookup.DegreeVO"
RowLevelBinds="true"/>
<ViewAccessor
Name="LookupAM_IpaCodesVO_ScientificQualificationVA"
ViewObjectName="ta.common.lookup.IpaCodesVO"
AMUsageName="LookupAM"
ViewInstanceName="IpaCodesVO_ScientificQualificationDC"
RowLevelBinds="true"/>
<ViewAccessor
Name="YesNoVA"
ViewObjectName="ta.common.constants.YesNoVO"
RowLevelBinds="true"/>
<ViewAccessor
Name="IpaCodesVO_GeneralSpecialityVA"
ViewObjectName="ta.common.lookup.IpaCodesVO"
RowLevelBinds="true">
<ViewCriteriaUsage
Name="IpaCodesVO_GeneralSpecialityCriteria"
FullName="ta.common.lookup.IpaCodesVO.IpaCodesVO_GeneralSpecialityCriteria"/>
</ViewAccessor>
<ViewAccessor
Name="IpaCodesVO_ScientificQualificationVA"
ViewObjectName="ta.common.lookup.IpaCodesVO"
AMUsageName="LookupAM"
ViewInstanceName="IpaCodesVO_ScientificQualificationDC"
RowLevelBinds="true">
<ViewCriteriaUsage
Name="IpaCodesVO_ScientificQualificationCriteria"
FullName="ta.common.lookup.IpaCodesVO.IpaCodesVO_ScientificQualificationCriteria"/>
</ViewAccessor>
<ListBinding
Name="ar_LOV_GeneralSpecialty"
ListVOName="IpaCodesVO_GeneralSpecialityVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="GeneralSpecialty"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="ArabicDescription"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="en_LOV_GeneralSpecialty"
ListVOName="IpaCodesVO_GeneralSpecialityVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="GeneralSpecialty"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="EnglishDescription"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="ar_male_LOV_Nationality"
ListVOName="CountryVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Nationality"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="CountryCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="MaleNational"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="ar_female_LOV_Nationality"
ListVOName="CountryVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Nationality"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="CountryCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="FemaleNational"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="en_LOV_Nationality"
ListVOName="CountryVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Nationality"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="CountryCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="EnglishNational"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="ar_LOV_ScientificDegree"
ListVOName="IpaCodesVO_ScientificQualificationVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="ScientificDegree"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="ArabicDescription"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="en_LOV_ScientificDegree"
ListVOName="IpaCodesVO_ScientificQualificationVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="ScientificDegree"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="EnglishDescription"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="en_LOV_ScientificQualification"
ListVOName="DegreeVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="ScientificQualification"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="DegreeCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="EnglishName"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="ar_LOV_Country"
ListVOName="CountryVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Country"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="CountryCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="ArabicName"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="en_LOV_Country"
ListVOName="CountryVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Country"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="CountryCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="EnglishName"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="LOV_PastArbitration"
ListVOName="YesNoVA"
ListRangeSize="-1"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="PastArbitration"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Name"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="LOV_PastCooperation"
ListVOName="YesNoVA"
ListRangeSize="-1"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="PastCooperation"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Name"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="LOV_FutureCooperation"
ListVOName="YesNoVA"
ListRangeSize="-1"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="FutureCooperation"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Code"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Name"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<ListBinding
Name="ar_LOV_ScientificQualification"
ListVOName="DegreeVA"
ListRangeSize="-1"
NullValueFlag="start"
NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="ScientificQualification"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="DegreeCode"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="ArabicName"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<SQLQuery><![CDATA[select
nvl(u.full_name,e.arabic_first_name||' '||e.arabic_family_name) as empName,
(select sc.general_specialty from ta_scientific_certificate sc where sc.user_id=u.user_id
group by sc.general_specialty
Having Max(sc.qualification_kind)>= All (select max(sc1.qualification_kind) from ta_scientific_certificate sc1 where sc1.user_id=u.user_id group by sc1.qualification_kind ) )as general_specialty
, u.*,ur.default_role,ur.role_1,ur.role_2,ur.role_3,ur.role_4,ur.role_5,ur.role_6,ur.role_7
from ta_user u,employee e,TA_USER_ROLES ur
where u.account_enabled='1' and u.emp_id = e.empl_code(+) and ur.user_id=u.user_id(+)]]></SQLQuery>
<ViewAttribute
Name="Empname"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="255"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="EMPNAME"
Expression="EMPNAME"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Empname_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="GeneralSpecialty"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="GENERAL_SPECIALTY"
Expression="GENERAL_SPECIALTY"
SQLType="VARCHAR"
LOVName="ar_LOV_GeneralSpecialty"
LOVFinder="GeneralSpecialtySwitcher">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="choice"/>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.GeneralSpecialty_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="UserId"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Type="java.lang.Integer"
ColumnType="NUMBER"
AliasName="USER_ID"
Expression="USER_ID"
SQLType="INTEGER"/>
<ViewAttribute
Name="FullName"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="FULL_NAME"
Expression="FULL_NAME"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.FullName_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="FullNameEn"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="FULL_NAME_EN"
Expression="FULL_NAME_EN"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.FullNameEn_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="TitleSalutation"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TITLE_SALUTATION"
Expression="TITLE_SALUTATION"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.TitleSalutation_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Nationality"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="3"
Scale="0"
Type="java.lang.Integer"
ColumnType="NUMBER"
AliasName="NATIONALITY"
Expression="NATIONALITY"
SQLType="INTEGER"
LOVName="ar_male_LOV_Nationality"
LOVFinder="NationalitySwitcher">
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="choice"/>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Nationality_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Gender"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="1"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="GENDER"
Expression="GENDER"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="1"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Gender_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Employer"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="EMPLOYER"
Expression="EMPLOYER"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Employer_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="CurrentJob"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="CURRENT_JOB"
Expression="CURRENT_JOB"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.CurrentJob_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Degree"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="DEGREE"
Expression="DEGREE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Degree_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Department"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="DEPARTMENT"
Expression="DEPARTMENT"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Department_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="ScientificDegree"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="4"
Scale="0"
Type="java.lang.Integer"
ColumnType="NUMBER"
AliasName="SCIENTIFIC_DEGREE"
Expression="SCIENTIFIC_DEGREE"
SQLType="INTEGER"
LOVName="ar_LOV_ScientificDegree"
LOVFinder="ScientificDegreeSwitcher">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.ScientificDegree_LABEL"/>
<CONTROLTYPE
Value="choice"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="ScientificQualification"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SCIENTIFIC_QUALIFICATION"
Expression="SCIENTIFIC_QUALIFICATION"
SQLType="VARCHAR"
LOVName="ar_LOV_ScientificQualification"
LOVFinder="ScientificQualificationSwitcher">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.ScientificQualification_LABEL"/>
<CONTROLTYPE
Value="choice"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Country"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="3"
Scale="0"
Type="java.lang.Integer"
ColumnType="NUMBER"
AliasName="COUNTRY"
Expression="COUNTRY"
SQLType="INTEGER"
LOVName="ar_LOV_Country"
LOVFinder="CountrySwitcher">
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="choice"/>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Country_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="City"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="CITY"
Expression="CITY"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.City_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="ZipCode"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ZIP_CODE"
Expression="ZIP_CODE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.ZipCode_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="POBox"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="P_O_BOX"
Expression="P_O_BOX"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.POBox_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="CurrentAddress"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="CURRENT_ADDRESS"
Expression="CURRENT_ADDRESS"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.CurrentAddress_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="WorkPhone"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="WORK_PHONE"
Expression="WORK_PHONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.WorkPhone_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="HomePhone"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="HOME_PHONE"
Expression="HOME_PHONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.HomePhone_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="CellPhone"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="CELL_PHONE"
Expression="CELL_PHONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.CellPhone_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Fax"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="FAX"
Expression="FAX"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Fax_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="PermanentAddress"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="PERMANENT_ADDRESS"
Expression="PERMANENT_ADDRESS"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.PermanentAddress_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Email"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="EMAIL"
Expression="EMAIL"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.Email_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Password"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="PASSWORD"
Expression="PASSWORD"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="PastArbitration"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="1"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="PAST_ARBITRATION"
Expression="PAST_ARBITRATION"
SQLType="VARCHAR"
LOVName="LOV_PastArbitration">
<DesignTime>
<Attr Name="_DisplaySize" Value="1"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="radio"/>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.PastArbitration_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="PastCooperation"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="1"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="PAST_COOPERATION"
Expression="PAST_COOPERATION"
SQLType="VARCHAR"
LOVName="LOV_PastCooperation">
<DesignTime>
<Attr Name="_DisplaySize" Value="1"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="radio"/>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.PastCooperation_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="FutureCooperation"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="1"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="FUTURE_COOPERATION"
Expression="FUTURE_COOPERATION"
SQLType="VARCHAR"
LOVName="LOV_FutureCooperation">
<DesignTime>
<Attr Name="_DisplaySize" Value="1"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="radio"/>
<LABEL
ResId="ta.model.ro.SciQualMgtVO.FutureCooperation_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="EmpId"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="EMP_ID"
Expression="EMP_ID"
SQLType="VARCHAR"
IsQueriable="false">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="LoginName"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="LOGIN_NAME"
Expression="LOGIN_NAME"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute> -
Set get parameter but free memory id is not working
Hi All,
I am using set get parameter to transfer data from one module to another .
But when i am trying to clear the memory id using Free memory id .
it is not doing that.
Does it work with import export.
What method i should use to clear this memory id ..
Thanks in advance
ANit gautamClears the memory:
SET PARAMETER ID pid FIELD space. -
SET GET Parameter working fine but no entery in table TPARA
Hi Experts,
I am using SET/GET Parameter.
All is working fine but no entery is created in table TPARA for this ID beacuse of this i am not able to use DELETE FROM MEMORY ID 'ZID' .It always returns 4 since there is no entry in table TPARA.
Why there is no entery created in TPARA and how can i delete this ID from SAP memory?
Thanks,
Anubhav>
Anubhav Jain wrote:
> Why there is no entery created in TPARA and how can i delete this ID from SAP memory?
> Anubhav
Entry in TPARA automatically gets created when you assign PID to data element.
Check if ZID is assigned to any data element.
To clear the content of PID from memory use SET PARAMETER statement with empty field.
DATA lv_blank type char10 .
CLEAR lv_blank.
SET PARAMETER ID ZID FIELD lv_blank. -
Crystal reports 2008 Set optional parameter value
Hi,
I'm working with .net Visual Studio 2008 C# and Crystal reports 2008 (Crystal.Decisions) and when I try to set a parameter to optional and set its value to no value, it returns the error: "Invalid parameter name", here is my code:
foreach (CrystalDecisions.Shared.ParameterField param in Report.ParameterFields)
if (!param.HasCurrentValue &&
!Report.DataDefinition.ParameterFields[param.Name].IsLinked())
switch (param.ParameterValueType)
case ParameterValueKind.NumberParameter:
param.IsOptionalPrompt = true;
param.CurrentValues.IsNoValue = true;
break;
I'm doing this because some of the parameters can be left null, and in this case I don't want to show the parameter prompt.
In past versions of Crystal (such as Crystal Reports 11.5) we had the chance to left the parameter value null and did not showed the parameter prompt dialog, and this behavior repeats in a lot of reports.
thanks in advancedPlease don't post the same question more than once. This is a public forum so be patient.
Install SP4 and test again.
Try these samples:
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
Don -
Using xsl stylesheet with List View Web Part to display custom text
Hi
i have an xsl stylesheet with sharepoint listview webpart. The list view shows some items based on a filter. I want to display custom text such as "No Items" when there are zero items in the list view using the xsl stylesheet. How do i achieve
this. I have spent hours searching but couldnt find the exact answer. Please help me out. I am a light user not a hard core developer so I dont use Visual Studio. Thanks in advanceHi
I have customised the list view webpart using a custom xsl file by including it in the xsl link of the list view webpart. So i think i need to include the condition in the xsl file itself else it wont work. Since the list view webpart isnt using the default
xsl. Please let me kknow if you have any idea about including a condition in xsl to check if there are not items in view.
The code of the xsl is included below.
<!--
This section is the set up and can be used at the top of any external XSLT stylesheet file
-->
<xsl:stylesheet
xmlns:x="http://www.w3.org/2001/XMLSchema"
xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
version="1.0"
exclude-result-prefixes="xsl msxsl ddwrt"
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:SharePoint="Microsoft.SharePoint.WebControls"
xmlns:ddwrt2="urn:frontpage:internal">
<xsl:output method="html" indent="no"/>
<xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
<table>
<xsl:for-each select="$Rows">
<xsl:call-template name="dvt_1.rowview"></xsl:call-template>
</xsl:for-each>
</table>
</xsl:template>
<xsl:template name="dvt_1.rowview">
<tr>
<td><img height="78" width="60"><xsl:attribute name="src"><xsl:value-of select="@Photo"/></xsl:attribute></img></td>
<td>
<table style="margin-left:10px;">
<tr><td><xsl:value-of select="@FullName"/></td></tr>
<tr><td><xsl:value-of select="@DOBinWords"/></td></tr>
</table>
</td>
</tr>
</xsl:template>
</xsl:stylesheet> -
Multiple select parameter with each selected value covering multiple sub values
Hello, everyone,
In my SSRS report, I need to set a multiple select parameter called Group, with values: group1 group2, etc....
When group1 is selected, it needs to apply to data of certain sub groups: sub-group1, sub-group2;
When group2 is selected, it needs to apply to data of different sub groups: sub-group3, sub-group4 and sub-group5;
when both group1 and group2 are selected, then, it needs to apply to data of sub-group1 to sub-group5.
I know how to do it when only one group is selected: simply use a case statement in the query to select the right sub groups based on the group selected.
But I don't know a good way to do it when multiple groups are selected.
Any help, pointers are much appreciated. Thanks in advance!
RegardsHi QQFA,
If I understand correctly, there are two parameters (Group and Sub_group) in the report. When we select group1 in Group parameter, it will auto select sub-group1, sub-group2 in the Sub_group parameter; when we select group2 in Group parameter, it will auto
select sub-group3, sub-group4 and sub_group5 in the Sub_group parameter; when we select both all, it will auto select all sub_group values. If I have misunderstood, please don't hesitate to let me know.
In this scenario, we can create a temporary table with Group and Sub_group columns, then select Sub_group column values based on the Group field. For more details, please see:
Create a dataset with the query below:
CREATE TABLE #temp([group] nvarchar(50),sub_group nvarchar(50))
INSERT INTO #temp VALUES ('group1','sub-group1'),('group1','sub-group2'),('group2','sub-group3'),('group2','sub-group4'),('group2','sub-group5')
SELECT * FROM #temp
where [group] in (@Group)
Set available values and default values of Sub_group parameter with get values from the sub_group field in the new dataset.
Note that the two parameters are all multiple parameters.
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Introduction
There is a scenario that thousands of values in the drop-down of a parameter. Scrolling through the large drop down list is slow and cumbersome. Is there a way that we add a search feature in the report, so that it can filter down the values in the drop
down list to a smaller list of values?
Solution
To achieve this requirement, we can add a parameter with multiple keywords ahead, then all of available values which are begin with the keyword will display in the parameter list. In this scenario, we can create cascading parameters. One is a keyword parameter,
and the other parameter is based on the keyword to display the available values.
In order to enable the user to type multiple keywords, we can use the query below to create a split function which takes the list and the de-limiter as input parameters and splits all the values in the database:
CREATE FUNCTION [dbo].[SplitParameterValues] (@InputString NVARCHAR(max), @SplitChar VARCHAR(5))
RETURNS @ValuesList TABLE
param NVARCHAR(255)
AS
BEGIN
DECLARE @ListValue NVARCHAR(max)
SET @InputString = @InputString + @SplitChar
WHILE @InputString!= @SplitChar
BEGIN
SELECT @ListValue = SUBSTRING(@InputString , 1, (CHARINDEX(@SplitChar, @InputString)-1))
IF (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar))>(LEN(@InputString))
BEGIN
SET @InputString=@SplitChar
END
ELSE
BEGIN
SELECT @InputString = SUBSTRING(@InputString, (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar)) , LEN(@InputString)-(CHARINDEX(@SplitChar, @InputString)+ len(@SplitChar)-1) )
END
INSERT INTO @ValuesList VALUES( @ListValue)
END
RETURN
END
Use the query below create a stored procedure to return all available values for Account parameter:
create PROCEDURE sp (@keyword nvarchar(50))
AS
SELECT AccountDescription
FROM DimAccount d
inner join (SELECT [param] FROM SplitParameterValues (@keyword,',')) s on d.AccountDescription like (s.[param]+'%')
In Report Designer, select Stored Procedure as the Query type for DataSet1, then select or type sp in the drop-down list as below:
By default, there is a parameter named keyword in the Parameters pane.
Add a multi-value parameter named Account in the report, then select “Get values from a query” option for Available Values as below:
Report Design and Report Preview surface
Report Design:
Report Preview:
References:
Create User-defined Functions (Database Engine)
Adding Cascading Parameters (SSRS)
Applies to
Reporting Services 2005
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Hmmm. This didn't work. I even re-booted, and Firefox still doesn't show the search engine.
It was actually an update to an earlier engine, and I foolishly removed the old version rather than just updating it.
Is there anything elsewhere (eg. the registry) that might be preventing this? -
Having problems passing more than one parameter with html:link tag
Hi guys,
for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
For ex: I have in the database User1, User2 and User3. I would like to have a result like:
User1
User2
User3
Instead of it I have the result like:
User1
User2
User3
User1
User2
User3
User1
User2
User3
What I�m doing wrong? Could somebody help me please?
Thank you in advance
There is a snippet of the code, which I�m using in jsp:
<code>
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>
</code>Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
You have a nested loop structure here.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>Both loops iterate over your "user".
Your first loop loops over each user.
Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
If you have 4 users, you would have 4 groups of 4.
I only see you setting one parameter: "usersName" What other parameters do you need to pass?
At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name="usersName" scope="page" page="/name.do">
<bean:write name="user" /><br>
</html:link><br>
</logic:iterate>
Maybe you are looking for
-
No default connection to Airport Express
Upon each wakeup from sleep or start-up, connection does not default to Airport Express. How do we make it automatically default to Airport Express?
-
Can anyone tell me the standard fields available in SAP among the following and where can I can locate them? 1. <Overpacks Accepted> - This is for case pack only customers, N=no overpacks, Y=will accept overpacks 2. <Label Cartons with Pallets> -
-
PS CC / PS CS5 Aktion Konvertierung in JPEG2000
Habe eine Aktion erstellt in der eine beliebige Datei in JEPG2000 verlustfrei konvertiert wird. Als Ergebnis kommt aber leider eine relativ stark, verlustbehaftete JPF-Datei heraus. Kennt jemand das Problem? Gibt es Abhilfe?. Der ADOBE Support fühlt
-
Apple ID in App Store incorrect - How do I change it?
Since updating the new iPhone OS this morning, the Apple ID my phone is using in the App Store is wrong. It is now using my mother's Apple ID (we use the same computer as a backup). How do I change it so that it uses my Apple ID and password in the
-
How to implement app. with language link (1 source 2 xlf file)
Dear firends, I know about translation steps, but It covers two different apps. I would like to implement one apps with language options? how do I implement it? regards siyavuş Edited by: sak on Feb 11, 2010 11:10 AM