Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add /Remove Guest Check Information Line via Simphony Extensibility

Status
Not open for further replies.

Dananjaya

Programmer
Jan 17, 2020
39
OM
Dear All,

I have one requirement to insert Guest Check Header information lines to currently open check via Simphony 2 Extensibility.

Will any one be able to give me a hint how and where I can code the DLL for that since Simphony Extensibility document () is quite confusing when it come to more deeper details.

Thank you.
 
Nope.. I realized that injecting "Customer Information Line" either by using Extensibility or SIM having issue when it need to change in some point Since Customer Information Lines cannot be removed once added. So I went through different approach via regular guest check header. Only issue was it's not visible at the Check detail area on the screen. But when printing, it does the purpose. Data manipulation can be done at the DLL level and inserting to check is from SIM level.
 
if you can use SIM ,then checkout SaveChkInfo,ClearChkInfo and @ChkInfoKey.
If you are going to use dotnet extensibility application, then you can save them as ExtensibilityDataInfo to the check and mark them to print
 
@codexPOSed
Thank you very much for suggestion. But I'm bit confused while dealing with ExtensibilityDataInfo since the initializing constructor with correct information is not clear in the documentation. Basically, one of the constructors take parameter as DbExtensibilityDataDetail which does not have any information in Extensibility documentation.

Could you please share piece of code how I can use ExtensibilityDataInfo for this and other purposes.

Thank you
 
assuming that you want to save a serialized object as EDI, you can:
Code:
var myObject = new MyObject() {Id=123, Amt = 12.00};
var myJson = JsonConvert.SerializeObject(myObject);
var edi = new ExtensibilityDataInfo("String you want to display/print", "Hidden Key To Retrieve later", myJson);
<ObjectToSaveTheEDI>.AddExtensibilityData(edi);

cheers
 
@codexPOSed
Thank you very much for the information. This information is helpful.

Though it's not related to the topic, could you please guide me to the correct direction where I can find more about OpsCommand & OpsProcessor since passing parameters like Numbers, Arguments , Text , etc are not specifically categorized for each command in Simphony SIM documentation or extensibility documentation.
As I know, they are more useful commands ( OpsCommand, OpsProcessor ), but successfully passing correct values in correct format is a huge problem. Any though would be much appreciated.

Thank you
 
yeah, i know what you mean by the OpsCommand. here is the trick i use. In EMC page design, create a key of what you want to use with OpsCommand and copy it, and paste in a text editor. Look for this section in the XML:
XML:
  < mouic:Button OpsCommand = "SimInquire" OpsCommandText = "" OpsCommandIndex = "0" OpsCommandArguments = "Blah" Style = "{av:DynamicResource MicrosCobalt}" Width = "Auto" Height = "Auto" Focusable = "False" av: InputMethod.IsInputMethodEnabled = "True" av: Grid.Column = "0" av: Grid.Row = "0" av: Grid.ColumnSpan = "9" av: Grid.RowSpan = "4" av: AutomationProperties.AutomationId = "micros.generated.SimInquire.0.0..Bkah" >

there you will find what properties you will need to fill out for that specific commandtype enum. Basically any string that's not empty or any int that's not 0, is probably required.

Enjoy
 
@codexPOSed
Wonderful !... Thank you very much for kind response.

BR.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top