Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) Wndows 7 (Read 2782 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Wndows 7
Reply #15 - Sep 6th, 2012 at 5:39pm
Print Post Print Post  
Yes, there is some code in the On App Open event (below).

I don't know what you mean by "open in Sesame runtime".  I just click on the Preview button when i'm working in the .dsr file.

//Set any defaults and do any checks when the application opens

//Set the variables
Var vTree as INT
var vTreeStatus as Int
var n as int

// Turn on the appropriate menu.  Note that the Basic User has access to the Basic User Menu, the Administrators have access to the MASTER Menu and all else should go to the Presidents Menu.
// Add any new users to the FIRST ELSE statement below!!!

If @Group="Temporary"
{
     vTree = @SelectTreeItem(@Application + "!Forms!Add Data!Menu!Temp employee time")
     SetDefaultTab("Add Data basic user Menu")
}      



If @Group="Basic User" or @Group="Mill Room" OR @GROUP="INSPECTION" or @Group="SETUP"
{
     vTree = @SelectTreeItem(@Application + "!Forms!Add Data!Menu!BASIC USER MENU")
     SetDefaultTab("Add Data basic user Menu")
}


If @Group="President" OR @GROUP="DIM AUDITOR" OR @group="MACHINE" OR @GROUP="PERSONNEL" OR @GROUP="SUPERVISOR" OR @GROUP="MANUFACTURING1" OR @GROUP="MANUFACTURING2" OR @GROUP="PRODUCTION" OR @GROUP="QUALITY" OR @GROUP="QUALITY SUPERVISOR"
     OR @GROUP="TECHNICIAN" OR @GROUP="INSIDE SALES" OR @GROUP="ACCOUNTING" OR @GROUP="SALES_SUPPORT" OR @GROUP="SALES" OR @GROUP="SALES_2" OR @GROUP="DATA ENTRY" OR @GROUP="PURCHASING" or @Group="SHIPPING"
{
     vTree = @SelectTreeItem(@Application + "!Forms!Add Data!Menu!PRESIDENT MENU")
     SetDefaultTab("Add Data Main Menu")
}


if @Group="MASTER"
{
     vTree = @SelectTreeItem(@Application + "!Forms!Add Data!Menu!MAIN MENU")
     SetDefaultTab("Add Data Main Menu")
}

//Close Tree Windows except for Administrator
//vTreeStatus = @CloseCommandArea()
//
//If vTreeStatus = 0 and (@UserID<>"sesame" or @UserId<>"DIACOM")
//{
     CloseCommandArea(1)
//}
//If @UserID="sesame" or @UserID="DIACOM"
//{
//      CloseCommandArea(0)
//}

// Change Tab Titles on Default Menus (Command Lines are CASE sensitive)
AddToTranslationTable("Add Data MAIN MENU", "Master Menu")
AddToTranslationTable("Add Data BASIC USER MENU", "User Main Menu")
AddToTranslationTable("Add Data PRESIDENT MENU", "Main Menu")
AddToTranslationTable("Add Data TSForms", "Quality Document Center")
AddToTranslationTable("Search/Update NEWPROCS", "Work Instructions")
AddToTranslationTable("Add Data Training Program", "Training Programs")
AddToTranslationTable("Search/Update AVL", "Approved Supplier List")
AddToTranslationTable("Search/Update NEWMOLD", "Mold Production Info")
AddToTranslationTable("Search/Update TRIMMING", "Trim Production Info")
AddToTranslationTable("Search/Update PSUMMARY", "Prefrom Production Info")
AddToTranslationTable("Search/Update INSPECT", "Inspection Production Info")
AddToTranslationTable("Add Data AVL", "Approved Supplier List")
AddToTranslationTable("Add Data NEWMOLD", "ADD - Mold Production Info")
AddToTranslationTable("Add Data TRIMMING", "ADD - Trim Production Info")
AddToTranslationTable("Add Data PSUMMARY", "ADD - Prefrom Production Info")
AddToTranslationTable("Add Data INSPECT", "ADD - Inspection Production Info")
AddToTranslationTable("Search/Update PROSAM", "Sample Orders")
AddToTranslationTable("Add Data PROSAM", "ADD - Sample Orders")
AddToTranslationTable("Search/Update WI2", "Work Instructions")
AddToTranslationTable("Add Data WI2", "ADD - Work Instructions")

//TO CLEAR HTML FILES
n=@shell("del C:\sesame2\*.htm")
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Wndows 7
Reply #16 - Sep 6th, 2012 at 5:43pm
Print Post Print Post  
Better yet, do you have anything in the "On Draw" event of a Startup Form (while also having something in the Global Code of that same form)?
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Wndows 7
Reply #17 - Sep 6th, 2012 at 5:49pm
Print Post Print Post  
As Carl asked: do you have anything in the "On Draw" event of a Startup Form (while also having something in the Global Code of that same form)?

Have you tried running it without that code?

I know that you are using preview. I am asking you to try running it in sesame.exe as opposed to sdesigner.exe as a test. Sesame.exe can open .dsr files if you specify the .dsr file on the command line.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Dietrich
Member
*
Offline



Posts: 2
Joined: Dec 6th, 2012
Re: Wndows 7
Reply #18 - Dec 6th, 2012 at 3:28pm
Print Post Print Post  
Hi everyone!

It's my first time here and I've got also a problem with Windows 7. So I drag out this thread again.

My problem is, that Windows 7 usually don't allows to have personal data under c:\programme\sesame\data. They should be under my personal documents. Now Windows creates a "virtualstore" and saves all my data there. I already turned off the usage of the "virtualstore" and tryed to change the access privileges, but @xlookup and my lists won't work  Sad .
So is it possible to work with sesame 1.1.5 without having the data in c:\programme\sesame\data, or is there a another solution for this problem.
Thanks a lot for your help and I'm sorry for my poor English!

Best regards from Germany

Dietrich
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Wndows 7
Reply #19 - Dec 6th, 2012 at 5:46pm
Print Post Print Post  
Hello Dietrich,

The Sesame data files can be placed in any directory you want on your computer as long as Sesame has Read and Write permissions to them there. What you can do is create another directory on your system that is purely for the Sesame Data files, such as C:\Users\UserName\Documents\Sesame, Make sure that you as a user have Read and Write permissions to that folder.

Then in the c:\programme\sesame folder you will find a file named rootdirs.ini, open that file in notepad and add a new line to the beginning of the file that is that directory path, ex: "C:\Users\UserName\Documents\Sesame" without the quotes.

Then modify your XLookup programming so that the DB file path includes the full path to that directory, ex "C:\Users\UserName\Documents\Sesame\MyApplication.db"

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Wndows 7
Reply #20 - Dec 6th, 2012 at 8:27pm
Print Post Print Post  
It was a while back but I had that problem with Sdesigner and it turned out that I had to slow the mouse down, once I did that no more problems. May not be your problem but worth a look see !!!  Wink
  
Back to top
 
IP Logged
 
Dietrich
Member
*
Offline



Posts: 2
Joined: Dec 6th, 2012
Re: Wndows 7
Reply #21 - Dec 7th, 2012 at 1:34pm
Print Post Print Post  
Hello Ray,

thanks a lot for your help. I'll try that.

Otherwise this solution is very inconvenient, because I often use my data on different computers. Isn't there another data-directory in windows 7, which is equal on every pc and accepted by sesame?

Dietrich
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Wndows 7
Reply #22 - Dec 7th, 2012 at 2:53pm
Print Post Print Post  
Hello Dietrich,

You can create a data directory anywhere you would like on your systems and make it the same path on all the computers. It could be C:\MySesameFiles\ for example

By default Sesame installs into C:\Sesame2 directory so the default data directory would be C:\Sesame2\Data which would be unaffected by Window's Virtual Store functions.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print