> 11. 4DMethod meeting Xojo/4D files updated (John Baughman)
That was a cool demonstration of another front end WEB UI with 4D as a backend.
I didn’t know but now I do. I didn’t now that XoJo handles Mac, windows, linux,
If anyone missed may I suggest spending
>> you can call FORM GOTO PAGE with an asterisk option
Ah yes, this was mentioned to me some time ago and I had completely forgotten.
Thanks, that was so simple!
> Hi All,
> Might be a good time to revisit
Might be a good time to revisit this issue I had some time back. well and
actually I have a need for it to work once again.
Scenario: I have a parent form which has a single subform container. This
container is set via code to a subform where I do edits of various kinds. There
Simple! Cool UI trick as well.
Works with v16R4 as well.
> I had the need to add find and replace to my 4D Write Pro areas. So I created
> a generic component. It easily shows and hides itself at the top of a Write
> Pro area and can resize itself
OMG! I was just working with Ortwin last week.
I’m in shock. We have lost a very talented and gifted developer.
Thanks for letting us know.
> Fellow 4D developers,
> it is with great sadness, that I have to inform you, that Ortwin Zillgen has
> passed away end of
> I agree with Tom’s recommendations, try to pick a framework of your choice
> that does include a Calendar widget. I’m also a big fan of Kendo UI. I’ve
> been using their jQuery version but I’m now in the process of migrating to
> their Angular version.
Thanks so for the
> I would recommend that choosing a Calendar is less important than choosing a
> web UI/datasource framework (which would include a Calendar solution) and
> using it whenever you have a choice.
Yes that’s a broader way of thinking about it.
> Ref: I’d go shopping for a web UI
I am redesigning an internal invoicing tool I use which has a calendar module.
I’m still in the early stages of understanding how to get data into and get
data out of a web area. So…
Has anyone used a
> Are you on Windows? On the Mac with 16 R series windows do not reopen no
> matter how you get to Design. Not the case on Windows where previously open
> windows reopen as expected as long as the alt key is not down. At least that
> is my experience.
It was working in
In R2 it worked and then in R4 it didn’t.
I can’t recall the last time I had to try and remember any key sequences. There
was a v14 r v15 (I can’t recall) where it was an issue. But then it was quickly
fixed. Not sure what they changed in Design but ti broke the memory!
Once you use new features you really can’t go back!
Additionally, why would something as pedestrian as remembering and reopening
windows in Design be such a chore? I don't understand it!
I’ve resorted to a method where I keep track of what forms and methods I had
OSX Mac 4D 16 R4
I seems to recall this issue popped up previously but I couldn’t find it in the
So I’m working and I have various method and form windows open in Design. Then
I quit and restart later …
And when I get back into Design all my windows are closed.
So something is
> I may be missing some critical elements of your design, but given the basic
> construct of a tab control parent and a subform child:
> - I would remove "goto page" as the tab control's standard action and keep
> the parent on page 1 at all times.
> - I would either use the same
Note: This design has been in place an evolving for several years now. A
further requirement brought the issue to light.
> The only other way I've been able to accomplish what you want to do is with
> nested EMIS calls … It works. And it's ugly.
Well I was hoping for simple and
> old school is draw two subfoms. one off screen. then swap as needed. with
> move-object. works a charm ;)
Well I’m thinking I can get this working without resorting to an "old school”
approach. The need is s simple!
I am in 4D 16r5 and I like the simplicity and elegance
I have a parent form which has a subform container. Above the subform container
is a tab control object (5 tabs). Clicking on a tab selects the tab an triggers
(underlying code) a change to the underlying subform. Works great.
But I discovered I need one of the subform pages, let’s
is loaded many times and I cannot use
> it depends on the document,
> but I would create a group in "defs" and apply the scaling and/or translation
> factor at the "defs" level.
> you can "use" a "g" in SVG.
> by the way,
> your SVG is not wrong,
> but the standard practice is to wrap the element in a and add the
> translate attribute to the group,
> as opposed to the graphic element itself.
> 2017/12/05 9:51、truegold via 4D_Tech
Does the SVG_SET_TRANSFORM_SCALE change the image size and also the the area
size? In others words (even though the xml in the 4D SVG Viewer doesn’t show
it) is 500 pixel width still 500 pixels after the size transform? Or is 500 *
I'm asking because as soon as I change the scale
As an aside I am testing in a small sample and opening inn the viewer.
if I use this line:
it works great! Starts the draw exactly at the x and y.
But if I add this line:
Then it goes
> translate offsets the x/y by the value specified.
> the x/y you pass are not absolute coordinates (unless, of course, the x/y in
> element are 0,0)
I have tested setting the x/y w/h to 0 thinking that it would apply correctly
but the svg looks like this:
Note: If I apply the transform immediately after I create the symbol:
$symbol:=DOM Create XML
That seems to work and
I’m in the process of changing some SVG routines to be a bit more efficient (I
Miyako showed me how to embed svg images as “defs”:
so I could reuse the graphics without reloading them several times. This part
> Does sound pretty complex.
> Well two thoughts. First, you can use an object array in a listbox without
> 4D WritePro or anything else - you just can't display them directly.
First I implemented my original design using List box columns working with
object arrays. My version
> Hi John,
> I'm curious what the situation is for having multiple embedded subforms
> beyond things like widgets for dates and such. Care to talk a little about
> what you need to do or why stacked subforms was your choice for it?
> On Wed, Nov 29, 2017 at 5:1
Taking a clue from your thoughts I added an On Deactivate in the form method of
the Subform and it seems to work.
But now I lose the tabbing out of the subform to other objects on the form.
This fix has the effect of remaining inside the subform as thought it were the
In subform container2 I have added the command:
EXECUTE METHOD IN SUBFORM($sbfm_Name;"PNL_General_GOTO";*)
And in the method I have a single call:
The execute method seems to be working (I can tell in trace mode) as it is
called when subform container2 is
Yea, I can’t figure it out the correct command. It’s easy to get the focus on
the container but then I have not been able to figure out what command to use
to communicate with the subform .
In fact I changed the form so the only object that was table and focusable was
This is kind of like the thread that ran "subforms and object focus” when
opening the parent form.
In my case I have a parent form open already and I am tabbing from object to
object. What I want to happen is when I tab to subform container1 I want the
first object (or some object of
Thanks that helped.
Part of the images displayed and part didn’t. But there seems to b an xml error
that I have to address.
Anyway, that got be part day there.
> try "image/svg+xml" as media type, e.g.
Hi Miyako (or anyone please),
I am looking at the cool Image Grid Widget you created years back. It was setup
to handle and display png images.
I have upgraded it to 4D v15 and I am trying to use it to display a list of svg
The code to read a PNG and display in a web page is:
Thanks for the additional thoughts.
> If I catch what you're thinking about correctly, you sound inclined to make
> the message broker smarter. That's a solid plan, if the extra complexity
> can pay for itself.
NO! I plan to keep it as smart as you have made it and see how that
I would be very interested in "the worker watcher code soon with a little demo
video”! especially with a little video explanation.
Please let me know when it’s available.
> Thanks John! It is good to hear that people are getting some valuable
Ref: "I'm sceptical that slides are worth much without a presentation but,
well, here you go! “
True except for some of the slides were used in your presentation and they
layout on clear diagram form some of thew points you made. Especially the one
where you renamed the command to
If you were not able to see it the 4dMethod.com presentation today - you really
David Adams did a wonderful job explaining how he implemented
Publish/Subscribe. Just what the doctor ode red in my case as I was about to
implement something similar in a database I am working
I finally found an example from back in 2001!
Create the tab control on your form I made the var type string.
In On Load form event:
// Build hierarchical list
APPEND TO LIST(Tab_Control;"c1";1)
I have a need for a dynamically created tab. I need it to be generated from
within a subform that will add a tab for each object created.
In this case it’s simple (I don’t think I need images). Think of an address
book with A,B,C,D...
I can do that BUT what I can’t recall how to do
I keep windows open (way too many…) all the time so I can remember things I
am/was working on - for various reasons.
So now I’ll create a method where I store recent windows. Then I can close them
without worry of forgetting of spending time drilling down into where they
Wanted to confirm that by simply setting a password to Designer and creating
another default user group that did not have access to Design wound up fixing
rings quite elegantly.
That’s the first part in my scenario.
The second part was to continue using our custom login and then after
Ok, will experiment and see how ti works out.
I will then need to suppress and 4D dialog and handle it programmatically.
Thanks for the help,
> Hi John,
> I just ran some quick tests and I think the most likely scenario here is that
> you still need to assign a password to
> It is the opposite. The checkbox under Database Settings/Security allows you
> to set a 4D group that HAS access to design mode.
> We create the group “Development” as the Designer, so the Administrator
> doesn’t have access to edit.
So I already have a group created “Admin"
Thanks, I’ll give it a try.
I did realize that part of my problem - and why I need a 4D group to prevent
access - is that some of the code is still run inside the 4D application
process which is what also controls the splash screen. So it’s possible, even
after hiding it, to still
y to do.
>> On May 16, 2017, at 2:32 PM, truegold via 4D_Tech <email@example.com>
>> Hi Jeremy,
>> Thanks for the info.
>> I need to make sure that if they log in as admin then this restriction is
ot be able to get into the Design Environment
> again, unless the 4D Password System dialog appears to allow you to enter as
> When opening a database, you can force the 4D Password Dialog to appear by
> holding down the shift key.
> Best regards,
I’m asking this because I have time scheduled tomorrow to try this approach.
But I though I’d explained and see what others have experienced using similar
So if I want to protect the db from a user getting into “design mode” - given
we have rolled our own password security
Thank you! I’ll give it a test.
I’ve had mixed result so far with only being able to disable the close box of
the parent window (main app window).
> Just snarfed this from a legacy application and watched the code execute.
> When I open my database with the component in the component folder, I cannot
> see any of the component methods or forms
I don’t think you will as they are like a widget. I haven;t explored enough yet
(I plan to next week) to see how it sets things. But since it’s set up as a
4D v12 Windows clients
I have read all the threads in the Nug concerning this and can’t seem to find a
I have been trying to figure out how to disable the close button on Splash
screen windows v12. Not the main Application window (that works).
If I use the command
> My assumption (unproven as I am looking for the same insight)…
Sorry I’m not sure if this example uses the component or not.
But I did find...
Yes, just create a subform container and then in the Subform properties select
I’d take a look at this 4DBlog “ Create your own interface for 4D Write Pro”.
There is an example database you can download. My assumption (unproven as I am
looking for the same insight) and found this v16 HDI example.
4D v15.2 & 4D 15.4 (Mac)
It looks like 4D’s Query EDITOR (the one most of my users hate) has some
issues. I’d like to confirm if others are seeing them.
Here’s what broke for us:
1. The app has a convention of default dates being set as “03/03/0300”. It goes
back to late 80”s and
Oh, and Add did a great job expelling and demonstrating how to use subforms.
You really need to wrap your head around them as they provide such flexibility.
As I move forward I will try and use subforms every change I get.
> Hi All,
> I just returned form the 4D World Tour in
I just returned form the 4D World Tour in Denver. I am very happy I went.
I learned quite a bit about where 4D is “theoretically” going and where 4D is
All the 4D presenters were excellent - even the new guy! And you know who you
Add did a great job of taking
So after a little reading of the docs and starting at the very first example
(which initially seemed incomplete) and baby stepping with simple tests...
I was able to auto create and update methods on the fly using "Method Get
Code/Method Set Code”
So I have been able to move from a
That’s simple and and elegant!
> This is one possible solution we us a lot in our own applications:
> Kind Regards
OK, thanks. I’ll see if I can figure it out.
> You should not really have much trouble with 4D SET METHOD..I Use it all the
> time(in development not in a live enviroment)
> METHOD SET CODE($_t_methodName;$_t_MethodText)
> just need to make sure method is
First I know the issue of using 4D List as a short cut for using a real lookup
of records in a table, aka choice list, for example. I have a client who has an
app (I have inherited this one as well) where there are hundreds of these and
they are having the kinds of problems you
First this is an App I took over and am maintaining. The client brought this to
my attention because after working in the app since the late 80’s it’s still
not clear and easy to remember all the steps (even with documentation) it takes
to get things to the point of usability.
> Sounds like you need a Rule Engine
That is something I should look into further.
Thanks for the idea,
>> I am wondering if anyone is modifying methods on the fly by inserting
>> selective lines of code. What
>> I have in mind is selectively inserting into case
we’re in 4D v15 but could go to v16 anytime really. So that’s an option.
I had forgotten about foot runner but Iin this case the end user already has
access to design.
From my purview it just seems like it’s an automated solution waiting to happen.
Thanks for the info,
> It does not work in compiled db. In uncompiled db why not rewrite method
> and replace same, no need to go though just making the adjustments
Clearly that would be obvious right?
Maybe I wasn’t clear enough. This isn’t for me it’s for an end user who makes
these changes -
Hi All SVG Pro’s,
Background: I’m creating circular shaped images using SVG. Sometimes the images
seem to get slightly cut off. Maybe because part of the stroke overlaps the 0
point? Anyway, I decided I’d add a non-drawable margin around the image. Say
around 4 pixels or so.
The only way I
4D v15.2 Mac
Here is what I discovered. The issue I am having appears to be do to incorrect
results from the following lines of a routine:
Further info from previous post...
The more I experiment the more I think the width of the text is not correct.
If I include these lines:
In a text string of “19˚”
So if I understand how to replace “text” with “TextArea”…
Here’s an existing code fragment with various height/width adjustments
Thanks for the info.
> Ref: have you considered using instead of ?
I haven’t but I will now.
I’ll see if there’s a difference.
Thanks for tips.
> in general, it is best to instruct the rendering engine to decide how to
> align objects,
> rather than to compute the exact
Ref: "could you not simply set text-anchor to middle?”
Do you mean:
If so then yes it is one of the parameters being sent into SVG_New_text command.
> Hi All,
> 4D v15.2 Mac/Win
> I’m sure I’ve seen this recently but can’t find it (something about
4D v15.2 Mac/Win
I’m sure I’ve seen this recently but can’t find it (something about double
processing width/height). I recall reading but not quite understanding it. What
was it’s topic name? Anyway...
I am working on a project where I need to place short text strings exactly at a
Thanks for posting.
I last saw Larry in Portland, OR at a 4D Summit. He looked good. We had a good
time of reminiscing.
I'm in shock!
RIP my friend,
> Larry passed away last week.. Obit here:
Our users have also found the new query dialog less intuitive. They expressed
that having to use popup buttons required extra steps. And because some
checkboxes are now hidden in the popup they forget about it. And other more
So for them it’s extra work!
And, yes, I
Funny, I just got asked about this on Friday.
I would also be interested to know the bets way to handle older (I think
they’re all from v12) Query files.
>> Le 6 mars 2017 à 13:45, Paul Lovejoy via 4D_Tech <firstname.lastname@example.org> a
>> écrit :
I have on my task list adding a type ahead lookup …
This sill save time!!!
> I have written a component allowing easy implementation of typeahead
> functions for variables or fields.
> The idea is to create an array with possible values ("suggestions") and to
Mail list logo