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
Similar Messages
-
Hi Experts,
it is possible to create a formatted search on a checkbox?
I tried through B1 client but i wasn't able.
I tried creating the formatted search through DI: created successfully but not working.
I need to inherit payblock flag from BP to purchase invoice when BP code changes..
Is there a way?
Thanks
Paolo
Edited by: Paolo Fornari on May 24, 2011 12:58 PMHi Paolo,
Formatted search will not be available on checkbox. You need to find some other work around to reach your goal.
Thanks,
Gordon -
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. -
Formatted Search icon is not displaying for the UDF
I have fifteen UDF's in the Marketing document and I have applied formatted search on each of the fifteen.
But for one paticular UDF formatted search icon is not displaying even though the formatted search is active on the field but it is working fine for other field of same kind in same scenario.
Please help me.
Regards,
Awadhesh
Edited by: Awadhesh Kumar Pandey on Feb 9, 2009 5:58 PMHi
Try this
Go to View in the menu bar > Indicator Display >User Defined Values .
Hope this will resolve your issue
Thank you
Bishal -
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 PMHI SILVA,
plz paste ur query ...
then we update in query.
Thanks,
JRAJPUT -
Formatted Search to do calculation
Hi all,
I have written an SQL query for my formatted search that reads
select $|$170.12.0|
This is to return the Total Amount Due in incoming payment form. But when I applied this to one of the UDF I created, it returns an error "Internal error (3006) occurred [message 131-183]"
As long as it can return the total amount due, I can use it for calculation when my SQL query is developed.
Can anyone please enlighten me?
Thank you very much.
Regards.Hi Kevin,
I just seen your updated Thread.
$[$-12.66.number]
If you found that than it is Very good, But still I would really like to tell you.
12 is 'Item', 66 is 'variable', for that field and number is to take only numeric value, i.e not to take currency sign.
Cheer's
Have a good day.
Regards
Ashutosh T -
hi,
how to track particular query applied for formatted search.and where it applied.
pls give solution asap.
regards
vishalHi,
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 -
Formatted Search inside a Price List
Hi,
Is it possible to put a formatted search inside a Price List which will auto-update?
I created a query which looks at Special Prices tables OSPP and put an FMS in Price List 10. However, this FMS does not auto-update - it only updates when I click the "magnifying glass" of the formatted search. It would be cumbersome to click all items one-by-one.
Thanks,
Ajay AudichHi...
I understand that your formatted search is applied to the price column in your list of Charges 10. You've proven that their execution is made when leaving the modified column "Manual"? ..
This column can fill it with one and then clicking on the column header.
Best regards, -
Is it possible to fetch matrix column through formatted search in UDF?
HI,
Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
SELECT $[$38.11.number]
does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
thanks and regards,
BinitaDavid,
I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
this query gives correct result when assigning to matrix column.
when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
Please guide further,
thanks in advance,
Binita
Edited by: Binita Joshi on Jun 5, 2008 2:45 PM
even
SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
is not working. no clues. -
Formatted search to get the cost center name
Dear experts, I need to display the cost centre name/description on goods issue via formatted search. i have set the cost centre as " Display distribution rule in a unified column".
Dimension 1
01 Abc
02 xyz
Dimension 2
001 aaa
002 bbb
Dimension 3
0001 jkl
0002 mno
System shows only the code on goods issuance screen like "01,001,0001 " while i need to display "Abc,aaa,jkl" . Is it possible via formatted search
or any other way?
Regards,
AwaisHi,
Create on UDF at Row Level in Good Issue form beside distribution rule column
& apply below FMS to it
SELECT T0.[PrcName] FROM OPRC T0 WHERE T0.[PrcCode] =(select $[$13.10001018.0])
auto-refresh it on selection of distribution rule
regards,
Raviraj -
Hi There,
I was wondering if anyone could assist on the following formatted search related query.
On the Bill of Materials screen I have added a UDF to the Header where I will do some calculations. But before that I have to be able to select the OITT.Code (BOM Code) and be able to use it in my query.
I know that in Marketing documents I can use $[$38.1.0] to get the Item code on line level, but how do I get it on Headers?
If anyone can assist it would be greatly appreciated.
Kind Regards,
Wynand Cilliers.For the Header level fields the Column parameter does not apply. Therefore it would be
$[$Field.0.Type]
For OITT.Code, that is displayed on the screen as Product No. use
$[$4.0.0] -
Formatted search - how to get table or form name
Hello,
I'm trying to create a generic query for modifying "Journal Remark" on different documents (Goods receipt, invoices ...) thru a formatted search
My problem is that I want to customize the "remark" according to the current document.
is there a way to get the table name or the form number in a query ? or should I to create a different query for each document ?
RegardsHi....
If you activate the System Information from Menu Bar> View> System Information. Then when you move the cusrsor from any of the document you get some variable values which displays the ID of forms colums and rows.
You can get this information for your FMS. There is no need to create no. of FMS for each Document. Just take the variables into the FMS and apply to the same ID documents.....
Regards,
Rahul -
Hi Experts
I would like to get some help on a formatted search I wish to created which will show the payment terms of a BP in a UDF on the Sales Order form.
I have created a UDF and applied a formatted search to it which only brings in the record key of the payment terms:
SELECT T0.[GroupNum] FROM OCRD T0 WHERE T0.[CardCode] = $[$4.1.0]
Ideally I wish it to actually show me the Payment Group name from the OCTG table.
Thanks in advance for your help.
Thanks
JonHi Jonny......
You should use this query.......
SELECT T1.[PymntGroup] FROM OCRD T0 INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum
WHERE T0.[CardCode] =$[$4.0.0]
apppply this to payment terms UDF in sales order.
Regards,
Best Rahul -
Formatted Search Numbering Wildcards
I've seen lots of numbers used in formatted search queries on these forums, and it looks like they are used as wildcards (as mentioned below) so that a single query can be used for all marketing documents for instance. Is there a list somewhere that shows which numbers correspond to which tables and fields?
"Note!!! You can replace the $[ORDR.CARDCODE] string (in the query) with the $[$-4.0.0] string, and the $[ORDR.NUMATCARD] string with $[$-14.0.0] string. Using these alternative strings will enable SAP Business One users to activate this query in other marketing documents, by changing only the name of the related table."
My specific question involves a UDF. I have a row level UDF in my marketing documents called "OrderType", which lets us specify if it is a Normal order, Sample order or a Service order. Depending on which is selected, my formatted search automatically changes the G/L Account field and COGS Account field on the same row. Can I use a single query for all marketing documents instead of having one for each table? Below is my query that is currently functional for sales orders.
SELECT
CASE $[RDR1.U_OrderType]
WHEN 'Normal' THEN 5000
WHEN 'Sample' THEN 6125
WHEN 'Service' THEN 5803
END $[RDR1.U_OrderType]
FROM RDR1 FOR BROWSEAs long as you do not include any table names in your query, it applies to all your marketing documnets. You can find this info by View - System Information.
Actually, you should create another UDF in the item master. The UDF in all your Marketing Row levels will get this info.
Your query will looks like:
SELECT
CASE $[$38.U_OrderType.0]
WHEN 'Normal' THEN 5000
WHEN 'Sample' THEN 6125
WHEN 'Service' THEN 5803
END -
Retrieving the value using formatted search
Hi everyone. I have a question regarding on how I can get the value of the user-defined field in the title of a marketing document. I would like to get the value using formatted search and sql query.
Here's the format I am currently using.
$[$ <Item>.<Pane>.<Variable>]
Is my format correct? Thanks.
Regards,
OmannHi Omann,
You can refer to fields in an entry screen using the syntax
$[Table name.Field name]
The table name is the name of the table belonging to the entry screen, for example, OINV for the A/R invoice entry screen.
You can also use the fieldu2019s item number and fieldu2019s column number to refer to a field on the entry screen. By doing this, the query applies to all document entry screens. The syntax is then
$[$Fieldu2019s item number.Fieldu2019s column number.NUMBER/CURRENCY/DATE/0]
The system is able to uniquely identify each field of a document using the fieldu2019s index number and fieldu2019s column number. If you have activated the debug information under View Debug Information, the system displays the fieldu2019s item number and the fieldu2019s column number in the status bar.
You use the NUMBER parameter if the field concerned contains an amount and a currency key, and you want to extract the amount only.
You use the CURRENCY parameter if the field concerned contains an amount and a currency key, and you want to extract only the currency key.
You use the DATE parameter if the field concerned is a date field and you want to use it for calculations.
Regards, Yatsea
Maybe you are looking for
-
hi gurus in bdc there r 100 records , while processingit , if system crashes after 15th record . tell me what happend , how many records r uploaded , how we start the remaining explain me in boath calltrandaction & session method.
-
Get last logon + user name
Hi Everyone first on all where is the powershell forum ? I need help with powershell, we have file ( Excel -CSV ) that contains names of 70 computers name , I want to know which user did logon and who is now is login. NOTE : I succeed to get the
-
Monitoring PL/SQL Stored Procedure
Hi, I would like to know what can I do to monitoring a procedure, becouse when I execute it , the procedure never ends, I have tried to debug it but happen the same thing, never ends. This procedure have been running without troubles ever. Oracle Dat
-
Howto when i have very very large double array
I have code my program about document retrieval. I create double array in size [10000]x[8000] for keep value for calculte someting in only memory (about metrix operation). I have set parameter to heap memory size at 1024m but it not enough, it has ex
-
Not all Google imap messages synching with my Apple mail
I've been using my MBP's Apple mail to access my Google imap mail for 3 or 4 years. No problems until recently when, in Apple mail, I did searches for old e-mail messages and couldn't find them, but when I accessed a web browser to access my Google