How to build up a new method
for web-based application
using the framework.
AyMINE Framework simplifies implementation
so that a new method is completed in 5 minutes
and immediately available at the web site,
Android and iOS application
1. AyMINE
Look at the youtube video for the tutorial
Presentation Summary:
How to build up a new method
for web-based application
using the framework.
AyMINE Framework simplifies implementation
so that a new method is completed in 5 minutes
and immediately available at the web site,
Android and iOS application
3. Make a new method
●
Define button
●
Set the name of function
●
Define method orchestration
●
Set the rights to use the method
●
Write back-end method
5. AyMINE
–
tak
tepe
business
5
Define button – update view detail
Define button to the object defition (jsonc file):
"buttons":[ … "makeInvitationLong" ],
Set the name and hint (json with translations):
"makeInvitationLong":"Long invit.",
"makeInvitationLong_tooltip":"Set invitation … "
6. AyMINE
–
tak
tepe
business
6
Define operation – create new
Create operation definition
(json object definition):
"makeInvitationLong":{
"enabled":"= obj.isInvitation > 0",
"icon":"time__forward",
"confirm":true,
"a":"server.this.makeInvitationLong"
},
8. AyMINE
–
tak
tepe
business
8
Define request to read a value
Update attributes loaded to the detail:
(json object definition):
"attributes":{ ...
"isInvitation":{
"type":"int",
"sql":"SELECT ... "
}
},
AyMINE server adds new attribute to the list of loaded fields after
the server configuration reset – doesn’t require system stopping
10. AyMINE
–
tak
tepe
business
10
Create new server-based method
The business functionality is performed by server:
public static function makeInvitationLong(Command $command): Response
{
<objectID> = $command→attrVal(<reqested attribute>); // get attributes from
client
// check user right to manage the user status
$reject = static::checkRightsInt(<objectID>, <operation to check>, $_obj);
if ($reject) return $reject;
// make operation
. . .
// return result back to user
if (<everything OK>) return Response::OK();
else return Response::InvalidRequest(); // some problem
}
AyMINE server manges communication between application and server as well as basic rights control
(rights to operate with object)
11. Make a new method – that’s all
●
After reload
function is available
– At the web
application
– In the iOS and
Android
applications
●
No web / application
programming skills needed
– Web is managed by framework
– Method definition is loaded to
the mobile application.
– Recompilation or upgrade
from the web store is not
necessary
Look at the video for complete tutorial how to make a new method