FileMaker 13 GetThumbnail Anomaly? - containers

I have a container field named tempImage, set to have a calculated value of:
GetThumbnail(tempImage; 500; 500)
However, when I drag a larger size image into that field, the image does not get resized.
How can I fix this?
Note: The "Do not replace existing value of field (if any)" checkbox is unchecked. Here is a link to a video showing the anomaly.

I don't have a specific answer, but will offer a method to debug this.
Instead of dropping the image into the container, write a script that is triggered by the OnObjectModify that sets another container field using the GetThumbnail() function.
In so doing, you will be able to run the debugger and see if an error is generated by the script. That will give you more information to post here if you have not solved this already.
Reference information:
http://www.filemaker.com/help/12/fmp/html/func_ref1.31.14.html
Here is a detailed blog post about this function:
http://hbase.net/2013/07/11/resizing-images-in-filemaker-pro-12/`

Related

Can't set step property in input type number iside alert

I have an input type number inside an Ionic v4 alert, the problem is that I can't set step property since It's not recognised, is there any workaround or solution?
If you have advanced alert needs you might consider making a modal form instead.
The alert doesn't have many configuration options.
I don't see the value in trying to recreate a full modal tutorial here. This seems to cover it quite well.
But the high level overview is that instead of using an alert you create what is basically a new page, but it is loaded in on top of the existing page and you can pass data in and out of it.

GET - Changing image based on a parameter passed onto url

I recently saw a website that changed a div's background image based on a parameter passed onto a url.
Something that goes like this: http://website.com/image.jpg?p=100
Basically when value of p is from 0 to 100 it shows an image and another one when it exceeds 100. Was wondering how was this achieved. Was there conditional statements involved? Thank you!
Yes, it probably includes a conditional statement. They retrieve the value of the parameter, compare it with a limit value and decide what image should be displayed.
Nothing magical
But, as Vasan says, without more information about the technologies they used, we can't say more.

Oracle Developer report, change field height

I am using oracle report 6i. I have a problem with the report design. I would like to change one of the field's height to be as high as another field. The second field does have not a fixed height, it depends on the data. So, I found Format Trigger, I have tried to get the height of the other field and set it to be in the current field, but I couldn't. Does anyone know?
I know it is an old question, but nonetheless ...
As far as I can tell, Format Trigger won't do any good here.
I'd go with creating a new frame that would contain both fields (how? Create it in Paper Layout Editor, paint it white (so that you can see what's going on), then move it "Back" until you see both fields appear "on top" of that frame, which means that they are contained in it). Make the frame variable vertically so that it could grow with field_1.
Another option you could try is to anchor field_2 to field_1.

refreshing text input value in jqMobi

I have a text input within a custom footer. I am trying to update the text using:
$("#navbar #segment").val("blah");
I have also tried
$("#segment").val("blah");
both return objects, but neither show an updated text input. The footer the input belongs to is not shown at the time, and I think this might have something to do with it since performing the same actions works when the panel is displayed. I have also tried adding $.ui.updateNavbarElements($("#navbar #segment")) after each call and it throws an error.
Also, what is the difference between the jq.web.min.js included in the appMobi XDK and the jqMobi script located on the CDN? Are they they same, and just the CDN is the latest?
I was correct in assuming that changes are only reflected if the element is showing.

Access 97 VBA writing code

I found that I can write code just by typing everything or activate element, then click for example OnClick property and write code to between the sub-end sub lines.
One person I met said that one has always use mouse and select the property in which you want to write the code, as it might write something else to some files such that the code won't work.
Is this correct or are those two ways to write code equally good? I'm using Access 97.
The short answer is you CAN do it that way. But it doesn't mean you SHOULD.
With a little experimentation I've found that you can type in event subs directly in the code window, and their creation will be reflected in the properties window. This might not have always been the case in older versions of MS Access.
You can also create them by selecting the Control in the code window's top left pull down, and then selecting the event in the top right pull down.
Why would I choose to use the Code Builder (or at least the second option I provided). Because it prevents you from making mistakes. Both in the name of the control/event and in accidentally creating duplicate Subs. Both of which could be frustrating when debugging your application - how long could you spend looking for a bug because you added an extra "S" to an element name by accident. If you follow through from the properties window, you are guaranteed to be working on the right Sub and that it will be spelled correctly.
Note: I've also found that you can delete the entry in the properties window, but it leaves the code behind in the code window. So to make sure it is really gone, you do have to go into the code window and delete the Sub there.
That's not to say that I never do anything directly in the Code window like that - if I've renamed a control, I'll often update the name in the code window. But then I'll go back through the properties window to verify that I've re-connected the subs properly.
"Look, I'm running with scissors!"