Quantcast
Channel: Home of ActiveVFP - Foxpro on the World Wide Web
Viewing all 1109 articles
Browse latest View live

New Post: Learning : Foxpro into Web

$
0
0
Your site looks really good - good work!

New Post: Learning : Foxpro into Web

$
0
0
Thanks Claudefox. I have been looking for foxpro online for quite sometime. I never thought this works for me, although it is a rewrite kind of code, but it does provide demo for download, what a great tool afterall.

How long have you been involved Activevfp, claudefox?

New Post: Entering parent and one or more child records on same page

$
0
0
Hello, I'm working on an AVFP site in which a user needs to enter (or edit) a single parent/header record along with one or more child/detail records on the same page. I'm struggling a bit with how to best make this happen, since it's a bit more complicated than just entering a single record at a time (which I've already got a good handle on from looking at Claude's examples). Can anyone who has done this give me some guidance?

New Post: Entering parent and one or more child records on same page

$
0
0
Sounds like it should be similar to the new Master-Detail example. Have you looked at that? Just change the display fields to Text boxes and you should be able to take those values and use FoxPro as you normally would to update, append, etc. Once you've got the values it's all regular FoxPro.

New Post: Entering parent and one or more child records on same page

$
0
0
If you're talking about grabbing the entered variables out of a grid that have been submitted as a Form, then yes you may have to get a little tricky. What I've done in the past and is also in the 'Debugging Variable Dump' example is something like:
* Note the use of oRequest.oRequest to get these variables
FOR EACH lcFormVar IN oRequest.oRequest.FORM
    lcVar =   oRequest.oRequest.FORM(lcFormVar).ITEM()
    lcSTR=lcSTR+[    <TR><TD><b> ]+ lcFormVar +[ </b></TD><TD> ] ;
        +lcVar +[</TD></TR>] 
NEXT
after the user hits the Submit button.

New Post: Entering parent and one or more child records on same page

$
0
0
And here's an example SaveOrder I did a few years back on a complicated order form in a grid like structure:
FUNCTION SaveOrder
lctable=oSession.VALUE("account")
IF ISNULL(lctable)  &&9/3 CF
   oSession.Value("errormsg","Your session has timed out because of inactivity.  Please login again.")
   oResponse.Redirect(oProp.ScriptPath)
ENDIF
FOR EACH lcFormVar IN oRequest.oRequest.FORM
  lcVar =   oRequest.oRequest.FORM(lcFormVar).item
  IF lcFormVar <> [keyword] .and. lcFormVar <> [bbb]  .and. ! ISNULL(lcFormVar) .and. ! EMPTY(lcFormvar)  && the search textbox & submit value
    UPDATE &lcTable set amt_next =VAL(lcVar) WHERE cat=lcFormVar
  ENDIF  
NEXT
IF oRequest.form("hiddenName")="Save"
 order_success()
ENDIF
RETURN
ENDFUNC

New Post: Entering parent and one or more child records on same page

$
0
0
Thanks Claude, from your examples, it looks like I'm on the right track. I've basically created a table with a row for each child record, and made those form fields that can be edited.

How about adding or deleting child records? I'm thinking of adding a checkbox to each row for deleting, but what about adding new rows to the table dynamically?

New Post: Entering parent and one or more child records on same page

$
0
0
Maybe a button or link for 'Add New' and either re-display in the grid with empty text boxes or show a new page like the Detail page in the example for data entry. Then Append the values with regular VFP commands. There are tons of examples for PHP out there that can probably give you more ideas on how to arrange your screen. And anything you can do with PHP you can do with VFP (and probably more).

New Post: Entering parent and one or more child records on same page

New Post: Entering parent and one or more child records on same page

$
0
0
Think I've found a solution. I just call oHTML.htmldropdown(), and store the resulting strings to a couple of hidden input boxes. Then, from within my Javascript, I can use document.getElementById("hiddenfieldname").value to get the string to store for the dynamic dropdown boxes. This seems to work just fine.

New Post: Entering parent and one or more child records on same page

New Post: location of activevfp.dll

$
0
0
I want the activevfp.dll (and the Foxpro-runtime vfp9t.dll and all others) not in the same directory as default.aspx. What do I have to do ?

I think I have to change something in webapp.manifest.
I tried it with:

