How to use TREX in Portals
Hi,
I installed TREX7.0 newly into Netweavwer Portals.
Can any one provide me any good link to know How To use TREX in Netweaver Portals.
Regds
Phanikumar
Hi Phani,
Please go through the link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/c7/e0d13f7fb44c21e10000000a1550b0/frameset.htm.
Regards,
Sudhir
Reward Pts If the Answer is Useful
Similar Messages
-
How to use TREX in Netweaver Portals
Hi,
I am new to TREX and i installed TREX 7.0 with Netweaver 2004's java edition and performed Post Configuration for Java client HTTP settings.
Now i am unable how to use TREX in Portals for searching the documents in KM.
Can any one help me how to use the TREX for searching the documents in Km if possible plz attach the screen shots.
ADV Thanks
Regds
PhaniHi Phani,
You can test your TREX server by executing the following step:
Log on to your TREX server and open up the TREX console which you can find in the TREX program folder. Normally you are now inside the python_support folder.
Execute the following script by typing: "python runInstallationText.py" and hit Enter.
The script carries out the following tests:
● Deleting any test indexes that were generated for a previous script run
● Creating a test index
● Indexing documents
● Testing search functions
● Exact, error-tolerant (fuzzy), and linguistic searches
● Search using Boolean operators such as AND and OR
The results are displayed at the end of the script run. You see the tested calls and their statuses (OK or Failed).
When you run the script for the first time, the call Delete Index has the status Failed. This is because there was no existing text index to be deleted. If this is the only cell with the status Failed, the test was successful.
Below you will see the final output generated by the test script. As stated near the bottom of this screenshot our TREX is running very well or not if there is a problem.
Best regards,
Tom.
PS. Don't forget to reward helpfull answers -
How to use ISE Guest Portal for AD users
Hi there,
As subject explains all, I want to use ISE Guest Portal for my domain users. I have tried many different ways to authenticate users and finally I came to the conclusion that ISE CWA works pretty well and is very stable. WLC Webauth sucks alot, does not redirect to the login page always.
Can you please share what other ways are stable ways to authenticate AD users? I know about WPA 802.1x authentication but that requires a CA in the network which is not available at the moment. So can you please Suggect?
Otherwise, I want to use ISE Guest Portal for my AD users as well. AD is already integrated to ISE, the issue happens when I attempt to athenticate using AD user account, the user gets authenticated but the Guest Portal redirects me to Device Provissioning page and there it shows an error saying "there is not policy to register the device, contact system admin"
Am I missing something??
I am running WLC 5760 with ISE 1.2
Thanks in advance..Hi,
Can you post a screenshot of your current policies? Also for 802.1x authentication although it is best practices you do not have to have an internal CA to make this solution work. You can disable the option to "validate server certificate" or you can use a trusted CA to sign the certificate for the eap interface.
In most cases 802.1x is the method to go because it provides dynamic authentication without forcing users to redirected to a web page multiple times throughout the day, scenarios such as computers that sleep or users that are mobile will not have connectivity until they redirect to the portal if one of the scenarios exist. You also gain WPA encryption on your WLAN, if you are using strictly layer 3 web auth you run into issues where encryption is not used and rely on encryption from the application as your method of data integrity and security.
Thanks,
Tarik Admani
*Please rate helpful posts* -
How to use the Enterprise portal as a web server
Hi there,
For portal content I would like to create an URL-iview for a picture (.jpg file) where i want to put the picture on the SAP portal itself. So in this case the portal also acts as the web server.
If this is possible.
Where do i put the picture (in which directory)?
What is the url to be used for the iview?
thanks in advance
BertilYou can create a jsp page. The portal will display it for you if you want.
d:\usr\sap\<SYSID>\j2ee\j2ee_00\cluster\server\services\SERVLE~1\work\jspTemp\irj\root
Underneath this folder I placed a jsp folder. I could have called it anything. You can place pages here. You can take a standard html page and throw the following two lines at the top.
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
And it automagically becomes a jsp page. Granted if you really want to do fancy stuff with java server pages you will have to delve into some java and javascript.
I created an images directory and placed my pictures in that folder.
Then I created an iview pointing to a web page.
http://<yourserver>:50000/irj/jsp/mywebpage.jsp
You can even try the page out in a browser before creating an iview. If you are concerned about security you will have to place in within the PCD and do ACL to lock it down.
Good luck. I am sure there are other ways but this is how I did it.
Roy Richardson -
How to use servlets in portal web application in Weblogic Portal 4.0
We are developing a Portal Web application using Weblogic Portal 4.0 where in we
have the following scenario. one JSP in webflow of a portlet calls the PipeLine
which does some processing and calls the servlet which is having the typical download
functionality. The servlet is supposed to read the data from the pipeline session
and create a CSV String that is dumped to the client browser. The problem is even
we are doing response.setContentType("application/save") in the servlet it is
still displaying the content as html in the portlet. I guess since all our request
are send to the webflow contolling servlet and it is setting the content type
and hence our servlet is not working. How do I solve this problem? Thanks YogeshHi Renu
Please go through the SAP Content Management here you find the documents related to Wab page Compoer and knowledge mangement. Also search for article / blog for more details.
[http://www.sdn.sap.com/irj/sdn/nw-ecm|http://www.sdn.sap.com/irj/sdn/nw-ecm]
Hope it will helps
Best Regards
Arun Jaiswal -
Hi All,
Here I had a requirement on designing of webpage , but how to design a wabpage using WPC can any body give suggestion
I am aware of purpose but I am not able to getting what is the procedure for to use standard layouts of WPC in portal for design webpage just I found it will be available in KM-Content management-web page composer-layout
please try to provide procedure for to design webpage using WPC standard layouts
Thanks
RenuHi Renu
Please go through the SAP Content Management here you find the documents related to Wab page Compoer and knowledge mangement. Also search for article / blog for more details.
[http://www.sdn.sap.com/irj/sdn/nw-ecm|http://www.sdn.sap.com/irj/sdn/nw-ecm]
Hope it will helps
Best Regards
Arun Jaiswal -
How to Start working with TREX in Portal
HI SDN Memeber,
I am very new to TREX please any body could send the how can i start using TREX in portal. if you provide the Document that will be apprisiatable. it very urget
Thanks in ADV
Regards,
Sureshbabu MHi Sureshbabu,
Here are a couple of places you can look for TREX information (either installation or configuration):
- [SAP Marketplace - TREX Installation Guide|http://service.sap.com/instguides]
- [SAP Help - TREX Configuration |http://help.sap.com/saphelp_nw70/helpdata/EN/47/1b074063616446e10000000a114a6b/frameset.htm]
- [SAP Help - Indexing Portal Content|http://help.sap.com/saphelp_nw70/helpdata/EN/46/9d1405fa743ef0e10000000a1553f7/frameset.htm]
Hope this helps.
Best Regards,
Joseph -
How to create 'Tab page' portal?
Hi,
The 'Portal' configuration page provides 3 types 'Dashboard', 'Standalone Portal' and 'Tab Page Portal'. According to help document, to add new 'Tab Page', needs to ask customer support. Does anyone know how to use 'Tab Page Portal'?
Regards,
Desmond
Edited by: user783168 on 23-Oct-2012 19:02Similar to Patch 8608149 for 'User Portal' tab on User Transaction in FW 2.2 (default in 2.3.1)?
Follow How To Create A New Multi-Tab Portal Using Configuration Tools (Doc ID 1356225.1) -
Use TREX Search outside portal
Hi,
Our situation:
1.We have our intranet indexed with Autonomy search engine;
2.We have TREX installed and we have SAP EP7.0
3.We have our intranet also indexed by TREX in our SAP portal (using Web Repository in KM).
Now we would like to replace Autonomy intranet search with TREX. This means that the search field on the intranet page should contact TREX for a search instead of Autonomy.
How can we achieve that?
I have found documents and blogs about TREX API. I know that TREX Java client communicates with TREX server over TCP/IP and that they exchange XML files with the search request and results.
Maybe this would be possible if a TREX java client was available outside portal, but I haven't found it until now.
Kind Regards
Edmond PaulussenHi,
This is the URL I get before I click the search button:
http://xxxxxxxxxx/irj/go/km/basicsearch?SearchType=ctrlpers&SelectedSearchIn=FROM_HERE&SelectedSearchFolder=/intranet&SelectedSearchFromHere=/intranet&StartUri=/intranet
This is the URL from the search results:
http://xxxxxxxxxx/irj/go/km/prteventname/HtmlbEvent/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2feu_role!2fcom.sap.km.home_ws!2fcom.sap.km.hidden!2fcom.sap.km.urlaccess!2fcom.sap.km.basicsearch?SearchType=ctrlpers&SelectedSearchIn=FROM_HERE&SelectedSearchFolder=/intranet&SelectedSearchFromHere=/intranet&StartUri=/intranet
However, I do not see the query string. Do I miss something? Has this anything to do with, for instance, the configuration of the URL generator service?
Another question: the URL contains the name of the portal (xxxxxxxxxx). Should this be replaced by the name of TREX server, when submitting search to TREX outside portal?
Regards
Edmond -
How to use the CMS functionality in Sun Portal Server 7.2
Hi All,
How to use the CMS functionality using the ccd.war(Portlet) which is available in the library as i could add it to my channel but not able to show the functionality as it is showing the error msg "You are currently not logged in. Please login." should I create userid and there respective roles inorder to use the CMS functionality.
Has any one used this as I could this in glass fish server.
Any Input is appreciated.
Thanks & regards
SrikanthHave a look at the "*Roles*" section of the portal server 7.2 content management system guide
http://docs.sun.com/source/820-4275/index.html . You can also look at [project mirage|https://mirage.dev.java.net] for some screencasts
Alternatively,
1. ccd.war has 3 portlets in it:
(a) custom content definition portlet
(b) custom content portlet
(c) workflow portlet
2. Inorder to work with these portlets, user needs to be in anyone of the below roles:
(a)Consumer (b) Editor (c) Approver (d) Administrator (e) Submitter (f) Contributor (g) Publisher
3. By default ccd.war gets deployed using a default roles file (/var/opt/SUNWportal/tmp/ccd.roles.properties)
Note: In windows, you may not find this file
4. Access the portlets as a user in any of the role mentioned in the ccd.roles.properties
(OR)
you can use a new roles file which has mapping to your custom roles. For this , undeploy existing ccd.war and deploy again with a new roles.properties file
Hope this helps! -
How to use a portal jdbc system to delete or insert by IExecution.execute
hi everyone:
I create a jdbc system in portal. Then I use following codes to query a table
IQuery query = client.newQuery();
query.execute("SELECT * FROM [Categories]");
It is fine.
Now, I wanna do insert or delete operation. I can't use the IQuery object. I think it is only for query and it is Deprecated. I find there is a method: IExecution.execute(IOperation). But I don't know how to use that method. Can I insert/delete records using that method? The last question is how to control the sql transaction by that IExecution object.
thanks
elliotHi,
I followed the interface framework to complete a query.
The code is shown under
How to Modify DB Records Using JDBC Connector FrameWork
But I got this exception and I don't know how to go further:
com.sapportals.connector.execution.ExecutionException: Exception during execution of SQL statement at com.sapportals.jdbcconnector.execution.objects.JDBCExecution.execute(JDBCExecution.java:118) at iview.Simple.doContent(Simple.java:43) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at -
How to use stylesheet from web-template in portal
Hello all,
I want to integrate a web application consisting of several web-templates (BW 3.5) into a portal (EP 6.0) via iviews.
When called from the portal the web-templates stylesheets are replaced by portal stylesheets.
How do I force the portal to use the web-templates stylesheets.
Thanks in advance,
DenisYou can define the styles you want in a *.css file then put a link in your jsp to use these styles. You can also just put the styles directly in your jsp. Either should work
I have another post with some examples feel free to look there
Hope this helps -
How to get the "where used" of a portal object.
Hi folks!
I'm coding a program to get the list of the portal objects where a specific portal object (an iView for example) is used. I found the method getWhereUsedList from IPcdContext but I'm getting some errors.
Is this the best/correct way to get a "where used list"?
Does anyone have an example of how to use this method correctly?
Thanks in advance.
Geraldo.Hi Tanja, thank you very much for your attention.
Following your tips I figured out that the error was occurring during the casting and not during the getWhereUsedList method call. Now, I'm casting to Object. I'd like to cast to a more proper class. During my tests I got an error that showed me that the cast should be to a PcdGlSearchResult class. I couldn't find any javadoc for this class and when I changed the cast to this class I started to get a execution class load error. Please let me know if you have any advice regarding the casting.
private void getWhereUsed1(IPortalComponentRequest request, String id, StringBuffer sb) {
InitialContext iCtx = null;
Object objectId = null;
String tString = null;
Hashtable env = null;
IPcdContext result = null;
env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
try {
iCtx = new InitialContext(env);
result = (IPcdContext) iCtx.lookup(id);
for (NamingEnumeration ne = result.getWhereUsedList(""); ne.hasMoreElements();) {
objectId = (Object) ne.nextElement();
tString = objectId.toString();
sb.append(tString + CR);
} catch (Exception e) {
StackTraceElement[] elements = e.getStackTrace();
for (int i = 0; i < elements.length; i++)
sb.append(elements<i> + CR); -
Hi experts!
We want to use TREX as our search engine.
The following link already show some results for our system:
[http://trexsourcesearch.wdf.sap.corp:31305/webkit/TREX/abapsearch/search.psp|http://trexsourcesearch.wdf.sap.corp:31305/webkit/TREX/abapsearch/search.psp] and also the RFC-connection check in SM59 for TREX_SOURCE_SE is ok. So it seems that TREX is already running and configured on our system.
Our aim is to write a simple (test)report where you can enter e.g. a string. TREX searchs (maybe) our whole component for this string. TREX returns the search results and our report shows all the results.
So my question is:
How can I do this? Which function modules/methods... should I call to solve this problem?
I've found the following link but I think it describes only how TREX works and how it is to administer.
[http://help.sap.com/saphelp_nw70/helpdata/EN/46/cbe4bb63a668dfe10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/46/cbe4bb63a668dfe10000000a114a6b/frameset.htm]
Thanks and regards,
Christian
Edited by: Christian Honeder on Sep 8, 2008 12:58 PMI've founde a solution:
Useful is the transaction "TREXADMIN". Here you can see if your index has been created and if you have feed it correctly. You can also search for the attributes which you have added to the index.
But this transaction requires a special permission. Therefore you can use the search-methods in CL_COM_SE_TREX instead. The mentioned class provides a lot of functions for TREX
The following example shows how to create and feed the TREX index with one document. The search attributes itself are contained in lt_doc_attr. In this internal table you will have the fieldname (later displayed in TREXADMIN) and the value (you can search for this).
Comment: After you've feed the index you might have to wait some time until the fields in TREXADMIN appear or the search routines find something.
Create the TREX index:
* Get trex instance
lr_trex = cl_com_se_trex=>if_com_se_trex~get_instance( ).
CHECK lr_trex IS BOUND.
* Prepare Index Attributes
l_trex_id = 'your_trex_id'. "unique
l_rfc_destination = 'your_rfc_destination.
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
EXPORTING
input = sy-langu
IMPORTING
output = l_langu.
* Create index
CALL METHOD lr_trex->create_index
EXPORTING
iv_index_id = l_trex_id
iv_rfc_destination = l_rfc_destination
iv_language = l_langu
IMPORTING
ev_return_code = l_rc
EXCEPTIONS
conversion_error = 1
error = 2
OTHERS = 3.
Feed the TREX index:
The table lt_doc_attr has been filled in a subroutine.
DATA ls_doc_list TYPE trexs_index_doc.
DATA lt_doc_list TYPE trext_index_docs.
DATA lt_doc_attr TYPE trext_indexdoc_attrs.
* Feed Index
l_doc_key = ls_doc_key-doknr. "unique
ls_doc_list-doc_key = l_doc_key.
ls_doc_list-doc_langu = l_langu.
ls_doc_list-class_rel = 1.
ls_doc_list-doc_type = 'A'. "text ASCII
ls_doc_list-doc_action = 'I'. "index, alternative: D(index)
* some values for ls_doc_list-doc_type
* A text (ASCII); standard is A
* F file
* U url
* B binary
* Copy search attributes into the structure
ls_doc_list-doc_attr = lt_doc_attr.
APPEND ls_doc_list TO lt_doc_list.
* Now feed the index with the new document
CALL METHOD lr_trex->feed_index
EXPORTING
iv_index_id = l_trex_id
iv_rfc_destination = l_rfc_destination
* iv_use_queueserver = 'X'
it_index_document_list = lt_doc_list
* iv_flush_after_index = 'X'
IMPORTING
ev_return_code = l_rc
EXCEPTIONS
conversion_error = 1
error = 2
OTHERS = 3.
Delete the TREX index:
* Delete the Index
CHECK del_idx = abap_true.
CALL METHOD lr_trex->delete_index
EXPORTING
iv_index_id = l_trex_id
iv_rfc_destination = l_rfc_destination
EXCEPTIONS
conversion_error = 1
error = 2
OTHERS = 3.
How to search in the TREX index
You can use the trex instance instead of the function module to search the index.
* Search for a special fieldvalue
ls_query_entry-location = 'FIELDNAME'. "a fieldname which you have added with lt_doc_attr
ls_query_entry-value1 = l_txt. "maybe a text from the selection screen
ls_query_entry-rowtype = 'ATTRIBUTE'.
ls_query_entry-operator = 'EQ'.
APPEND ls_query_entry TO lt_query_entry.
* Search for a string
* Add the operator only if you've added a fieldname
ls_query_entry-value1 = 'AND'.
ls_query_entry-rowtype = 'OPERATOR'.
ls_query_entry-operator = 'EQ'.
APPEND ls_query_entry TO lt_query_entry.
ls_query_entry-value1 = l_string.
ls_query_entry-rowtype = 'TERM'.
ls_query_entry-operator = 'EQ'.
APPEND ls_query_entry TO lt_query_entry.
* All attributes are requested
ls_requ_attributes-attr_name = '*'.
APPEND ls_requ_attributes TO lt_requ_attributes.
* 1: DidYouMean, 2: Snippets 4: TitleSnippets or a bit combinaton
l_request_flag = 2.
* Search the index
CALL FUNCTION 'TREX_EXT_SEARCH_DOCUMENTS'
EXPORTING
i_indexes = lt_index "table with your index id
i_rfc_destination = l_rfc_destination
i_result_from = l_res_from "how many results should be found?
i_result_to = l_res_to
i_max_snippet_words = 30
i_request_flags = l_request_flag
i_query_entries = lt_query_entry
i_req_attributes = lt_requ_attributes
IMPORTING
e_result_docs = lt_result_doc.
e_no_of_hits = l_no_of_hits
e_no_of_all_hits = l_no_of_all_hits
e_index_size = l_index_size. -
How to use a Webservice (deployableproxy) within a portal component?
hi,
i need to know how to use a webservice using a deployable proxy within a portal component?
i've created the proxies and they work (with servlets).
i know how to use them in servletes (context lookup, jndi mapping, application references) but i cant find a way to use them in a portal component.. tried the context lookup way but cant figure out which jndi mapping to use.
any help?
thanks in advance,
constantini've found this document:
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cb2e29578c0262e10000000a11466f/frameset.htm
but it doesn't help...
i should add a privatesharing resource...
<property name="PrivateSharingReference" value="SAPJ2EE::rh21.de/pca~wsproxy"/>
which works
this is my code
public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
try {
Context context = new InitialContext();
WSPhonebook obj = (WSPhonebook) context.lookup("/wsclients/proxies/rh21.de/pca~wsproxy/de.rh21.wsproxy.phonebook.WSPhonebook");
WSPhonebookViDocument phonebook = (WSPhonebookViDocument) obj.getLogicalPort("Config1Port_Document", WSPhonebookViDocument.class);
} catch.....
now the lookup works (i guess, no messages about that anymore), but i catch ClassNotDefFoundError-Exceptions, but the classes are there, i can strg+click them in the editor, they are in the used dc's etc.
any help? its quite uurgent :/
Maybe you are looking for
-
Extremely SLOW after update, sound also a problem
Hiya! I just did a whole bunch of updates, which ones I can't really remember... but all of a sudden my computer is EXTREMELY slow at opening and closing applications (Safari interestingly seems to work alright). Also, it's extremely slow when I type
-
Notes from latest iOS are blank in OS X Yosemite
If I write a note on ipad or iphone, the note is found on my imac, but the content is empty. the title is correct, but note has no content. I have icloud enabled notes on imac and can't find the reason for this. If I add a note from imac, the no
-
Exit the loop of screen in Module pool
Hi, My requirement is : in my screen i have Table control. When i select any line (the value of select coloum will be 'X' ) and click on one button (Detail is button in my screen) the loop - endloop should exit at that line. for example : if i select
-
Hi everyone, I am having a problem with Oracle 11g NID utility., BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for HPUX: Version 11.2.0.2.0 -
-
How to set up RAID 5 in Windows 8
What are the procedures and settings to set up RAID 5 in Windows 8?