Quantcast
Channel: OutSystems Community
Viewing all 1476385 articles
Browse latest View live

[Forums] JSON2RecordList - Strings being converted to date/time

$
0
0

Thanks for the replies.

I've been able to work around this. Basically I just do a conversion from the date/time to an ISO formatted timestamp after it comes out of the JSON2RecordList action and passed to my logic.

Thanks for the explanation!


[Forums] DBCleaner_API no showing all Service Studio integrity suggestions

$
0
0

can you share with me the contents of your ossys_entity, ossys_entity_attr tables ?

[Forums] Delete but does not delete

$
0
0

Hi, sorry for the time it took me to get to this.

Can you share the contents of your ossys_entity and ossys_entity_attr tables ?

[Forums] Problem in REST Service after moving from Dev to QA

$
0
0

Hi Team,

I have created a REST service in one application and consumed in another application. It works fne in Dev environment. I moved both the application to QA environment but the REST service is still accessing the Dev data.

Ex: The Rest service will get Username from User table. The users in Dev and QA are different. The REST service which I moved to QA still checks the Users in the Dev environment.


When I tried to access the REST service URL of Dev and QA in third party tools like POST MAN it works fine and returns proper data. Kindly help us to resolve this issue.


Thanks

Mehraj

[Forums] OutSystems Webinar: Fitting OutSystems applications into Enterprise Architecture

$
0
0

Hi there,

Want to become an expert architect in 60 minutes?

We're having a quick hands-on session to show how to design evergreen applications that will grow with your company strategy - from initial design to keeping the blueprint of your applications healthy as you need to adapt to new business demands 

In this session you will learn:

  • The 4 Layer Canvas concepts - the OutSystems architecture framework

  • How to use the the Canvas to design a new solution

  • How to use Discovery (tool available in the Forge) to keep track of your architecture and extract useful recommendations to fix architecture issues

Join Architecture  Expert Francisco Menezes for this Webinar, September 1st at 2PM (GMT+1) / 9AM (EDT) / 9PM (SGT)

Click here to register

[Forums] Create "User Registration Page"

$
0
0

Pedro Cardoso wrote:

Hello Fadi.

Creating a page that allow a user to do a self registration is as simple as creating a new page, add an edit record and drop the User entity inside the edit record.

On the "Save" action you will need to implement the logic that you find necessary, for instance, validating that there's no one else registred with the given username.

Also keep in mind that there's a system action that creates a new User and fails if there's a user with the given username in the system. You can find that action in the Users eSpace. That action should be used to create the user. To be able to invoke that action you will need to grant the Usermanager Role. As you might be guessing, the user that is executing the action is unknow so, you will grant the role during the action and then revoke it before the action ends.

Hope it helps!
Pedro



Hi Pedro,

I followed your instructions to create a self-registration page and was successful... However when I drag and drop the "User" entity into the form, I get attributes like "External", "Creation Date" , "Last Login" and "Is_Active" (See attached Image) ... Obviously I don't want my users to be able to edit any of that. How do I hide those attributes and set them automatically? Or, even better, how to I edit the attributes of the built in "User" entity? 

Finally, how do I model my system so that the system's "User" entity represents the data for my own "Client" entity? I'm having trouble understanding how you can create an entity to model a client and have login-accounts for that client entity based on the System's default "User" entity. 

Apologies for the long-winded and multi-faceted question.

- Justin


[Forums] Create "User Registration Page"

$
0
0

Hey Justin, no worries, keep asking! Glad to help!


To remove those attributes from the UI you just need to delete the input boxes from the UI, along with any container that you don't need any more. If those attributes are not present in the UI, the user won't be able to set them, and they are not updated in the database. Then, in your own logic, you need to build your own business logic. For example, you can set the is_active as false by default so that you can review the self registration in a backoffice and set it to true only if it's not a bot. To do that, we usually check if the User.Id is not set, equal to NullIdentifier, and  if that is true, then you now it's a new user and you simply set it in an assign. 

