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

[Forums] How to solve "Default value must be set to a Date literal value" in this scenario?

$
0
0

Thanks, but the issue is that havign the assing in the preparation before the aggregate also doesn´t work correctly.


To explain better the scenario:

There are two inputs StartDateInput and EndDateInput. When the user selects the dates and click in  the "Search" button, the table should show the records according to this. This is working, the only issue is showing the default value of the StartDateInput input as the current date minus 1 month.

There is a variable StartDate to hold the value in the StartDateInput and an EndDate variable to hole the EndDateInput.

The StartEndInput should start with the current date minus 1 month. However, set the default value of the variable  StartDate as AddDays(date, -30), shows "Default value must be set to a Date literal value".

To solve the issue I add an assign in the preparation before the aggregate with:
      StartDate = AddDays(date, -30) 

      EndDate = CurrDate()

However this dont work correctly because like this when the user click "Search" the value of the StartDate variable is always AddDays(date, -30) and the value of the EndDate is always CurrDate() because he preparation is executed, so the aggreagate returns always the same reults independently of the dates that the user selected.


[Forums] How to solve "Default value must be set to a Date literal value" in this scenario?

$
0
0

Hi,

I don't know the code and how you are doing it (telling it is harder than seeing the actual oml)

In any case, AddDays will return a DateTime, and not a Date (don't ask)

so I assume you have something like this in an assign:

youLocalDate = DateTimeToDate(AddDays(Currdate(),-30))



[Forums] How to solve "Default value must be set to a Date literal value" in this scenario?

$
0
0

I have na input  associated with a input_calendar widget and I want that this input shows by default the current date minus 30 days, so I have a variable date, but the default value of the variable is defiend as AddDays(date, -30) it shows "Default value must be set to a Date literal value". 

To handle this I created an assignment in the preparation of the screen to set the initial value of the variable with " AddDays(date, -30)" and in this assign that error above doesnt appear. However, like this dont works because when the user selects a date and clicks in a button I have another screen action and so the preparation is executed and it assumes that the date value is always AddDays(date, -30), but in this case since the user selected a date and clicked in the button the date value should be the value selected by the user.

[Forums] browser to download to the user's machine

[Forums] BPT - Tasks in Custom UI

$
0
0

Is there way we can fetch the Tasks assigned to given user or role in a custom UI, instead of the task box. Do we have any APIs or any otherway to achieve this.

[Forums] Sorry for the stupid question - Creating Simple DB/CRUD app. Data Read-only?

$
0
0

Hello,

You don't need a so radical solution. :)

When you make a reference, your consumer module is using a certain version of the producer module.

If you change the producer, than you need to refresh the references in the consumer module, so that it becomes aware of the changes.

Than redoing the scaffolding would work.

Cheers.

[Forums] How to solve "Default value must be set to a Date literal value" in this scenario?

$
0
0

I have two inputs StartDateInput and EndDateInput. When the user selects both dates and click in the "Search" button, the table should show the records according to the selected dates. This is working using a filter in the agregate.

There is a variable StartDate to hold the value in the StartDateInput and an EndDate variable to hole the EndDateInput

The only issue is that I want to show in this screen the StartDateInput value as the current date minus 1 month and the default value of the EndDateInput as the CurrDate(). However, set the default value of the variable StartDate as AddDays(date, -30) shows "Default value must be set to a Date literal value". 

To solve the issue I add an assign in the preparation after the aggregate with:

        StartDate = AddDays(date, -30)

       EndDate = CurrDate()

And this works, but with an issue: when the screen is acessed at first the StartDateInput appears with the current date minus 30 and the EndDateInput appears with the CurrDate(), this is ok. However, if the user select other dates and click "Search"  the value of the StartDateInput variable is always AddDays(date, -30) and the value of the EndDateInput is always CurrDate(). The issue should because he preparation is executed, so the aggreagate returns always the same reults independently of the dates that the user selected. But Im not understanding how to solve this issue. 

[Forums] Why the table dont how all records when the screen is acessed?

$
0
0

I have a screen that has a table records to show the name of a user and in another column the number of posts published by that user. So in the preparation of the screen, I have an aggregate with a group by on the name of the user and sum in the id of the post. It's working but now I add an input so that the user can introduce for example "1" and then click on the "Search" button it only appears the users that have published 1 post. This is also working, I add this filter for that:

        Count = NumberOfPostsByUser or NumberOfPostsByUser = NullIdentifier()

 The issue is that when the screen is accessed in the table records appear "No users to show" however it should appear all data by default. The "or NumberOfPostsByUser = NullIdentifier()" should not solve this issue?



[Forums] Incorrect/missing widgets on webscreen builder

$
0
0

Seems to be only this application, I haven't put too much work into it so I might just rebuild from scratch. Just an interesting bug that I haven't seen.

Vers. 11.0.208.0.


[Forums] Clear inputfield "x" not visible in Firefox

$
0
0

Have you tried inpsecting the styles and seeing if there is something to adjust in the css?

[Forums] Push Notification mobile

[Forums] How to give menu in Table Records Widget

$
0
0

Hi Manthan,

You can do it with the new UI Widget "DropDown", with some little CSS:


Check .OML attached.

[Forums] Form webblock event assign bug?

$
0
0

Hi,

I did some changes and is working now.

Regards,

Marcelo

[Forums] How to solve "Default value must be set to a Date literal value" in this scenario?

$
0
0

Hi Oscar,

the refresh button should be set as ajax refresh instead of submit. because on submit the preparation runs again.

Regards,

Marcelo

[Forums] Check Status of the services

$
0
0

Hi,

You can check here all the API provided by Outsystems:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs


More particularly, it seems you want this: https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/PerformanceMonitoring_API

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_Deployment_API_v2


For some of the API you just need to simply reference the module in your application. 

Others (Like Lifetime Services for deployment control) are simply Web Services.


Hope it could help you in the right direction for what you want. 



[Forums] How to solve "Default value must be set to a Date literal value" in this scenario?

$
0
0

Hi,

That's right, default value should be a literal, no expressions allowed.

To solve this, you can check on Preparation if the variable is NullDate (StartDate = NullDate())


If it's NullDate, assign it with the Default value you want. If not (already submitted a value), leave the value unchanged.

[Forums] Outsystems 11 version has 239 errors

$
0
0

Looks like a lot is missing in the uploaded Field Services app

[Forums] In Chrome browser, not able to close the window Version 72.0.3626.109

$
0
0

Hi,

I am facing a challenge in closing a chrome browser window when user click on cancel button.

scenario is, If calculation is not done, and user click on cancel then system will show customised pop up confirmation (NOT confirmation message with button.) button "Yes" system will close the parent window since through the child screen I need to close the window.

If already calculated then directly close the window. 

for this I am use RunJavaScript server action 

SyntaxEditor Code Snippet

function CloseScreen() {
 open(location, '_self').close(); 
 setTimeout (window.close, 1000);
 window.close();
}

closing from child window used "window.parent.close()" 

Issue: chrome browser will refresh the screen, will not close the screen, and all the API written in preparation again.

can anyone please suggest, what is the mistake I am doing?


[Forums] Outsystems 11 version has 239 errors

$
0
0

Brian Webb wrote:

Looks like a lot is missing in the uploaded Field Services app


Hi Brian Webb,

Inside your module containing the tables, you can use the Module-> Download all Consumers, do the changes, and after that Refresh all open consumers.

Best regards,

Assif Shaikh

[Forums] upload image inside list record display

$
0
0

Hi Tung,

Yes, they are some issues using upload widget inside the list record.instead of using upload widget you can use popup upload widget .which is available in rich widgets.Hope this will help you.

Regards,

Koushik

Viewing all 1476385 articles
Browse latest View live


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