There can be occasions when you want to accept date input in an alphanumeric field in grid. As, alphanumeric field does not have calendar control so you need to validate the entry section by writing our own code. Here we are describing how to achieve same via code.
Below is the code we have written after changing event of alphanumeric date field
Subprog AM_DATASW10(VALEUR)
Variable Char VALEUR()
Global Char XDATE:XDATE = ”
Call DATEVALIDATE(VALEUR)
If VALEUR <> ” and XDATE = ”
mkstat=2
ELSE
[M:ZTEC]DATASW10(nolign-1)=xdate
Affzo [M:ZTEC]DATASW10(nolign-1)
Endif
XDATE = ”
End
#####################################################################################
subprog datevalidate(VALEUR)
global char xdate:xdate=”
local char LC2:LC2=”
xdate = format$(“DD2”,VALEUR)
LC2= format$(“DD2″,”gfdbf”)
if xdate = LC2
infbox ‘Invalid date’
xdate = ”
endif
end
####################################################################
About Us
Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.
Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3, Sage Intacct, Sage 100, Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature, Sage CRM CTI Framework.
Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.
For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.