Creating new form in moodle - moodle

I have created a new module in moodle from the link New Module. I have installed that as well and it is showing up in the Administration ->Activities.
How to add a new form against that module to get the user inputs?

Please check the mod_form.php in the documentation. This is used to add an instance of the new activity. Please check the existing modules also.

Related

Creating moodle plugin to accept REST calls and create activities/notice/files

Im quite new to moodle development. Im trying to post activity/notice to a selected course. I could not find any webservice for creating activities within a course. Is there any way i could create a plug-in where i could make a REST call to the plug so that it would create a notice?. An example would help allot.
STEP 1
To create local plugin you can follow following folder structure according to Moodle documentation (https://docs.moodle.org/dev/Local_plugins)-
local/
yourplugin/
db/
access.php
install.php
install.xml
lang/
en/
yourplugin.php
index.php
settings.php
version.php
Meanwhile, creating local plugin does not always really solve all problems as there are limitation depending what you really want to achieve.
what worked for me was editing //moodle_dir/course/modedit.php file, and i was able to make REST Call to add scorm activity to any course i want.

CRM 2016-Plugin Registring New Step

I am very new to MSCRM, so requesting for help. I am using Office365, i.e. MSCRM online organisation.
Here, I have written a plugin which should be fired when, in an Account entity, user uploads his image, the plugin stores the image as an attachment, in notes.
The plugin works fine, when I tested it by writing a console application.
I have registered the plugin and believe it will work fine here too. The only problem is I am unable to register the plugin new step.
The problem is in Filtering Attributes , I am unable to get entityimage attribute, even if i select/check All attributes.
Please suggest how should I proceed.
In this scenario you can write plugin on "Create" message of "Annotation" entity. And create message does not have any filtered attributes.
As you wrote and tested using Console Application, while converting it to plugin make sure that you are checking created note contains data into "FileName" and "DocumentBody" attribute. Along with you can also check whether this note is created against "Account" entity. This two conditions will narrow your scope, limited to notes created against account having some attachment. In plugin execution context you'll get above mentioned attributes.

How to crete New Web Service inside moodle?

I am go through the service module inside moodle , how can i add my own function and class for handling some operations such as enrolling and register . is it possible or not
You need to create a new plugin (probably a 'local' plugin) and add a webservice within it:
https://docs.moodle.org/dev/Adding_a_web_service_to_a_plugin
this might help
https://docs.moodle.org/dev/Web_service_API_functions
even this---
https://docs.moodle.org/31/en/Using_web_services
I created a new web service "core_completion_override_course_completion_status"
Duplicate any existing web service and replace the words as per your need in the method name, class name etc.
Increate Moodle main version from version.php in root moodle folder.

How can I create new Resource in Moodle?

I have to create new Resource in Moodle (currently available resources are Book, File, Label etc). I know how to create an activity module in Moodle. I think both activity and resource are created in similar way. Then how can I align the newly created resource below the RESOURCES section(while adding the activity/resource in course).
Please help me to find any link/suggestion regarding to create resources in Moodle....
In your plugin's PLUGINNAME_supports function, just return MOD_ARCHETYPE_RESOURCE when asked about feature FEATURE_MOD_ARCHETYPE.
See example at the start of the mod/page/lib.php file -https://github.com/moodle/moodle/blob/master/mod/page/lib.php

How to create an ATG store?

I have been studying ATG for about 4 months and now I am facing a problem: even going through the documentation I can't find any document that can clearly explain how I can create a new empty store.
I know that I need to have my database users and schemas, the application server scripts (I'm using weblogic) and the module in Eclipse. But I can't find anywhere how to create a new store, implement it from the beginning and see the result in the browser.
There is no such document for ATG. You either need to start from the Commerce Reference Store and customise that (in versions prior to ATG 11 would would strongly suggest not to use the CRS as your basis for a new site) or you can look at what the CRS executes for the runAssembler command, remove the CRS specific modules from that and then create, and include your own modules for the Storefront and your source code.
There is no empty store you can install and run. You have to build one. Or you can install CRS, which is not empty, but it is relatively straightforward to install and can be customized.
The documentation to follow:
http://docs.oracle.com/cd/E52191_02/CRS.11-1/ATGCRSInstall/ATGCRSInstall.pdf
https://www.sparkred.com/blog/installing-oracle-commerce-11-1-with-commerce-reference-store/
*