How to use SEARCH-API provided by portal30 default schema

I want information about the search api provided by the
default portal30 schema.
How can i use that for my specific requirement.
i want to manipulate it's search limits
is it possible ???
Can i customize the specification provided in this api

Hi,
about the addDataSource using the Java API, for now you have to disable the security
in order to add the data source using the MapViewer client API.
You can do that editing the MapViewer config file:
<mv_security enforce_sec_role="false" />
Assuming that you have added your data source, and you have rendered some map,
you can get the attribute information using the "identify" methods of the
MapViewer client API.
1) To identify one individual geometry:
String [][] result = mapviewer.identify(dataSource,table_name,columns,
geometry_column,srid, x, y);
where: "columns" contains the table attribute names that
you want to retrieve
     x,y represents the device coordinate.
2) To identify geometries inside a rectangle:
String [][]result = mapviewer.identify(dataSource,table_name,columns,
geometry_column,srid, xlowleft,ylowleft,
xupright,yupright,false);
where the rectangle coordinates are defined by xlowleft,ylowleft,
xuprigth, and yuprigth values in device unit.
3) The resulted String array contains on the first row the attribute
names, and on the remaining rows the attribute values for each geometry.
int nlin = result.length; // return the number of lines
int col = result[0].length; // number of columns
To get the attribute names:
// attribute names
Object []tableattrs = new Object[ncol];
for(int j=0;j<ncol;j++)
tableattrs[j] = result[0][j];
To get the attribute values:
Object [][]tablevalues = new Object[nlin-1][];
for(int lin=1;lin<nlin;lin++)
tablevalues[lin-1] = new Object[ncol];
for(int col=0;col<ncol;col++)
tablevalues[lin-1][col] = result[lin][col];
Regards.