Regarding modeling the User entity so that it contains the attributes that you need, for example, a birthdate, we usually create a new entity with the attributes that we need with a subtle change: the Identifier of this new entity is of the type UserId. This way, you create a 1-1 relationship between the system User entity and your UserExt (that's the name some of the guys use to use). The built in login mechanisms keep working, and you have the needed attributes in place :)  More than that, our aggregates are smart enough to understand that whenever you need to query the User entity, you probably need your UserExt, or whatever you call it


Cheers!

[Forums] Problem in REST Service after moving from Dev to QA

$
0
0

Hello Mehraj,

What you have there are two modules: 

  1. a producer module, which is offering the REST endpoint to be consumed by others
  2. a consumer module, which is consuming the REST endpoint provided by the producer.

I believe that whenever you consume the REST endpoint from third party tools in QA, you are pointing directly to your producer, and so, you see the data coming from the QA database.
Still, your consumer module was built in DEV and the URL that this module is using to point to the producer is the one from Dev. You can check in Service Center, going to Factory > Espaces > Your Espace > Integration tab that your module is still pointing to Dev. You can edit the URL and point it to QA. You can also do this by code if needed...

This is a one time setup. Next time you publish that module from Dev to QA you don't need to worry anymore. Still, if you add new integrations, you need to set those also.


Hope it helps.


[Forums] Log_RequestEvent

[Forums] Long integer and JSON2RecordList

$
0
0

It seems like the latest release of ardoJSON works correctly with Long Integers in the .NET stack. I'll still have to test on the Java stack, but in the meantime can you please confirm whether or not you are using Java ?

[Forums] Deployment Service is down in my personal environment

$
0
0

Hello, I have the same problem, I have try the hole day to use the platform but the error persists.


Could you tell me how to solve it?

[Forums] Log_RequestEvent

$
0
0

wow great! thanks Pedro.  Pun?  

[Forums] "Set as 'Home'" to include application on Users app

$
0
0

Hi Tiago,

Thanks for submitting this. Let me walk you through history =)

Around version 6 (I believe) we decided to create the concept of Application, but applications were compose by a single module, meaning that you could modules (extension or eSpaces) that would work like libraries and then you could have eSpaces that were considered applications (there was actually a property to set as an app). 

As time passed by we noticed that we had to improve the concept, so we created what we have now as apps, or almost... actually at the time apps should have a back office or a front office (something mandatory except for independent modules), so all apps that should be listed in the list you are showing, I think that during the same project we removed that restriction, and Users stayed like that, don't remember exactly why... long story short, I'm getting too old :P

Once again thanks for the feedback =) 



[Forums] Optional Number elements: a way to control if '0' should be left out or added.

$
0
0

I think you guys are confusing some stuff. And before I continue, please note that the rest of this post is my personal opinion on the matter, it is not meant to be an official OutSystems positioning.

I fully agree with Eric when he says that SOAP and (maybe) REST with JSON are essential for the OutSystems Platform to be able to interface with other systems.

As such, having these capabilities built into the platform offers a great advantage for developers attempting to leverage the OutSystems Platform in their landscape (and also for OutSystems to be able to get into those customers).

However, even if XML is the basis of SOAP, this does not necessarily extend to XML. While I recognize it would remove a lot of pain from developing in the situations where it's needed, I do not believe that XML manipulation belongs as a built-in capability of the OutSystems Platform. This includes X-Path, Serialization, XSD, etc.

I think that enterprises should preferably use SOAP and / or REST to expose their services, instead of relying on weakly typed stuff like XML contracts.

As such I am perfectly ok with this being a community driven effort instead of an OutSystems driven effort. True that the current implementation was done by an OutSystems employee (a long long time ago), but the community should be able to produce this component (or another like it).

Both XML Records and ardoJSON heavily rely on how the code was generated, but (at least ardoJSON) there's nothing done here that someone with proper .NET coding skills couldn't come up with. What I did to generate the bindings for ardoJSON was to reverse engineer how the OutSystems Platform is generating structures and use reflection to access and fill up this data.

What I would really like to see is the OutSystems Platform provide mechanisms to make this kind of approach more ... approachable. If there was a proper API to introspect structures within extensions and a way for me to generate a structure in Service Studio, I (or anyone in the community) could make much more out of XML Records and ardoJSON, without a need for OutSystems to intervene.

So, instead of asking OutSystems to provide you with the tools to address your specific concerns, I think that the community should be asking OutSystems to provide the APIs for the community to be able to build upon the Platform and come up with the weird niche solutions for ourselves.