<dependentAssembly>
<assemblyIdentity name="activevfp.dll" version="1.0.3822.25700" type= ....... />
<codeBase version="1.0.0.0" href="C:\MyAvfpApp\Bin\activevfp.dll"/>
</dependentAssembly>

But that dosn't work. What is the right spelling?

Has anybody figured it out?

Thank you for your advice.
Markus Schnetzler

New Post: location of activevfp.dll

$
0
0
I think I tried what you're doing but couldn't get it either. However, I didn't spend much time on it. Let us know if you get it to work this way.

New Post: a tutorial

$
0
0
it would of great help if somebody uploaded a step by step tutorial of creating a new simple program conncting fvp with web via iis with some screenshots. Video will be greatly appreciated..

Thank you in advance for your efforts.

New Post: location of activevfp.dll

$
0
0
Hello Claude,

I found a semi-solution.
You have to let "activevfp.dll.manifest" in the main directory ( where web.config and default.aspx resides ).
On the line beginning with "<file name" you add the path before the dll's name. In my example "bin/activevfp.dll", see below.
Then you can move activevfp.dll, vfp9t.dll, vfp9rxyz.dll, .. etc. to that directory.
Incomprehensibly the "msvcr71.dll' has to stay in the main directory. As well, to me is not plausible, why you can't put that information directly in the "webapp.manifest".
<assemblyIdentity name="activevfp.dll" processorArchitecture="x86" version="1.0.3822.25700" type="win32" />
here => <file name="bin/activevfp.dll" asmv2:size="29770">
                 .... etc.
Have a nice day,
Markus Schnetzler

New Post: location of activevfp.dll

$
0
0
Thanks! That's good progress... so close.... There must be a solution for msvcr71.dll which is just used by the VFP runtime.

I thought VFP would first look for it in the same directory where it resides...

New Post: OpenID Support

$
0
0
Has anyone tried to implement OpenID with ActiveVFP?

Simon

New Post: OpenID Support

$
0
0
I've only given the broader issue some thought: we should be able to drop-in this functionality (OpenID, FaceBook login,etc) like the Nuget stuff (http://nuget.org/) or as they do in WordPress plugins. (it would also be nice if we could take advantage of existing WordPress themes, etc)

It would be REALLY cool if we could use the existing Nuget OpenID in AVFP via something like the free wwDotNetBridge (https://github.com/RickStrahl/wwDotnetBridge) which supposedly lets you use any .NET code in VFP.

Minus that it would be nice if we could develop an API to create new plugins like OpenID for AVFP so that they can easily just be plugged in.

New Post: location of activevfp.dll

$
0
0
So, now it works. Somtimes you don't see the most obvious. Like I supposed, the "activevfp.dll.manifest" is not needed for running the application. In fact it caused that trouble with the "msvcr71.dll". Just copy and paste the part "<assemblyIdentity" and "<file ..." from "activevfp.dll.manifest" into "webapp.manifest" and then throw it out of your application runtime directory.

Your "WebApp.Manifest" has to look like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity name="activevfp.dll" processorArchitecture="x86" version="1.0.3822.25700" type="win32" />
<file name="bin\activevfp.dll" asmv2:size="29770">
<hash xmlns="urn:schemas-microsoft-com:asm.v2">
  <dsig:Transforms>
    <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
  </dsig:Transforms>
  <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
  <dsig:DigestValue>fJ7kE7v1O5nl73zdEEvwIbMU28o=</dsig:DigestValue>
</hash>
<typelib tlbid="{ed1ecb89-1531-4579-b6a3-d8b622408517}" version="1.0" helpdir="" resourceid="0" flags="HASDISKIMAGE" />
<comClass clsid="{bef60ced-fb7c-4835-a927-4ec90f5162cb}" threadingModel="Apartment" 
                  tlbid="{ed1ecb89-1531-4579-b6a3-d8b622408517}" progid="pcxp_web.server" description="pcxp_web.server" />
</file>
</assembly>

One thing is tricky: On the line
<file name="bin\activevfp.dll"
you have to use a "\" (backslash), with a "/" it won't work.

The part "<dependency.." is not needed anymore.

New Post: location of activevfp.dll

$
0
0
Thanks! Could you zip up that directory and send me those files? - claude.fox@cox.net

I'll include this in the next release. It'll make everything a lot tidier in the root directory.
Viewing all 1109 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>