Search found 18 matches

by Claus Nielsen
Sun May 19, 2019 1:54 pm
Forum: Scripting
Topic: Touch List Box
Replies: 3
Views: 12512

Re: Touch List Box

Tried this, and just again. The selected item is null.
by Claus Nielsen
Sat Mar 30, 2019 4:42 am
Forum: Application Development
Topic: Undo Bug?
Replies: 4
Views: 5376

Re: Undo Bug?

Having the same issue.
Undo seems to randomly undo or delete stuff. It is very annoying as redo doesn't seem to work at all.
by Claus Nielsen
Fri Mar 29, 2019 9:27 am
Forum: Scripting
Topic: Touch List Box
Replies: 3
Views: 12512

Touch List Box

Been mocking around with the Touch List Box HMI control all day now, trying to populate it from script and get the currently selected item back. After a big dive into the classes these two helpers is what I came up with. namespace Neo.ApplicationFramework.Generated { using System.Windows.Forms; usin...
by Claus Nielsen
Wed Mar 27, 2019 3:26 am
Forum: Scripting
Topic: Script user login
Replies: 1
Views: 3959

Script user login

Having a problem I'm finding really hard to debug. In a script module, I'm using Globals.Security.Login() to switch between users and switch to the application default window on successfull login. Sometimes though, I'm getting this exception "The calling thread cannot access this object because a di...
by Claus Nielsen
Tue Jul 05, 2016 8:51 am
Forum: Application Development
Topic: How to check USB keydisk is inserted?
Replies: 3
Views: 11973

Re: How to check USB keydisk is inserted?

Try

Code: Select all

// Check if a USB drive is present.
bool UsbPresent = Directory.Exists("\\FlashDrive");
// Check is a SD Card is present.
bool SDCardPresent = Directory.Exists("\\Storage Card");
Works on a T7A
by Claus Nielsen
Tue Jan 26, 2016 8:53 am
Forum: Dialog
Topic: Jump between screens depending on a variable.
Replies: 1
Views: 10854

Re: Jump between screens depending on a variable.

Try namespace Neo.ApplicationFramework.Generated { using System.Windows.Forms; using System; using System.Drawing; using Neo.ApplicationFramework.Tools; using Neo.ApplicationFramework.Common.Graphics.Logic; using Neo.ApplicationFramework.Controls; using Neo.ApplicationFramework.Interfaces; using Neo...
by Claus Nielsen
Mon Nov 09, 2015 7:40 am
Forum: Scripting
Topic: Print report on tag change
Replies: 1
Views: 7702

Re: Print report on tag change

Try with

Code: Select all

Globals.Reports.BatchReport1.Print();
by Claus Nielsen
Fri Oct 30, 2015 10:01 am
Forum: Scripting
Topic: transfer TouchComboBox Items to Listbox via script
Replies: 1
Views: 9082

Re: transfer TouchComboBox Items to Listbox via script

My experience says that you cant. Not with the "Touch" controls as you can't acces the items or add new items at runtime. (Makes them a little useless) You can do it if you use the alternative windows form controls "ComboBox" and "ListBox" also found by default in iX. Using a foreach as the controls...
by Claus Nielsen
Thu Oct 22, 2015 12:53 am
Forum: Application Development
Topic: Reports
Replies: 1
Views: 7012

Re: Reports

Found the problem.

Was querying a data logger in the excel template that did not exist (typo, lower case "l" really looks a lot like upper case "I" :-)).

Would be nice if this throws an exception instead of just write "Saving Report" and then nothing.
by Claus Nielsen
Mon Oct 19, 2015 1:18 pm
Forum: Application Development
Topic: Reports
Replies: 1
Views: 7012

Reports

Hello I'm working on a project for PC target where I need to generate a report. Untill a few days ago this worked very well. Now I'm not getting anything. On the screen I'm getting the "Saving Report" message but the report does not exist in the target folder. Seems like I've been trying everything....