Login | Sign Up
 
  Search  



Site Map
 
HomeMy PagesMy ProfileMy MessagesMy FriendsMore MembersMy GroupsView GroupMore GroupsMy PurchasesAppsS3 AppsS3 FinancialsS3 HR/PayrollS3 ProcurementS3 Supply ChainM3 AppsEnterprise Asset Management Manufacturing OperationsFinancialsBPM/EPM/LBIDesign StudioEnterprise Reporting (Crystal)Microsoft Add-InsProcessFlow / BCISmart NotificationSmart OfficeTechDatabase ERDsData DictionaryApplication SecurityDevelopmentLawson 4GL Quick ReferenceDesign StudioDatabaseDB2OracleSQL ServerEnvironmentiSeriesUnixAIXWindowsLogan/IOSLSF 9M3 System Foundation PortalERDsDocumentationTips & TricksForumsJobsLawsonGuruLawsonGuru LetterLawsonGuru BlogWorthwhile ReadingLawson in the NewsUser RegistrationStoreStore AdminMy PurchasesStore FAQsSearchEngage Publish Search IndexerSearch ResultsSearch TipsArticlesAboutJohnContentUser ManagerBulk User ManagerBackupsMonitorVenexusVenexus Web ControlsViewArticleSignUp!LoginAdminSite SettingsTabsSecurity RolesUser AccountsVendorsSite LogBulk EmailFile ManagerRecycle BinLog ViewerSkinsLanguagesSite WizardAuthenticationSolutionsPageBlaster

Top 10 Posters
 
Tips on Using the LawsonGuru ForumsMaximize

LawsonGuru ForumsMinimize
Design Studio clear fields on AP20.1
Last Post 07/28/2008 01:10 PM by wilcoxmad. 6 Replies.
Printer Friendly
Sort:
PrevPrevNextNext
To join the discussion you need to register first. (Registration is free!) If you are already a registered user please login to join the discussion.
AuthorMessages
TracyOUser is Offline
Private
Private
Advanced Member (57 points)
Advanced Member
Posts:32
TracyO

Send Message: Send Private Message

--
07/16/2008 04:06 PM  

I have created a Design Studio form for our AP20.1 screen where I have moved 3 user fields to the main tab.  I have also made these fields be required based on the account number.  I know want to find a way to clear of  just the user fields, as we do not want to clear the co/au/account because they are always the same.  It looks like everytime after you do an add or change on this screen the cursor postions itself on the company field.  I am thinking I need to do an OnBlur function, so as soon as they move off this field to enter more lines the old user field informataion is cleared.  Has anyone done something similiar?  Do you think the OnBlur is the way to proceed or have any other suggestions?

Thanks

Tracy

ConsultDavidWUser is Offline
Private
Private
Veteran Member (346 points)
Veteran Member
Posts:173
ConsultDavidW

Send Message: Send Private Message

--
07/23/2008 06:08 AM  
You could also clear the fields - lawForm.setFormValue("text11","") - after you perform your Add or Change.
David Williams
Senior Consultant
www.ConsultDavidW.com
David@ConsultDavidW.com
TracyOUser is Offline
Private
Private
Advanced Member (57 points)
Advanced Member
Posts:32
TracyO

Send Message: Send Private Message

--
07/24/2008 10:41 AM  

David

Would that be the OnAfterTransaction function?  I have not had much time to work with that one, but when I have tried it in the past it ignored my add or change and did the fucntions no matter what FC I used. 

wilcoxmadUser is Offline
Private
Private
Basic Member (47 points)
Basic Member
Posts:27
wilcoxmad

Send Message: Send Private Message

--
07/24/2008 06:56 PM  

I had problems with FC too - this worked for me.

function FORM_OnBeforeTransaction(fc)
{
return ( fc == "A" ? initF() : true );
}

function initF()
{

//whatever you need to do here

}

OR try this...

 

function FORM_OnAfterTransaction (data)
{

      if (data.selectSingleNode("//_f1").text == "A")

          {

            //whatever you need to do here

           }

}

TracyOUser is Offline
Private
Private
Advanced Member (57 points)
Advanced Member
Posts:32
TracyO

Send Message: Send Private Message

--
07/25/2008 08:44 AM  

I will try those.

Thanks

TracyOUser is Offline
Private
Private
Advanced Member (57 points)
Advanced Member
Posts:32
TracyO

Send Message: Send Private Message

--
07/28/2008 11:23 AM  

I have tried the OnAFterTransaction as below but both of them are triggering BEFORE the invoice is actually added.  The box pops up, then when I click on the okay, it then adds the invoice.  Any other suggestions?

/*function FORM_OnAfterTransaction (data)
{

     if (data.selectSingleNode("//_f1").text == "A")

          {
           // for (var i = 0; i <= 99; i++) ;
     window.alert ("This is where it is")
           // lawForm.setFormValue("text77","",i);
           }

}

*/

 

Also tried:
 
function FORM_OnAfterTransaction(val)
{

if(val.selectSingleNode("//_f1").text=="A" && lawForm.getMessage()=="Add Complete - Continue")
{
window.alert ("This is where it is")
}
return true;

wilcoxmadUser is Offline
Private
Private
Basic Member (47 points)
Basic Member
Posts:27
wilcoxmad

Send Message: Send Private Message

--
07/28/2008 01:10 PM  

Tracy, I had very similar issue on HR11. I wanted to call PA12(Emergency Contact Info) after the employee is added. This worked for me. I assume you have checked the exact message being returned? The compare is of course case sensitive.

function FORM_OnAfterTransaction (data)
{
 if (formState.agsError) return;
 
 //Check error message for :Add complete" - exit if not
 sMsg=lawForm.getMessage();
 sMsg = sMsg.substr(0,5);

 if (sMsg != "Add c") return;

 if (data.selectSingleNode("//_f1").text == "A")
  {
          callpa12();                           

   }
}

Hope that helps!

To join the discussion you need to register first. (Registration is free!) If you are already a registered user please login to join the discussion.

Active Forums 4.1
Forum Postings...Minimize
Two Questions:
07/02/2009 10:17 PM
Thanks to anyone thhat can anser two questions I&#

RE: Lawson Support - Staffing Question
07/02/2009 09:02 PM
The documentation library from Lawson, the support

RE: User 'lawson' SSO Password
07/02/2009 02:26 PM
Matt - thank you for the information. I'll change

ed810 not pulling tax
07/02/2009 12:40 PM
we are currently 8.03 sitting on 9.0lsf and use Gh

RE: Crystal for Financial Reporting
07/02/2009 11:17 AM
However, it is only for summary accounting units,

RE: Sarbox Compliance
07/02/2009 08:40 AM
John, We piloted the security dashboard with AV

RE: Work file paths
07/01/2009 05:04 PM
"We have deleted the job going to the wrong direct

RE: CSV Export
07/01/2009 02:00 PM
Are you using portal? If so run the wh130 to crea

RE: Override datasource doesn't appear to work
07/01/2009 01:53 PM
Do you suppose Lawson knows it doesn't work? I'm

RE: Need prior quarter year to date
07/01/2009 01:47 PM
If you are creating a Crystal Report, you can run

Home  |  Tips & Tricks  |  Forums  |  Jobs  |  Store  |  About