[Forge] Notify Section Expandable
[Forge] Notify SectionExpandable Demo
[Forums] Enabling buttons on the fly, and showing/hiding containers
Hello Scott. Answers to your questions:
Question 1: Your solution of refreshing the button is fine, and if it works I wouldn't change it. Granted, it requires a server roundtrip just to disable the button, but it's such a small request that I wouldn't bother with it.
If you do want to change it to a client-side solution, then you are missing the following pieces of the puzzle. The RunJavascript action is in an extension called HttpRequestHandler, so you will need to add it as a dependency. You can refer to the button id by using {ButtonName}.Id in an expression, where {ButtonName} is the button's name. Buttons are not named by default, so you will need to add a name to it before you can use its id. Also note that the id is generated, and that's why you shouldn't hardcode the id on your javascript, and instead use that dynamic expression to get the id at runtime.
Question 2: Again, your solution of putting each step in an If widget is fine.
I would like to mention that there is a wrong way of hiding/showing things, which is relying on the Display=False property of a container. The Display property only hides the container by using CSS (display: none), which can be useful when you want to use javascript to manipulate the container, but is the incorrect solution when you really want to hide information from your client.
Question 2.B: Entities represent database tables, and in relational databases a column cannot have structure. So you cannot have an attribute with three fields inside of it. I think you are doing it right.
Just to give an alternative solution, you could model the progress with a structure. Structures are not stored on the database, so they can have an attribute whose type is another structure. You could have a structure called WizardProgress, with a field called CompletedSteps, and this field would be another structure with three boolean fields. Or the CompletedSteps could be a record list.
If you don't need to store the progress on the database, then you can have a local variable on the screen of type WizardProgress, and you just need to read and write from that variable. I think this would be a simpler solution, but the progress will not be stored in the database, so I'm not sure if it would meet all your requirements.
[Forums] ScrollToElement - lack of precision
Hi Batik.
Technically, the position is correct, but the field is being hidden under the fixed header that you have. I never found a satisfying solution to this problem, but I guess you could try a solution described by Karl Horky in here: https://stackoverflow.com/questions/13614112/using-scrollintoview-with-a-fixed-position-header (which is not the accepted answer). It consists of adding a padding-top and cancelling it with a negative margin-top, so that the element has an invisible padding to make up for the header height.
Demo here: https://work.karlhorky.com/frontend-tricks/anchors-with-fixed-header/index.html
[Forge] Vortexhost Contact Project
[Forums] Building Your First Business Process - Hands on Challenge (Solution)
Hello b_pal. Sharing solutions is not allowed in this forum, but write me a message with details of your progress, and I can help you.
[Forums] iPhone native app rolling back to previous version
This can happen if you made some changes in the local entities that are not compatible with the data on your device. For example, if you changed an attribute from Text into Integer, then the values cannot be converted without data loss. So the app upgrade fails and you remain in the older version.
In this case, and if your app is already in production, I would recommend you not to change the attribute type, but to add a new one and populate it with a conversion from the old one at the start of your application.
If your application is not already in production, you can just uninstall it from your device (which will wipe all data on the device) and reinstall it.
[Forums] Build APP and Communication
Hi Leonardo
Thanks for your considerations.
I also agree that HTTPS should be the best decision to insurance the communication security.
I will update the client about these points.
Thanks very much.
[Forums] JsonSerialize, JSonDserialize Widget Usage
hi there,
I am wondering what is mainly usage of json serialize/deserialize in web/mobile application? Thank you.
regards,
batik
[Forums] upload files
Hi Michael.
OutSystems will not be the preferred choice to transport files from one place into another in bulk. Where are you going to store the files in IBM? In a database table? Shared filesystem? Or some other vendor-specific storage?
Either way, I would search for how to bulk upload files into that IBM service. For example, if you are talking about DB2, searching Google for "how to bulk upload files into db2" comes up with the LOAD command (I haven't checked whether that would suit these particular needs).
Once the files are neatly stored in DB2, you can read them from OutSystems. You can also have uploads writing files to that database, but not on the massive scale that you've described.
[Forums] JsonSerialize, JSonDserialize Widget Usage
Hello Batik. These actions are useful when you want to convert from/to javascript objects.
[Forums] Audit Trail
Hi there,
I know that Oracle database has audit trail mechanism. What about Outsystems? If there isn't , how to create audit trail in Outsystems?
regards,
indra
[Forums] Audit Trail
Hello Indra.
If you are using OutSystems with an Oracle database, then you can activate Oracle's audit trail on top of OutSystems tables. They don't interfere with each other.
If you're using Sql Server or MySQL, similar features do exist. Again, your dba could do some research and help you out by using a standard database feature.
If you need to have an audit trail in your application, not on the database, then have a look at this forge component: https://www.outsystems.com/forge/component/374/human-readable-change-history/. It describes the differences between two records, so whenever making changes to some business entity, you can store this diff text in a separate audit table.
[Forums] Someone show me a basic use case and implementation please?
hi,
What is this for?
regards,
indra
[Forums] Someone show me a basic use case and implementation please?
Hi Indra. Could you create another discussion with this new question? That would be better to keep the forums organised and searchable.
Go to the support tab on the forge component, and start a new discussion.
Thanks.
[Forums] Issue with timer
Thank you Batik & Kilian, Your reference clears my point :)
[Forums] Available for OS 10?
Hello Ntsako. Please create a new discussion with this new topic.
You can create new discussions in the Support tab of this forge component.
Thanks.
[Forums] Exchange Web Sevices - Outlook
Hi
I am integrating this extension and I am getting the below error:
"The Autodiscover service couldn't be located."
How do I work around this error? Emails do get sent but no attachment.
Your assistance will be highly appreciated!
Thanks!
[Forums] Editable Table Validation
Do we have an update on this issue/scenario? Thanks!