Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Sprintstar 6/11/2008 1:04 PM
I have created a module using the Cuyahoga Module Development Guide (nice and clear btw), and it works. However in the module list its 'Installation Status' is 'uninstalled'. Why is this, and does it matter?
# Sprintstar 6/12/2008 9:47 AM
Further to this, I have added the 'Forms' module, and I was able to install it but its Activation Status is set to 'Not Active', and when I try and use the module, I get an error. Any ideas why it might not be active, and how I go about activating it?

Thanks

Chris
# Sprintstar 6/12/2008 9:54 AM (edited 6/12/2008 9:55 AM)
I have fixed the issue with the forms module, I had failed to copy 'Util\ejemplo.xml'.. Once that was copied to my web server, it became active in the list, and I was able to start using it. :)
# MasterPie 6/18/2008 5:29 PM
I'm having the same issue. My module just says "Uninstalled" and "Not Active"
# YKS 6/19/2008 10:25 AM (edited 6/19/2008 10:31 AM)
We release a new version of Cuyahoga.Modules.Forms with support of upload fields , and querystrings fields.

For use you must make a little changes into your xform structure.


Example of the new structure with new supports fields.
<?xml version="1.0" encoding="utf-8"?]
[xform]

  [control type="input"]
    [input ref="name"]
      [Label required="true" validationrule="" requiredtext="" errortext=""]Name:[/Label]
    [/input]
  [/control]

  [control type="input"]
    [input ref="surname"]
      [Label required="true" validationrule="" requiredtext="" errortext=""]Surname:[/Label]
    [/input]
  [/control]

  [control type="input"]
    [input ref="email"]
      [Label required="true" validationrule="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" requiredtext="" errortext=""]Email:[/Label]
    [/input]
  [/control]

  [control type="input"]
    [input ref="contactphone"]
      [Label required="true" validationrule="\(\d{3}\)\-\d{3}\-\d{7}|\(\d{3}\)\d{3}\-\d{7}|\(\d{3}\)\-\d{9}|\(\d{3}\)\d{9}|\d{3}\-\d{9}|\d{3}\d{9}|\d{9}|\d{4}\-\d{7}|\(\d{4}\)\-\d{7}" requiredtext="" errortext=""]Contact Phone:[/Label]
    [/input]
  [/control]

 
  [control type="textarea"]
    [input ref="coments"]
      [Label required="true" validationrule="" requiredtext="" errortext=""]Comments:[/Label]
    [/input]
  [/control]


  [control type="listboxsimple"]

    [select1 ref="age"]

      [Label required="true" validationrule="" requiredtext="" errortext=""]Age[/Label]

      [choices]

        [item]

          [Label]Age -18[/Label]

          [value]-18[/value]

        [/item]

        [item]

          [Label]Age +18[/Label]

          [value]+18[/value]

        [/item]



      [/choices]

    [/select1]
  [/control]


  [control type="listboxmulti"]

    [select1 ref="hobbies"]

      [Label required="true" validationrule="" requiredtext="" errortext=""]Hobbies[/Label]

      [choices]

        [item]

          [Label]Music[/Label]

          [value]music[/value]

        [/item]

        [item]

          [Label]Soccer[/Label]

          [value]soccer[/value]

        [/item]



      [/choices]

    [/select1]


  [/control]


  [control type="droplist"]

    [select1 ref="job"]

      [Label required="true" validationrule="" requiredtext="" errortext=""]Job[/Label]

      [choices]

        [item]

          [Label]Developer[/Label]

          [value]developer[/value]

        [/item]

        [item]

          [Label]Farmer[/Label]

          [value]farmer[/value]

        [/item]

      [/choices]

    [/select1]


  [/control]

  [control type="radiobutton"]

    [select1 ref="member"]

      [Label required="true" validationrule="" requiredtext="" errortext=""]Member of Cuyahoga Contrib?[/Label]

      [choices]

        [item]

          [Label]Yes[/Label]

          [value]yes[/value]

        [/item]

        [item]

          [Label]No[/Label]

          [value]no[/value]

        [/item]



      [/choices]

    [/select1]


  [/control]

  
  [control type="external"]

    [external ref="utm_source"]
      [Label required="true" validationrule="" requiredtext="" errortext=""]Source[/Label]
    [/external]

  [/control]

  [control type="fileupload"]

    [fileupload ref="cv"]
      [Label required="true" requiredtext="" extension="doc" length="300"]Your CV[/Label]
    [/fileupload]

  [/control]

[/xform]
*Replace [ and ] for < and >


Render of Example


# markfind 6/19/2008 11:17 AM (edited 6/19/2008 11:20 AM)
YKSWe release a new version of Cuyahoga.Modules.Forms with support of upload fields , and querystrings fields.

Could you please document this module in CuyahogaContrib Wiki?

And when will you release it?

Thanks, Marco
# Sprintstar 7/8/2008 9:25 AM (edited 7/8/2008 9:51 AM)
MasterPieI'm having the same issue. My module just says "Uninstalled" and "Not Active"

I have now worked this one out too, with a new module I am building. Its because I had to install directory. Create an install directory like the other modules (make sure its copied to the web dir with the post build script). This install script needs to add an entry to cuyahoga_moduletype and cuyahoga_version, and create any other tables it might need. Once this is in place you will get an install link, which will run your install script.

My next problem is now I have installed it, it says 'not-active'.. :( When I work this one out I will post here.

edit - I had messed up my row in cuyahoga_moduletype! lol.. Once corrected it all worked fine..
# YKS 7/8/2008 3:33 PM (edited 7/8/2008 3:42 PM)
You have a new realease of Cuyahoga.Modules.Forms. Its change structure of xml and add new controls: upload file control and QueryStrings Fields.Now you can add error text for requeried fields and error of format.

You can download it from contrib.

Note of release

- Add upload field.
- Add QueryString Fields (You can catch values of querystring).
- Add custom text for each requeried field or Error of format text.
- Add IActionConsumer.
- Add a Group name for agrupate forms for export from webservice.


Technical notes

- Now for DAO operation module use a service.



# martijnb 7/9/2008 10:12 AM
Maybe it's a good thing to create a new topic for module news. This way more people will notice it.