Formatted search with DI API

Hello,
Can formatted searches be triggered when data is added via the DI API?
Thanks,
Sheetal

Hi,
As Ad said, it is not possible. The reason is that formatted searches are triggered when UI API events are raised. Using the DI API doesn´tt make UI API events to be raised, so that´s not possible.
Regards,
Ibai Peñ

Similar Messages

  • Create a Formatted Search with SDK?

    Hi,
    Is it possible to create an Formatted Search with the SDK? With which API???
    Thanks for Help
    Thorsten

    Hi Thorsten,
    Nowadays, there is not any standar way to do this. An approach could be to search for the tables where Formatted Searches are stored which are some.
    If you are interested, we have developed a tool that is used to carry personalizations such us Literals, Formatted Searchs, Querys, Document Editings, User Reports, UDF and UDT. It has been very helpfull for us, and we are planning to sell it to other partners. If you are interested send me an email to [email protected]
    Regards,
    Ibai Peñ

  • Formatted search with Query auto update

    hi all,
    I have created 2 UDF's at title level in marketing document, and assigned Formatted search with query to it with auto refresh when posting date field changes. One UDF gets updated automatically and the other one doesnt.
    any one can guide me on this.
    regards
    salman
    Edited by: Rui Pereira on Aug 8, 2008 11:47 AM

    Hello Salman,
    I took the effort to understand you question but I am not quite sure if I have all the pieces of the puzzle yet.  I can see Jeyakanthan has already grilled you with questions and you have answered all of them.
    UDF1 - is this se to Auto Refresh - Refresh regularly - on Posting Date?
    UDF2 - On which field is this set to Auto refresh?
    UDF3 - On which field is this set to Auto refresh?
    One thing to note when you have two fields with FMS and the second one dependent on the value of the first, the second one does not auto refresh because it cannot detect the Field change on the First UDF.
    This is probably what you are experiencing.
    If you don't mind I would like to understand the business reason for the 3 UDF's and what each one is for. There might be other options to look at to achieve the same result.
    Let me know
    Suda

  • Formatted Search with like

    I'am tring to do a Formatted Search with this: SELECT     DISTINCT T0.Code, T0.Name
    FROM         T0 LEFT OUTER JOIN
                      ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name Like '$[ORDR.U_PDISCHAR] %%' ORDER BY T0.Name
    but it not work any help... thanks
    Message was edited by: Juan F Vásquez

    Hi,
    This worked for me:
    SELECT DISTINCT T0.Code, T0.Name
    FROM T0 LEFT OUTER JOIN
    ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name
    Like $[ORDR.U_PDISCHAR] + '%%'  ORDER BY T0.Name
    Not whit this same fields, but with others.
    Hope helps,
    Ibai Peñ

  • Formatted search with UDF and syntax question

    Can you explain the syntax with when to use the dollar sign and negative in writing a query for a formatted search based on user entry?
    I now want to create a formatted search to pull values based on the user's entry into a UDF on the item master screen.
    User entry into UDF U_Customer Code
    to create Formatted search for UDF U_Rep01
    I tried the following, but it does not work.
    SELECT T0.U_REP01 FROM dbo.OCRD T0
    WHERE T0.CARDCODE = $http://$OITM.U_CUSTOMERCODE
    Thanks.
    Please advise.

    The right syntax would be like this:
    SELECT T0.U_REP01 FROM dbo.OCRD T0
    WHERE T0.CARDCODE = $[OITM.U_CUSTOMERCODE\]
    However, the logic of query may not be correct.  Select something must be already in the system and Where should also be locatable.
    Thanks,
    Gordon

  • Creating formatted search using DI API

    Dear All,
    Please let me know if we can implement/create formatted search on a UDF textbox using DI API. Is it possible to create formatted search through code using DI API ?
    Regards,
    Noor Hussain

    Yes, it is possible. Look for the FormattedSearches object in SDK.

  • How to combine a content search with an attribute search with the API

    Hi
    I have been working with searches in Content Services using the API and I have successfully set up the search over the contents of a document and inside of the Category attributes of the document.
    My problem comes when I try to combine this 2 kinds of search, that is when I want to find all the documents that cointain the text "test" and at the same time contain other text into their category attributes.
    What I do is to build 2 SearchExpression's one for the content search and the other for the attributes search and then joining them in a third SearchExpression object using the FdkConstants.OPERATOR_AND. When I search using only the first or the second SearchExpression everything works fine. But when I do the search using the third SearchExpression an ORACLE.FDK.ParameterError:ORACLE.FDK.InvalidSearchExpression
    exception id raised.
    The code I'm using is like this:
    private SearchExpression getMainSE(String contentQuery, CategoryInfo catInfo)
         SearchExpression contentSE = null;
         SearchExpression catSE = null;
         SearchExpression mainSE = null;
         if(contentQuery != null)
              contentSE = this.setupSE4Contents(contentQuery);
         if(catInfo != null)
              catSE = this.setupSE4Category(catInfo);
         if(contentSE != null && catSE != null)
              mainSE = new SearchExpression();
              mainSE.setLeftOperand(FdkConstants.OPERATOR_AND);
              mainSE.setLeftOperand(catSE);
              mainSE.setRightOperand(contentSE);
         else
              mainSE = contentSE != null ? contentSE : catSE;
         return mainSE;
    CategoryInfo is one class made by my own that contains the categoryId of the document and a List of the attributes where I want to search. mainSE is the SearchExpression that is returned.The portion of code that appears to be having problems is this:
    if(contentSE != null && catSE != null)
         mainSE = new SearchExpression();
         mainSE.setLeftOperand(FdkConstants.OPERATOR_AND);
         mainSE.setLeftOperand(catSE);
         mainSE.setRightOperand(contentSE);
    And finally I only execute the search using the mainSE returned by the function:
    // Define search options
    NamedValue[] nv = WsUtility.newNamedValueArray(new Object[][] {
         { Options.FOLDER_RESTRICTION,
              folder != null ? new Long(folder.getId()) : null },
         { Options.SEARCH_VERSION_HISTORY, Boolean.TRUE } });
         SearchExpression mainSE = this.getMainSE(contentQuery, catInfo);
         try
              // Search documents
              NamedValue[] result = sem.search(mainSE, nv, null);
              // etc....
    Is this the correct way to combine a content search with an attribute search???
    I know that this is possible since I have seen that it can be done in the Collaboration Suite UI.
    I hope yoy can help me...
    Thanks in advance

    Not sure if this is a typo (while pasting code on the forum) or is the cause of the problem you describe.
    Shouldn't mainSE.setLeftOperand(FdkConstants.AND) be replaced by mainSE.setOperator(FdkConstants.AND) ?
    Ravikiran

  • Create Named Search with Java API

    Hi,
    is it possible to create or modify a named search with the Java API?
    Best regards,
    Roman

    Hi Olof,
    You can use the below code for searching a value in lookup table:
                   ResultDefinition objResultDefinition = new ResultDefinition(Lookup Table Id);
                   objResultDefinition.addSelectField(Lookup Field ID);
                   StringValue [] objStringValue = new StringValue[1];
                   objStringValue[0] = new StringValue("Value to search");
                   RetrieveRecordsByValueCommand objRetrieveRecordsByValueCommand = new RetrieveRecordsByValueCommand(objConnectionAccessor);
                   objRetrieveRecordsByValueCommand.setSession(strUserSessionID);
                   objRetrieveRecordsByValueCommand.setResultDefinition(objResultDefinition);
                   objRetrieveRecordsByValueCommand.setFieldId(lookup field id);
                   objRetrieveRecordsByValueCommand.setFieldValues(objStringValue);
                   objRetrieveRecordsByValueCommand.execute();
                   RecordResultSet objRecordResultSet = objRetrieveRecordsByValueCommand.getRecords();
    Now using the objRecordResultset in a loop you can get the record id by calling the getRecord(i).getId() method.
    Hope this helps!!
    Cheers,
    Arafat

  • Format search with operation (+ - * /)

    HI people, i have this format search working perfectly:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > $[$38.14.number] AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    But i need sum a % in $38.14, so i did the next:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]*1.20) AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    But this not work......how can i sum a % ???

    Ok, works with this:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]/(0.80)) AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    My problem was that no quit FS from field, i meaning i must quit and the put again the FS to take the changes.

  • Formatted Search with DI  leads to a very slow performance - HELP....

    Hello There
    I have defined some formatted search in OPCH - everything is working fine.
    I have added some logic to this form via the DI.(handlling 1 item press_event), and I get a very very slow performance - the ADDON-EXE jumps TO 230MEGA of memory, and entering values to each row in the tables/item in the form takes about 15 seconds.
    Any suggestions?
    RGDS
    HAGAI

    Hi Hagai,
    Normally an addon written using the DI would take up 60-80MBs.
    Are you filtering out all events except for the item press event for the form? If you are not filtering events then this can have quite a drastic affect on performance.
    What logic have you got behind the press event? If the addon exe is ballooning out to 230MB then it suggests that there is either a problem with a memory leak or that an error is occuring in the code. I would recommend putting try/catch clauses at suitable places in the code and maybe specifically setting objects to null and calling the .NET garbage collector to try and minimise the potential for memory leaks.
    Are you sure that it is the combination of the formatted search and the addon that is causing the problem, i.e. if you take away the formatted search but leave the addon do you still get poor performance or does everything speed up?
    Hope this helps,
    Owen

  • Formatted Search with multiple conditions

    Hi experts,
    I am using a formatted search to update the Unit price in Sales Order. Query mentioned below.
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049.0]'
    But while adding Item on Sales Order, it is showing error, Incorrect Syntax near  '$[$38.2000002049.0]'.
    Note: I have added an UDF named U_LOCATION( Alphanumeric, 10) in OPLN and selecting location in Price List through another FMS which is working perfectly.
    Please help in this regards.
    Thanks in Advance.
    Nabyendu

    Hi Nabyendu Saha..
    You said the u_location as alphanumeric the why you have given 0 for the field type in the FMS...
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049]'
    or
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = [$38.1.0]
         and     T1.u_location = $[ordr.u_location]
    Try the above , hope helpful
    Regards,
    Kennedy

  • How do i deduct dates using formatted search with a query

    Hi Experts,
    I would like to know how to get the date difference using query and formatted search. Below are the details:
    1. I have created 3 Header UDF's composed of 2  Date type fields and 1 Quantity field.
    2. The first one is for the Original Date, the next one is for the Payment Date and the Last one is for the No. of Days Lapsed.
    What I would like to do is automatically compute for the number of days from the original date to the payment date. What query syntax should i use to achieve this?
    Thanks,
    Yvette

    Hi Yvette,
    It should be something like;
    DATEDIFF (day, T0.[createDate], T0.[closeDate] ) as 'Aging'  This is just an example. You may add your udf's instead of dates.
    Thanks,
    Joseph
    Edited by: Joseph Antony on Jul 2, 2010 1:53 PM

  • To create a formatted search with customer ref no.

    Hi there, I am new to formatted searches and I am trying to do the following:
    on the delivery docket when the customer ref no is filled in I want this to populate a UDF called ordr_U_CAllREF
    I have the udf created and it is called Cust Ref.
    can someone please give me some tips on how to create this please?
    thank you.
    E

    Hi Edel,
    Try this.
    Select $[ORDR.NumAtCard.0]
    Save above query in query manager and go to Sales Order Form and put cursor on U_CAllREF UDF and press Alt+Shift+F2 and it will ask you to link the query by using 3rd option and simply link this FMS to U_CAllREF.
    Hope this will help you.
    Regards,
    Rahul

  • Formatted Search with data from active window

    Hi experts,
    I created a FMS on the order document. To let the FMS work, i use some data from the active order window like this $[$38.1]. In this FMS i also show some data to the user. To complete my FMS, i would have to add a where statement, with the active window the custom window i show the user. If i look into the system information, following information shows up below:Form 20000034, Item =4, Pane=0, Column = Col2, Variable =1 #000006294,Col2.
    Any idea's on how i can make a FMS with data from this active custom window?
    Kind Regards,
    Frederik

    Hello Frederik,
    Have you tried
    $[$Item.Column]
    $[$4.Col2]
    And i want to say it is possible to pick value from other not activate form .
    by using SQL syntax after add temp table.
    Thanks
    Manvendra Singh Niranjan

  • Formatted Search with user defined fields??

    Hai everyone,
    I know how to use the search.. I did like this...
    SELECT U_Discount FROM OITM WHERE ItemCode = $[$38.1.0]
    But now i want to know the other way...ie.
    SELECT U_TVal FROM OITM WHERE U_Tcode='??????'
    the where condition is to be like this -I have 2 user defined fields
    1. U_TCode
    2. U_TVal
    I want to select the U_TVal where the U_Tcode= ????
    HOW TO SPECIFY THE USER DEFINED FIELD HERE like  this one $ $38.1.0 ....or is there any other method??
    Thanks
    Vibin

    Its Same..I didnt try your way but i tried this
    select oNHand from OITW where ItemCode=$[RDR1.ItemCode]
    Here in sales order- when an item selected the Stock in different warehouse will be listed in quantity...
    Try that
    $[Tablename.FieldName]

Maybe you are looking for