Similar Messages

  • How to use search help in layout of se51

    how to use search help in layout of se51.

    Hi,
      One of the important features of screens is that they can provide users with lists of possible entries for a field. There are three techniques that you can use to create and display input help:
    Definition in the ABAP Dictionary
    In the ABAP Dictionary, you can link search helps to fields. When you create screen fields with reference to ABAP Dictionary fields, the corresponding search helps are then automatically available. If a field has no search help, the ABAP Dictionary still offers the contents of a check table, the fixed values of the underlying domain, or static calendar or clock help.
    Definition on a screen
    You can use the input checks of the screen flow logic, or link search helps from the ABAP Dictionary to individual screen fields.
    Definition in dialog modules
    You can call ABAP dialog modules in the POV event of the screen flow logic and program your own input help.
    These three techniques are listed in order of ascending priority. If you use more than one technique at the same time, the POV module calls override any definition on the screen, which, in turn, overrides the link from the ABAP Dictionary.
    However, the order of preference for these techniques should be the order listed above. You should, wherever possible, use a search help from the ABAP Dictionary, and only use dialog modules when there is really no alternative. In particular, you should consider using a search help exit to enhance a search help before writing your own dialog modules.
    Input help from ABAP dictoinary
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    Field Help on the Screen
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaa6135c111d1829f0000e829fbfe/content.htm
    Field Help in Dialog Modules.
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
    Regards,
    Vara

  • How to use search term2 in customer master record

    hi
    how to use search term2 in customer master record. can anyone tell me plz
    thanks
    monica

    Hi,
    Search Term 2
    Label used for search helps.
    Only uppercase letters are stored in this field. Your entries are converted automatically to uppercase letters.
    There are two of these fields for search terms. These fields can be used independently of each other.
    Procedure
    You can use your own criteria for entering the search term.
    Example
    You can enter the main part of the name or an organizational ID.
    For example, for the company "Hechinger & Sons", you could enter "Hechinger" as the first search term.
    The second search term could then be the name ID you use within your company, to help you identify your data later.
    Please check out the following link:
    http://help.sap.com/saphelp_47x200/helpdata/EN/01/a9b331455711d182b40000e829fbfe/frameset.htm
    Hope this helps.
    Please assign points as a way to say thanks.
    Regards,

  • How to use search help in ECC6.0 reports without matchcode.

    How to use search help in ECC6.0 reports without matchcode.
    Select-options: O_SHIP FOR KUNWE MATCHCODE OBJECT DEBI  is in 4.6c.

    we can use on value request for that.
    report zrich_0001 .
    tables: t001.
    data: begin of it001 occurs 0,
    bukrs type t001-bukrs,
    butxt type t001-butxt,
    ort01 type t001-ort01,
    land1 type t001-land1,
    end of it001.
    select-options s_bukrs for t001-bukrs.
    initialization.
    select bukrs butxt ort01 land1 into table it001 from t001.
    at selection-screen on value-request for s_bukrs-low.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'BUKRS'
    dynprofield = 'S_BUKRS'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    value_org = 'S'
    tables
    value_tab = it001.
    start-of-selection.
    refer to this thread:
    On value request?

  • How to use search function in ipod nano 7th generation

    how to use search function in ipod nano 7th generation?
    Cheers thanks.

    There is no search function.  If there was, it would be mentioned in the iPod's User Guide.
    7G Nano User Guide
    B-rock

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • How to use OracleDbType.Array provided by ODP with  User defined type ?

    Can anyone help me how to use OracleDbType.Array provided by ODP.NET ?
    I need to pass string array to a oracle stored procedure .
    User defined array type defined in oracle is :
    CREATE TYPE TYPE_NAME IS TABLE OF varchar2(20) ;
    This type is defined outside of any package , and i have tested that if definition of type is modified to
    CREATE TYPE TYPE_NAME IS TABLE OF varchar2(20) index by binary_integer , i am able to pass array as AssociativeArray to my Stored Procedure.
    But how to pass array object if the Type's definition does not contain index by clause ?
    Please help how to pass Array object to Oracle Stored Procedure ?

    The solution described in Passing Array of UDT or Collection as IN OUT using OracleDbType.InputOutput
    is working for me.
    Edited by: stzueger on Jan 2, 2012 10:32 AM

  • Asynchronous read & write by using Asynchronous api provided in nio-java 7

    HI,
    I am trying to write a small program to implement **asynchronous read & write by using Asynchronous api provided in nio in java 1.7** in windows machine.
    i tried the following code to write a small string to a file asynchronously.file is getting created but the contents are not dispalying.
         static long startTime = System.currentTimeMillis();
         static long endTime;
         static long execTime;
         public static void main(String[] args) {
              String path = "C:\\AsynchWrite.txt";
              Path file = Paths.get(path);
              final AsynchronousFileChannel channel;
              long pos = 1;
              try {
                   OpenOption[] options = { StandardOpenOption.CREATE,
                             StandardOpenOption.WRITE, StandardOpenOption.SYNC };
                   channel = AsynchronousFileChannel.open(file, options);
                   ByteBuffer buffer = ByteBuffer.allocate(1000);
                   String writeThis = "Testing by writing a line";
                   byte[] src = writeThis.getBytes();
                   buffer.put(src);
                   channel.write(buffer, pos, null,
                             new CompletionHandler<Integer, Object>() {
                                  @Override
                                  public void completed(Integer result, Object attachment) {
                                       System.out.println("completed successfully");
                                       System.out.println("start time :" + startTime);
                                       endTime = System.currentTimeMillis();
                                       System.out.println("end time : " + endTime);
                                       execTime = endTime - startTime;
                                       System.out.println("Execution Time :" + execTime);
                                       System.out.println("Execution Time(ms) :"
                                                 + execTime);
                                       try {
                                            channel.force(true);
                                            channel.close();
                                       } catch (IOException e) {
                                            // TODO Auto-generated catch block
                                            e.printStackTrace();
                                  @Override
                                  public void failed(Throwable exc, Object attachment) {
                                       // TODO Auto-generated method stub
                                       System.out.println("failed!!");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }Please help me out
    Thanks in advance,
    Ravi

    It looks like you are missing buffer.flip() after your put as otherwise the buffer position will be at 25 (not 0 as you expect).

  • Where I can find documentations on how to use MyComponse API ?

    Where I can find documentation on how to use MyComponse API ?
    Any example ?
    Thanks

    not 100% sure at which point the callout to BEFOREPROCESSCOMPOSE is done, but during the process logs phase, the data in the CVR$ tables is copied into the clg$ tables, and the cvr$ table dml flags cleared
    unles the query is very complex/long running why not join the clg$ tables (only have the data that has changed, so smaller than the cvr$ tables, to your base tables for determining if relevant within the MyCompose needCompose method?
    an example from one of our MyCompose classes is
    public int needCompose(Connection conn, String clientid) throws Throwable{
    boolean baseDirty = false;
    Statement st = conn.createStatement();
    String sql = null;
    int rowCount = 0;
    int fetchCount = 0;
    ResultSet rows;
    // log user
    // sql = "INSERT INTO qpub_log (TIMESTMP,message) "
    // + " values (sysdate, '" + clientid + " assd' )";
    // rowCount += st.executeUpdate(sql);
    // need to compose if there are any relevant changes to assessment details FOR
    // TIR / SOLO assessments
    // Inspection history checklists
    // PIJ marking sheets
    // INSSI
    // Risk Assessment)
    // also changes to (in case of underlying alterations causing data to be withdrawn)
    // STATUS_LOGS
    // ROLE_ASSGNTS
    if(this.baseTableDirty("CDB_OWNER", "ASSESSMENT_DETAILS")){
    return oracle.lite.sync.MyCompose.YES;
    if(this.baseTableDirty("CDB_OWNER", "STATUS_LOGS")){
    sql = "SELECT count(clg.context_key) "
    + "FROM CDB_OWNER.ROLE_ASSGNTS rola "
    + " ,CDB_OWNER.USER_ACCOUNTS usra "
    + " ,CDB_OWNER.CLG$STATUS_LOGS clg "
    + "WHERE usra.user_name = '" + clientid + "' "
    + "AND rola.rolat_rol_code IN ('INSPECTOR','COVER_INSP','DELEG_INSP') "
    + "AND rola.context_key_by=to_char(usra.par_id) "
    + "AND rola.context_key_for=clg.context_key "
    + "AND clg.staa_seq_no=47 ";
    rows = st.executeQuery(sql);
    rows.next();
    fetchCount = rows.getInt(1);
    if (fetchCount != 0) {
    sql = "INSERT INTO qpub_log (TIMESTMP,message) "
    + " values (sysdate, '" + clientid + " assd stal" + fetchCount + "' )";
    rowCount += st.executeUpdate(sql);
    return oracle.lite.sync.MyCompose.YES;
    if(this.baseTableDirty("CDB_OWNER", "ROLE_ASSGNTS")){
    sql = "SELECT count(clg.id) "
    + "FROM CDB_OWNER.ROLE_ASSGNTS rola "
    + " ,CDB_OWNER.USER_ACCOUNTS usra "
    + " ,CDB_OWNER.CLG$ROLE_ASSGNTS clg "
    + "WHERE usra.user_name = '" + clientid + "' "
    + "AND rola.rolat_rol_code IN ('INSPECTOR','COVER_INSP','DELEG_INSP') "
    + "AND rola.context_key_by=to_char(usra.par_id) "
    + "AND rola.id=clg.id ";
    rows = st.executeQuery(sql);
    rows.next();
    fetchCount = rows.getInt(1);
    if (fetchCount != 0) {
    sql = "INSERT INTO qpub_log (TIMESTMP,message) "
    + " values (sysdate, '" + clientid + " assd rola" + fetchCount + "' )";
    rowCount += st.executeUpdate(sql);
    return oracle.lite.sync.MyCompose.YES;
    // if no relevant changes do not compose
    return oracle.lite.sync.MyCompose.NO;
    }

  • How to use search REST api to get custom managed property data for anonymous user?

     
    I am trying build a public portal with anonymous access and i am trying to read some
    content from custom managed property using search REST api in sharepoint 2013. I have tried to enable all possible attributes of the managed prop. Like searchable,queryable,safe etc. also i am including queryparametertemplate in my REST api search query. But
    still i am not able to retrieve the managed prop. For an anonymous user. The same query returns the value if i am logged in.
    Any Help is greatly appreciated. 
    Thanks,
    Rakesh
    Thanks, Rakesh

    Hi Rakesh,
    To enable anonymous Search REST queries, we need to create queryparametertemplate.xml and upload it to the correct library in SharePoint.
    From your description I can know that you have created the file, then I recommend to check the things below:
    Please use “QueryTemplatePropertiesUrl” instead of “queryparametertemplate” in the Search REST API query as following: &QueryTemplatePropertiesUrl='spfile://webroot/queryparametertemplate.xml'.
    Make sure that the Query Properties you need have been added to the QueryProperties element in the queryparametertemplate.xml file.
    Make sure that the query parameters you need have been added to the WhiteList element in the
    queryparametertemplate.xml file. For example, if you want to use Refiners in the REST API, then the Refiners should be added to the
    WhiteList element in the queryparametertemplate.xml file as following:
    <a:string>Refiners</a:string>.
    You can also debug setting properties in anonymous Search Rest queries following the link below:
    http://www.mavention.com/blog/debugging-setting-properties-anonymous-search-rest-queries
    More references about anonymous Search REST:
    http://blog.mastykarz.nl/configuring-sharepoint-2013-search-rest-api-anonymous-users/
    http://msdn.microsoft.com/en-us/library/office/jj163876%28v=office.15%29.aspx#bk_AnonymousREST
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • How to use Search plugin functions in your plugin?

    Hi,
    I am developing a plugin which need to add an action for bookmarks. For this I need to search a particular word in the document and the corresponding page number.
    On going through the SDK documentation I came across the Search plugin. There are ways in which your plugin can communicate with the Search plugin. For doing so you need to do the following:
    1. Add HFT of the Search plugin by registering PluginImportReplaceAndRegister.
    2. Add "SrchClls.h" header file.
    I did the following steps and my plugin compiled successfully. But I am not able to understand how will I use the Serach plugin functions to find a word in the document from my plugin?
    Please help.
    Thanks

    The HTML help is spectacularly unhelpful, sometimes giving dozens of unrelated methods when you try to read the section for Search.  But try Search... http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/API_References/Acrobat_API_Ref erence/AV_Layer/Search.html
    It's worth making sure that you understand the difference between "Search" and "Find" functionality in Acrobat, something rather masked in the UI in recent releases.
    Find - looking for a string in the current document. The Search API has no connection to this.
    Search - managing indexes of multiple documents. API provides limited functionality (create/delete/query/search). Search results are not available to the API, they can only be displayed in the UI as a results window.

  • How to use custom API's

    Hi All,
    In OIM how can i use my own/Custom API"S. Wher do i need to place the Jar/Class files. Like in other Identity Management tools (I only have the experience of SUN) you can place the files under WEB-INF/lib or WEB-INF/classes and then can easily use them, does OIM provides this/similar kind of functionality and how we can use that.

    Hi,
    If you want to use custom API to create adapter then put the jar file in <OIM_Install>/xellerate/Java Task/
    folder and if you want to use them to create task Schedular then put it in <OIM_Install>/xellerate/Schedular/
    regards

  • How to use the API for DATE, MONTH  AND YEAR

    I would like to use the java api in .util.calender in the java api to get the date.
    How to implement the API for the "DATE","MONTH","YEAR" which are available provide by java?
    can someone give me in one complete code?

    From the Java Developers Almanac 1.4:
        Calendar cal = new GregorianCalendar();
        // Get the components of the date
        int era = cal.get(Calendar.ERA);               // 0=BC, 1=AD
        int year = cal.get(Calendar.YEAR);             // 2002
        int month = cal.get(Calendar.MONTH);           // 0=Jan, 1=Feb, ...
        int day = cal.get(Calendar.DAY_OF_MONTH);      // 1...
        int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); // 1=Sunday, 2=Monday, ...

  • How to use Catalog API's

    Hi,
    Can someone please point me to some references or sample implementation where Catalog and Search API functionality is used.
    I want to create a stand-alone windows application much like APILocator.exe to index and search a set of PDF files.
    Thanks
    -Sanjai

    Hi Leonard,
    Thanks for the response.
    Yes I have downloaded the SDK. I'm looking for something more detail as to how to use the catalog APIs to index set of PDF's and use it to search ( if its possible )
    Thanks again
    -Sanjai

  • How to use java api while java programming especially using javase and java swing?

    i need help for java api for undo, redo, htmleditorkit,editorkit.
    in my project i have to use java swing for desktop application but, i need help for how to implement and how to retrieve java api.
    please reply with example or code..

    i need help for java api for undo, redo, htmleditorkit,editorkit.
    in my project i have to use java swing for desktop application but, i need help for how to implement and how to retrieve java api.
    please reply with example or code..
    You find examples and code by searching the internet, not by using forums.
    Start with The Java Tutorials - it has trails for the bulk of the Java functionality.
    See the trail 'How to Write an Undoable Edit Listener'
    http://docs.oracle.com/javase/tutorial/uiswing/events/undoableeditlistener.html
    You learn by DOING - not by reading. Actually DO the tutorial example and try to understand WHAT it does and HOW it does it.
    Then search for other tutorial trails that are of interest.

Maybe you are looking for