kathuria
22nd July 2007, 09:43
Hi,
I am working with SSA ERP LN 6.1 FP3. I want to implement zoom feature which is exist in standard Baan. For that I am giving example of business partner. At the time of business partner transaction we are inserting value in business partner field with coma ,e.g. LOGG, it's automatic open zoom session with starting BP is LOGG. Another feature I want to implement is that, If you have entered value of BP field is LOGG and press tab button then it will show list box of all BP's which are starting with LOGG. Please reply me as soon as possible.
Regards,
Sanjay Kathuria
bigjack
22nd July 2007, 10:11
HI Sanjay,
Use the selection.filter clause in the zoom field.
for e.g.,
field.bp:
selection.filter:
query.extend.where.in.zoom("query set")
Kindly form the query set with the alike or like predicate.
Bye
NPRao
22nd July 2007, 20:41
Sanjay,
Refer to the threads for more info -
fields.autocomplete() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_fields_autocomplete)
Equivalent of Auto zoom in Baan 5 (http://www.baanboard.com/baanboard/showthread.php?t=15204&highlight=zoom)
zoom to subset (http://www.baanboard.com/baanboard/showthread.php?t=6294&highlight=zoom)
kathuria
23rd July 2007, 15:31
Hi,
I really thanks for your reply. My requirement is that if you will enter value in business partner with comma(,) in purchase order or any other transaction session of business partner, It will automatic zoom to session for enterd value.
Regards,
Sanjay Kumar
en@frrom
23rd July 2007, 16:05
In Baan V dll tccomdll0003 takes care of that functionality.
function extern tccom.dll0003.check.search.argument(
ref string seak.p(),
domain tcmcs.str8 file.p,
...)
{
DllUsage
Expl. : This DLL function executes displaysessions by means of the
shortcut <searchkey> + "," and forces the displaysession to
change order and start displaying objects in that order from
a point as specified as searchkey (also see input)
Pre : See externally declared variables
Post : See externally declared variables
Input : seak.p - searchkey
file.p - table
... - budgetcode (tipcs002) or
- projectcode (tipcs020) or
- dimensiontype (tfgld010)
Output: seak.p - key
EndDllUsage
Regards,
Eli Nager
en@frrom
23rd July 2007, 16:14
Just in case this may be helpful to you... Sometimes it is not possible to use the standard (DAL-) functionality for instance if domains are not matching, you can then implement it yourself.
Example for tccom110 (sales-to bp's):
if not isspace(bp.field) and (pos(bp.field, ",") = len(strip$(bp.field))) then
tccom.dll0003.seak = bp.field
tccom.dll0003.seak = tccom.dll0003.seak(1;len(tccom.dll0003.seak)-1)
rel.field.f = start.session(MODAL, "tccom4510m000", "tccom110.seak", "tccom110.ofbp")
endif
I also wrote once a session which does an extensive search on BP's allowing searching on all common fields of BP (like name, address, country, VAT-code, tel.nr etc etc etc), and entering search terms with option EXACT MATCH or WITHIN VALUE etc etc. In that session I rebuild my query after each input with dynamic SQL. It is a very powerful tool for searching BP's. If you are interested in such extended functionality, feel free to let me know, and I will post the sources and objects.
Kind regards,
Eli Nager
kathuria
23rd July 2007, 17:23
Hi,
I really thanks for nice idea. I am working on this dll function. In mean while can you please post your code for other fields becuase same feature I need in item and other master data.
Regards,
Sanjay