dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #45289
Re: WebApi failing Email, FileResources and
Hi Mike,
The short answer is that I fixed this on Friday. In DHIS 2.23 revision
23232 or greater, the settings app will store the correct value for custom
apps as start modules.
The problem is that the startModule system setting is used incorrectly in
other places:
To set a custom app as the start module, the startModule system setting
should be set to "app:<app name>". This is not documented anywhere so you'd
have to look at the source code for
/dhis-web-commons-about/redirect.action. I implemented this in the settings
app for 2.22, 2.23 and trunk (2.24) on Friday.
However, in several different locations the value of the startModule system
setting was being used directly in order to generate a "home" link, for
example for the logo in the header bar. The target of these links would be
"../" + {startModule} + "/index.action". So for example if you set the
start module to "app:My App", the target would become "../app:My
App/index.action" when it actually should be the launch URL of the custom
app.
In order to address this I've changed all the links I could find to point
to redirect.action instead. The problem is that there are potentially a lot
of different locations where this problem exists, so there may still be
some incorrect links left.
Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org
On Mon, Jun 6, 2016 at 1:49 PM, Mike Nelushi <mikeevolution@xxxxxxxxx>
wrote:
> Hi Nicolay,
>
> The start page functionality for custom Apps is still not working.
>
> Please advice.
>
> Regards,
> Mike
>
> On Fri, Jun 3, 2016 at 12:10 PM, Nicolay Ramm <nicolay@xxxxxxxxx> wrote:
>
>> I've now fixed this bug in the settings app and backported to 2.23 and
>> 2.22.
>>
>>
>> Nicolay Ramm
>> Front end developer, DHIS 2
>> University of Oslo
>> https://www.dhis2.org
>>
>> On Fri, Jun 3, 2016 at 11:05 AM, Halvdan Hoem Grelland <halvdan@xxxxxxxxx
>> > wrote:
>>
>>> Hi Mike,
>>>
>>> In relation to api/fileResources I'm going to need more details: which
>>> version are you on, exactly what are you trying to do, etc. A full list of
>>> typically needed details can be found here
>>> <http://dhis2.github.io/dhis2-docs/master/en/implementer/html/ch09s03.html>,
>>> but specifically I'll need to know whether there are any thrown errors on
>>> the server, what HTTP response you are getting and so forth.
>>>
>>> Also, have you familiarised yourself with the documentation for the
>>> fileResource API
>>> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s12.html> ?
>>> In particular make sure to read and understand the constraints (i.e. a FR
>>> must be referenced by a DataValue).
>>>
>>> On Fri, Jun 3, 2016 at 4:58 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>>> wrote:
>>>
>>>> Hi Mike
>>>>
>>>> I'm adding in the dev list, and Halvdan (who knows about file resource
>>>> API). I will have a look at the start as app functionality.
>>>>
>>>> --
>>>> Morten
>>>>
>>>> On Thu, Jun 2, 2016 at 5:00 PM, Mike Nelushi <mikeevolution@xxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Hi Calle,
>>>>>
>>>>> Apologies, forgot to add you on this thread.
>>>>>
>>>>> Regards
>>>>> Mike
>>>>> On 2 Jun 2016 11:35, "Mike Nelushi" <mikeevolution@xxxxxxxxx> wrote:
>>>>>
>>>>>> Hi Morten,
>>>>>>
>>>>>> Its Mike here from HISP-SA.
>>>>>>
>>>>>> We have been strangling to send email to individual users on our new
>>>>>> Community Service Application which is going live tomorrow. At the moment
>>>>>> when I send an email to individuals it sends to everyone who is a DHIS2
>>>>>> user. Im user the dhis2.23 messageConversations web-api for this.
>>>>>>
>>>>>> A. The following are the two json objects I've used, the first one
>>>>>> doesn't send messages at all the messages stays on dhis2 mail.
>>>>>> 1. var json_Data = {"subject": subject, "text": message, "users":
>>>>>> users};
>>>>>> 2.var json_Data = {"subject": subject, "text": message, "users":
>>>>>> users, "organisationUnits": organisationUnits};
>>>>>>
>>>>>>
>>>>>> The following is our email settings
>>>>>>
>>>>>> [image: Inline image 1]
>>>>>>
>>>>>> B. Second Issue is that when we call fileResources webapi to save
>>>>>> file is does work but when you retrieve the file it says the file was not
>>>>>> saved. The following is the object:
>>>>>> var file = item[0].files[0];
>>>>>> var formData = new FormData();
>>>>>> formData.append('file', file);
>>>>>>
>>>>>> C. The start page function on Appearance settings is not working if
>>>>>> you choice your own custom APP, when logging in it does it go to the
>>>>>> landing page instead it goes to index.action.
>>>>>>
>>>>>> Can you please help us with this issues?
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>>
>>> --
>>> Halvdan Hoem Grelland
>>> Software developer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
References