Home
  What's News
    InfoJet Service
    InfoJet POM
    InfoJet Rules
    Overview
  ImportParameter
  BindingTest
    InfoJet EditPart
    Evaluate
  Download
  Java
    Buy
  Pricing
  How to Buy
    Support
  Contact Us
InfoJetSoft.Rules.ImportParameter
The InfoJetSoft.Rules.ImportParameter rule supports assigning a value to the target XML form field.
Assigning a new Guid
As the following, a new Guid will be generated and assigned to the target XML form field while a new form opened:
    Event:OnNew;
    Source:NewGuid;
Assigning a value comes with ASP.NET Web Context
As the following, the value of the HTTP request parameter "Id" will be assigned to the target XML form field while a new form created:
    Event:OnNew;
    SourceScope:Request;
    SourceKey:Id;
Event
The Event indicates what time is the rule executed.
Event: What time to be executed:
OnNew InfoJetService.BuildFormByTemplate() is called.
OnOpen InfoJetService.BuildFormByXml() is called.
OnPostback InfoJetService.UpdateForm() and ReloadForm() is called.
The Events can be combined, like "Event:OnNew,OnOpen,OnPostback;".
SourceScope
The SourceScope indicates the scope in which to find the SourceKey.
SourceScope: How to get the SourceKey value:
Header HttpContext.Current.Request.Headers[SourceKey]
QueryString HttpContext.Current.Request.QueryString[SourceKey]
Form HttpContext.Current.Request.Form[SourceKey]
Cookies HttpContext.Current.Request.Cookies[SourceKey].Value
ServerVariables HttpContext.Current.Request.ServerVariables[SourceKey]
Request HttpContext.Current.Request[SourceKey]
Context HttpContext.Current.Items[SourceKey]
Session HttpContext.Current.Session[SourceKey]
Application HttpContext.Current.Application[SourceKey]

Copyright © 2005 - 2012 InfoJetSoft all rights reserved