Being a Developer with a 0 Dollar Budget for Training, all of my information comes from trial and error along with Google Searching. I am creating a new Educational Application utilizing my knowledge of past projects with MuraFW/1 on this project.
In the past the MuraFW/1 was using cffunction within the plugin.cfc file and the latest version is using cfscript.
In the old version, I have code within the install function that creates a new Group as outlined below:
However if I do something like the following in cfscript, I am getting an error message: invalid component definition, can't find component [MuraAuctions.Application]
What would the correct syntax be in an example if available on creating a new Mura Group within the install section of plugin.cfc and then what would be the way to delete this group within the Delete Section of the plugin.
Being a Developer with a 0 Dollar Budget for Training, all of my information comes from trial and error along with Google Searching. I am creating a new Educational Application utilizing my knowledge of past projects with MuraFW/1 on this project.
In the past the MuraFW/1 was using cffunction within the plugin.cfc file and the latest version is using cfscript.
In the old version, I have code within the install function that creates a new Group as outlined below:
cfset NewGroupFacilitator = #Application.userManager.read("")# cfset NewGroupFacilitator.setSiteID(Session.SiteID) cfset NewGroupFacilitator.setGroupName("Event Facilitator") cfset NewGroupFacilitator.setType(1) cfset NewGroupFacilitator.setIsPublic(1) cfset NewGroupFacilitator=#Application.userManager.create(NewGroupFacilitator)#
However if I do something like the following in cfscript, I am getting an error message: invalid component definition, can't find component [MuraAuctions.Application]
var NewGroupAuctionAdmin = #application.userManager.read("")#; NewGroupAuctionAdmin.setSiteID(Session.SiteID); NewGroupAuctionAdmin.setGroupName("Auction Administrator"); NewGroupAuctionAdmin.setType(1); NewGroupAuctionAdmin.setIsPublic(1); NewGroupAuctionAdminStatus = #Application.userManager.create(NewGroupAuctionAdmin)#;
What would the correct syntax be in an example if available on creating a new Mura Group within the install section of plugin.cfc and then what would be the way to delete this group within the Delete Section of the plugin.