Formatted Search Object

Dear All
I want to apply Formatted Search by SDK( 2007) on Delivery Notes, In case I set Action='bofsaQuery' I need to set FieldID.
From Where I can Get List of Field ID, For UDF, its easy but for SAP's Fields I could not find any Table/list of Field ID's....

Hi,
There is no this kind of list.
Use the System Information, and look the Itemid and column id on the B1 GUI.
Or
Define the formatted seach by GUI with manual, and check the CSHS table for details.
Regards,
J.

Similar Messages

  • Regarding formatted search

    hi,
        how to track particular query applied for formatted search.and where it applied.
    pls give solution asap.
    regards
    vishal

    Hi,
    Please check the DI API documentation for <i>FormattedSearches</i> and <i>UserQueries</i> objects.
    That should give you all information you need...
    Regards,
    Frank

  • 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.

  • Formatted search values

    Hello experts
    How can I get access to formated search form?
    How to return its marix values (it returns 3 values)? I can choose forms uniqal ID, but how can I get a specific row from it?
    Or how can I display the list of indexes after puttin "*" in the column? what conditions must column have?

    Thanks for your reply.
    1. Well I think I could just make an Matrix object (its an item of formatted search form) and return its rows, am I right?
    2. Could you explain me how to display list of indexes after putting * and tab in a matrix cell (I have no CFL)?  I know it is possible but how should I bind column or maybe do sth else to gain this functionality?

  • Applying formatted search to checkbox

    I want to set the Payment Block checkbox on AP Invoice automatically when a new invoice is created.
    I tried to do it with a formatted search, but you cannot apply a FMS to a checkbox field.
    Is it possible?
    B1 version 2005A SP01 PL18.
    Regards,
    Douglas

    Dear Douglas,
    It is not possible to assign formatted search to a checkbox field.
    But you can create a small addon in SDK and whenever any invoices will be created
    through the application, it will catch the docentry of the invoice and
    then it will set payment block for that invoice by using the property
    "PaymentBlock" of oPurchaseInvoices object.
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

  • 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 on invoice

    I want to do a formatted search on a invoice, and i must get the LineNumber of each invoice line , and with this linenumber and the docentry, put a value in a userfield(the userfield is in each line) How can i get this linenumber? It's something like $[Item_number.Colum_Number]? Does it iterate itself through de lines?
    Thanks!

    Hi Miguel Angel,
    If you activate the debugging info, you can see that it is the 0 column, so it will be $[$38.0.0] .
    38 for the matrix object.
    0 for the column.
    0 fot the format.
    Regards,
    Ibai Peñ

  • Formatted Search and Item Events

    Hi,
      I am having a huge problem with using Formatted Search and Add-Ons.
    On the Sales Order Form I have a Formatted search Setup on the Customer Reference Number, it is set to Auto-Refresh when the CardCode changes.  This is the only Formatted search on this form and it works fine.
    However, when I run my Add-On, and enter an Item Code it takes about 30 seconds to display the Item Description. In tracing my Add-On it appears to call the Item Event et_GOT_FOCUS on the Item Code Column I just entered over 50 times.  I don't use other events, but for testing I did turn on all events and the only other event it occured with was et_LOST_FOCUS.
    If I turn off my Add-On or turn off Auto Refresh on the Formatted search everything runs as it should.
    I figure the Auto Refresh of the Formatted search has something to do with this, but I need to have this turned on.  Another thing is that it only seems to call this event when Before Action = false, It does not seem to be called on Before Action = True. 
    Can I disable the Formatted search temporarily from within my add-on or is there something else I need to do to keep this from happening.
    Thanks for Any Help
    Paul

    Hi Alfredo,
      Thanks for the suggestion, that sounds like it might be what I am looking for. But I am confused on trying to visualize how this would work. Do I need to duplicate the entire logic that Business One already does or are there some functions in the DI/UI that I can call that does the functions.  Since I am doing this from a System(Sales Order) not User Defined Form, does that change anything.  I did see the FormattedSearches Object to add a Formatted Search through the DI, but that seems like it will just create the Object and not help me execute it from my Add On.
    Is there some code snipits you could provide or get me going in the right direction on how to implement the formatted searches from within my Add-On. 
    Thanks Again,
    Paul

  • Formatted Search per SDK

    Hello,
    thank you very much for your effort and valuable time in advance.
    I have a question concerning formatted searches.
    Is there any possiblity to add formatted searches per SDK?
    What's about UserQueries and UserDifinedValues? Could these object be used to add new formatted searches?
    Best Regards
    Vural Özmen

    Hi Vural,
    Don't know if it's possible to add User defined Values through SDK, but formatted searches and user querys it's possible. You just need to use the following objects
            Dim oQueryCategory As SAPbobsCOM.QueryCategories = oCompany.GetBusinessObject(oQueryCategories)
            Dim oUserQuery As SAPbobsCOM.UserQueries = oCompany.GetBusinessObject(oUserQueries)
            Dim oFormattedSearch As SAPbobsCOM.FormattedSearches = oCompany.GetBusinessObject(BoObjectTypes.oFormattedSearches)
    From what I found in the SDK Help file, The UserDefinedValues is a member of the FormattedSearch object but, has I said above, I've never used it.
    Regards,
    Vítor Vieira

  • Formatted Search for Sales Order

    Hi,
    I setup a formatted search in Sales Order unit price field.
    Condition required:
    If Sales Order is copied from Sales Quotation, unit price remains as per Sales Quotation unit price, else formula to calculate mininum selling price appllies.
    Here's the query:
    DECLARE @BASE_ENTRY INT
    DECLARE @PRICE NUMERIC(19,6)
    SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
    SET @PRICE = $[$38.14.0]
    IF @BASE_ENTRY = 0
    BEGIN 
    SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
    FROM OITM T0
    WHERE T0.[ItemCode]=$[$38.1.0]
    END 
    ELSE 
    BEGIN
    SELECT @PRICE
    END
    l have no issue if the Sales Order copied from Sales Quotation, however when enter the Sales Order manually the formatted search having error message:
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Error converting data type nvarchar to numeric.
    FMS execution failed on field '' with query name 'Get Minimum Selling Price (SO)'
    Looks like my query has error...

    Hi ,
    Try this below query and let me know your feedback,
    DECLARE @BASE_ENTRY INT
    DECLARE @PRICE NUMERIC(19,6)
    SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
    SET @PRICE = $[$38.14.Number]
    IF @BASE_ENTRY = 0
    BEGIN
    SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
    FROM OITM T0
    WHERE T0.[ItemCode]=$[$38.1.0]
    END
    ELSE
    BEGIN
    SELECT @PRICE
    END

  • Help needed for Formatted Search

    Hai Experts,
    would like to ask you some clarification on Formatted Search. In the
    query I found $http://$44.2.1 given in the criteria part.
    In some articles it was mentioned that, the 44 meant for the table
    connected with the form and 2 is field index and so on.
    Can you please explain how to find out those numbers and field index.
    I need to work out planty of FMS to fetch data into
    UDF automatically based on user input.
    Regards
    Anand

    Hi Anand,
    You may check these threads first:
    Re: Vendor default GL FMS help
    Re: Runtime data calculation
    Thanks,
    Gordon

  • Formatted Search - Restrict to Only One Customer on Activity Window

    Hello Experts:
    Am trying to create a formatted search to provide a suggested RMA Number on the Business Partners > Activity window in a UDF.
    While in Activity, the user should get a list of ONLY the one customer they are currently working with.  So if C0001 is being used in the Activity window, the list should show all suggested RMA numbers just for that customer of C0001, not any other customer. 
    When I use the following it shows all customers.
    --FMS 6BP Automated RMA Number
    SELECT
    T1.[CardCode] + ' - ' + ltrim(str(T0.[ClgCode]))
    FROM OCLG T0
    INNER JOIN OCRD T1
    ON T0.CardCode = T1.CardCode
    ORDER BY
    T1.CardCode Desc,
    T1.[CardCode] + ' - ' + ltrim(str(T0.[ClgCode])) Desc
    When I put in WHERE T1.CardCode = $[$ 9.0.0 ] in the right place it shows nothing...
    Any ideas on how to make only the one current customer in Activity window appear in the list???
    Thanks in Advance - Zal

    Thanks Istvan and Gordon...
    Istvan - that is the same as my SQL - just do not know how to show the $[$... correctly in this forum - it always goes to that http thing.
    Gordon - tried to use your SQL but it gave me an error of "Internal Error (-1003) Occured [Message 131-183] every time I tried to click on the magnifying glass.  However, due to your last line in the SQL it gave me an idea that eventually they were OK with - namely, the highest number to the top of T0.ClgCode...
    Thanks again guys - Zal

  • Formatted Search for Delivery Date field in SO not working

    Hi All
    Can anyone help me as to why my formatted search is not working?
    I am currently using SAP B1A SP01 Patch 19.
    I have created a user query as follows:
    SELECT $ [$10.0.DATE] + 5
    When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
    Any ideas?
    Thanks and best wishes
    Gail

    HI Gail,
    If I am not mistaken you want to add days to the posting date...if that is so then try this out:
    SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
    Set The indicator to Auto Refresh when the fields change
    Nagesh

  • Formated search

    Hi all,
    In Dunning Wizard, step 5, I want to make a formated search to select only some documents. The Query I need is complicated so I tried to do Select ' '  or Select 'N' or Select 'Y' in all this examples when I do "Shift F2" nothing happens. Even with auto Refresh nothing happens. Perhaps Formated Searchs dont work on CheckBox Fields.
    How can I solve this?
    Any help will be apreciated.
    Best regards,
    José Silva
    Edited by: José Silva on Jul 16, 2010 12:45 PM

    HI SILVA,
    plz paste ur query ...
    then we update in query.
    Thanks,
    JRAJPUT

  • How to club 2 queries in one formatted search query

    Hi All,
    I have inserted a formatted search in the stock transfer for chnaging the 'From warehouse' based on series.
    I have written following query for same,
    SELECT $[$18.1.0]='08' WHERE $[OWTR.series] ='46'
    It is working Fine
    I want ot use same concept for selecting other based on other warehouse
    e.g
    SELECT $[$23.5.1]='02' WHERE $[OWTR.series] ='45'
    But I am not able to club these queries on one formatted search query can anybody help to group it in one formatted search query....
    Thanks and Regards,
    Atul Joshi
    Edited by: Atul Joshi on Dec 23, 2008 5:20 PM

    Hi Atul,
    You could define the quey like this
    SELECT
    CASE
             WHEN $[OWTR.series]='46' THEN '08'
             WHEN $[OWTR.series]='45' then '02'
    end
    from OWTR
    Regards,
    Vijay kumar
    SAP Business One Forums Team

Maybe you are looking for

  • How to stop family sharing on my apple id

    Family share is now on, which requires a credit card. I want to remove the card info and use cash gift cards from apple. Family does not allow cash nor paypal. So no family sharing for me. How do I turn it OFF.

  • Losing network connection in 10.5.4

    I have a recent problem with my internet connection. I have used the same computer (macbook) for 18 months in same address without other major problems; only change i can see have been the updates in the os X. I'm writing to these forums only because

  • How to import Pics & Video from Iphone 4 to Laptop which uses (Windows 8) //

    Attention Techies: Problem Memory on my Iphone 4 is full Id like to download or import all my pictures to my laptop or Flashdrive ( only prolem is its an HP Latop  which uses new ( Windows 8) Any HELP is appreciated. No one seems to have a clue. Its

  • Error in uploading excel sheet data into internal table

    Dear all, i am facing problem when uploading data from excel. i used KD_GET_FILENAME_ON_F4.i select the file and pass on to ALSM_EXCEL_INTO_INTERNAL_TABLE.and i get the ERROR....   Illegal type when transferring an internal table to a FORM. this is m

  • Will 1333 MHz RAM work in a 27" 2012 Intel 3.2 iMac?

    I've got a 27" 2012 Intel iMac 3.2 Ghz - got 4 Gig of Corsair DDR3 laptop RAM that appears to be compatible but it's 1333 MHz instead of 1600 MHz.  I'm assuming it would work but would drop the overall memory speed to 1333 MHz from 1600MHz.  Or shoul