usage of vfp code in the back end of silverswitch applications n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Usage of VFP code in the back-end of Silverswitch applications PowerPoint Presentation
Download Presentation
Usage of VFP code in the back-end of Silverswitch applications

Loading in 2 Seconds...

play fullscreen
1 / 14

Usage of VFP code in the back-end of Silverswitch applications - PowerPoint PPT Presentation


  • 87 Views
  • Uploaded on

Usage of VFP code in the back-end of Silverswitch applications. Venelina Jordanova Venelina@VandU.eu. Uwe Habermann Uwe@VandU.eu. VFP COM server. Can be used in any Silverlight application Browser At the client side OOB with elevated trust At the server side At the client side

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Usage of VFP code in the back-end of Silverswitch applications' - dylan-potter


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
usage of vfp code in the back end of silverswitch applications
Usage of VFP code in the back-end of Silverswitchapplications

VenelinaJordanova

Venelina@VandU.eu

Uwe Habermann

Uwe@VandU.eu

vfp com server
VFP COM server
  • Can be used in any Silverlight application
    • Browser
      • At the client side
    • OOB with elevated trust
      • At the server side
      • At the client side
  • Silverlight client executes method in VFP COM server
vfp com server1
VFP COM server
  • Execution of FXP
  • Execution of APP
  • Advantages:
    • COM server need not be re-registered
    • IIS need not be restarted
vfp com server2
VFP COM server
  • Data access
    • Cursoradapter
      • VFP database
      • SQL database
      • All ODBC data sources
        • MySQL
        • Oracle
        • DB2
  • Set-up database to use
vfp com server3
VFP COM server
  • Business logic
    • Everything, but nothing visible(no user interface)
vfp com server4
VFP COM server
  • DEFINE CLASS COMTastrade AS SESSION OLEPUBLIC
  • Build as “Multi-threaded COM server (dll)”
  • VFP9.exe must be started with Administrator rights explicitly!
vfp com server5
VFP COM server

DEFINE CLASS COMTastrade AS SESSION OLEPUBLIC

PROCEDURE GetCustomers()

USE Customer IN 0 SHARED

CURSORTOXML("Customer", "lcXML", 1, 2, 0, "1")

USE IN Customer

RETURN lcXML

use vfp com server at the server side
Use VFP COM serverattheserverside
  • “early binding” in Visual Studio
  • COM server must work at development time
  • Reference to COM server must be added to the server project
call a vfp function
Call a VFP function

private void xpgfPageFramePage1cmdProper_Click(

object sender, RoutedEventArgs e)

{

VfxSystemDomainContext context =

new VfxSystemDomainContext();

EventHandler handler =

new EventHandler(ExecuteVFPCommand_Completed);

var ExecuteVFPCommand =

context.ExecuteCommandService("proper",

xpgfPageFramePage1txtCustomername.Text.ToString(),

VfxAppObject.CurrentConnectionInfo.ClientName);

ExecuteVFPCommand.Completed += handler;

}

call a vfp function1
Call a VFP function

void ExecuteVFPCommand_Completed(

object sender, EventArgs e)

{

var result = sender as InvokeOperation<string>;

VfxCommandServiceResultBase ValueResult = (VfxCommandServiceResultBase)VfxSerializer.

DeserializeObject<VfxCommandServiceResultBase>

(result.Value);

lblResult.Text = ValueResult.CommandServiceInfo.result;

}

action button
Action Button
  • Progammatical call of COM server method, procedure or new instanceof an object from the client side
  • Call from Button
  • Demo
action button1
Action Button
  • Pass multiple parameters
  • Pass data as parameter