[Forums] Log_RequestEvent

$
0
0

Steve Bramley wrote:

wow great! thanks Pedro.  Pun?  

Well... it was not a pun... more of a reference...



[Forums] Long integer and JSON2RecordList

$
0
0

I can confirm that the issue was only happening in the Java stack.

I have just published version 1.9.4 of ardoJSON which addresses this.

[Forums] Delete but does not delete

[Forums] webservice publish problem

$
0
0

Hi,

I have added a web reference to my espace and the reference and the actions were loaded ok. When i try to publish apear that error : 

Invalid Web Reference

The EInsuranceWSService web reference could not be imported because it is not supported.

Exception Details:

[1] Invalid Web Reference: The EInsuranceWSService web reference could not be imported because it is not supported.

at OutSystems.HubEdition.Compiler.WebServices.WebObject.#61d(TextWriter outerCode, String namespace)

   at #gjd.#E1d.#00d(AbstractRecord type, TextWriter code, String namespace)

   at OutSystems.HubEdition.Compiler.AbstractNamedRecord.AfterDumpStructure(TextWriter writer)

   at OutSystems.HubEdition.Compiler.ESpace.DumpStructuresCSharp()

   at OutSystems.HubEdition.Compiler.ESpace.DumpStructures()

   at OutSystems.HubEdition.Compiler.ESpace.Dump()

   at OutSystems.HubEdition.Compiler.Compiler.InnerCompile(CompilationContext context)

   at OutSystems.HubEdition.Compiler.Compiler.Compile(CompilationContext context)

   at OutSystems.HubEdition.Compiler.Compiler.<>c__DisplayClass3.<Compile>b__2()

   at OutSystems.HubEdition.Compiler.Utils.CompilerUtils.WithOverridenSettings(IDictionary`2 settingsOverride, Action body)

   at OutSystems.HubEdition.Compiler.Compiler.<>c__DisplayClass3.<Compile>b__1()

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart()

[2] Id : WSDLFieldNotFound

Type : Error

Message : Invalid Web Reference

Detail : Could not find 'cancelDate' field.

HelpRef : 2050

ExtraInfo : Exception Details:

[1] Invalid Web Reference: Could not find 'cancelDate' field.

at #gjd.#73d.#F3d(String typeName, AbstractAttribute field, Boolean& isNullable)

   at #gjd.#A2d.GetTypeName(AbstractAttribute attr, Boolean& isNullable)

   at #gjd.#A2d.#Z1d(TextWriter writer, Boolean rpcCompatibilityMode)

   at OutSystems.HubEdition.Compiler.WebServices.WebObject.#91d(TextWriter code, String namespace)

   at OutSystems.HubEdition.Compiler.WebServices.WebObject.#61d(TextWriter outerCode, String namespace)

   at #gjd.#E1d.#00d(AbstractRecord type, TextWriter code, String namespace)

   at OutSystems.HubEdition.Compiler.AbstractNamedRecord.AfterDumpStructure(TextWriter writer)

   at OutSystems.HubEdition.Compiler.ESpace.DumpStructuresCSharp()

   at OutSystems.HubEdition.Compiler.ESpace.DumpStructures()

   at OutSystems.HubEdition.Compiler.ESpace.Dump()

   at OutSystems.HubEdition.Compiler.Compiler.InnerCompile(CompilationContext context)

   at OutSystems.HubEdition.Compiler.Compiler.Compile(CompilationContext context)

   at OutSystems.HubEdition.Compiler.Compiler.<>c__DisplayClass3.<Compile>b__2()

   at OutSystems.HubEdition.Compiler.Utils.CompilerUtils.WithOverridenSettings(IDictionary`2 settingsOverride, Action body)

   at OutSystems.HubEdition.Compiler.Compiler.<>c__DisplayClass3.<Compile>b__1()

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart()

Submitable : Yes

does anyone has any idea about what happened?

Thanks



[Forums] Log_RequestEvent

[Forums] Deployment Service is down in my personal environment

$
0
0

Diego Urbano wrote: I can not see this image. It's too small for ty le keo toi nay

Hello, I have the same problem, I have try the hole day to use the platform but the error persists.


Could you tell me how to solve it?



Viewing all 1476385 articles
Browse latest View live


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