Register
Login
 
 Search 
Site Map
 
HomeAppsS3 AppsS3 FinancialsS3 HR/PayrollS3 Supply ChainS3 ProcurementM3 AppsEnterprise Asset Management Manufacturing OperationsFinancialsBPM/EPM/LBIDesign StudioEnterprise Reporting (Crystal)Microsoft Add-InsProcessFlow / BCISmart NotificationTechDatabase 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 TipsArticle ViewerJohnContentUser ManagerBackupsVenexusVenexus Web ControlsAboutAdminSite SettingsTabsSecurity RolesUser AccountsVendorsSite LogBulk EmailFile ManagerRecycle BinLog ViewerSkinsLanguagesSite WizardAuthenticationSolutions
Top 10 Posters
 
Share:email email|delicious.com delicious.com|digg digg|technorati technorati|reddit reddit|stumbleupon stumbleupon|google bookmarks google bookmarks|yahoo bookmarks yahoo bookmarks|slashdot slashdot|live live|ma.gnolia ma.gnolia
Tips on Using the LawsonGuru ForumsMaximize

LawsonGuru ForumsMinimize
Subject: Design Studio clear fields on AP20.1
Prev Next
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
TracyUser is Offline
Frequent Member
Posts:14

7/16/2008 3: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
Frequent Member
Posts:35

7/23/2008 5:08 AM 
You could also clear the fields - lawForm.setFormValue("text11","") - after you perform your Add or Change.

David Williams
Sr. Consultant, JGI
TracyUser is Offline
Frequent Member
Posts:14

7/24/2008 9: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
Frequent Member
Posts:17

7/24/2008 5: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

           }

}

TracyUser is Offline
Frequent Member
Posts:14

7/25/2008 7:44 AM 

I will try those.

Thanks

TracyUser is Offline
Frequent Member
Posts:14

7/28/2008 10: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
Frequent Member
Posts:17

7/28/2008 12: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.
Forums > Lawson BPM (Business Process Management) > Design Studio > Design Studio clear fields on AP20.1



ActiveForums 3.7
Forum Postings...Minimize
S3 HR/Payroll/Benefits
PR39 and Benefit Deductions
8/28/2008 4:43 AM
I had a user enter about 300 o...
S3 HR/Payroll/Benefits
RE: PA100 and Effective Dates
8/28/2008 4:17 AM
If you run your PA100 and ente...
S3 Customization/Development
Lawson HCM in different language
8/28/2008 1:09 AM
Hi, I'm a complete newcomer t...
S3 Systems Administration
RE: Updating LSF Core Technology 9.0.0.3 - 9.0.0.5
8/27/2008 7:04 PM
The batch mode is much better,...
S3 HR/Payroll/Benefits
RE: PA100 and Effective Dates
8/27/2008 3:27 PM
Thanks, Stephanie.  What ...
S3 HR/Payroll/Benefits
RE: PA100 and Effective Dates
8/27/2008 2:38 PM
We would handle that situation...
S3 HR/Payroll/Benefits
RE: PA100 and Effective Dates
8/27/2008 2:19 PM
How do you handle a situation ...
S3 HR/Payroll/Benefits
RE: PA100 and Effective Dates
8/27/2008 2:04 PM
The PA100 will process pending...
S3 Systems Administration
Online screens hanging
8/27/2008 1:59 PM
All online screens are hanging...
S3 HR/Payroll/Benefits
PA100 and Effective Dates
8/27/2008 1:54 PM
I need feedback from my fellow...
S3 Security
RE: MSS Direct Reports Security Rule
8/26/2008 4:43 PM
Thanks, John. This works out g...
S3 Systems Administration
RE: Updating LSF Core Technology 9.0.0.3 - 9.0.0.5
8/26/2008 1:43 PM
Hi Dana, We never actually ma...
S3 Systems Administration
RE: Updating LSF Core Technology 9.0.0.3 - 9.0.0.5
8/26/2008 1:07 PM
Thanks Ben, I appreciate it. ...
LWSN Business Practices
RE: Lawson CUE 2010
8/26/2008 12:51 PM
I heard back from Lawson and C...
S3 Supply Chain
RE: ABC classification
8/26/2008 12:12 PM
In update mode, IC151 will ass...
Home  |  Forums  |  Jobs  |  Store  |  About