CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Custom Action Problem

Print topic Send  topic

Author Message
gesto


Posts: 42
Posted: 04/11/2007, 7:33 AM

I am trying to build up a server custom action in Code charge but I cant make it write the code lines.

a simple xml pasted on "\Components\Actions\Server\General" folder named "CustomAction.xml"

with the code

  
<Action>  
      <Languages>  
        <Language name="C#">  
		          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >  
            <xsl:template match="Event[not(@type='Client')]/Actions/Action[@actionName='CustomAction']">  
  
			<l>  
              //CustomAction Code should be placed here;  
			</l>  
			       </xsl:template>  
          </xsl:stylesheet>  
  
        </Language>  
     </Languages>  
</Action>  

just following the original code charge actions, the action is showed and after inserting the event and clicking over to "show code" it gives the Error in the 'Messages' Window

Quote :
Error: EditableGrid Teste -> Event BeforeExecuteInsert: Action: "CustomAction": The Control Name is required.

I tried to copy the XML from a original action and it happens the same error, is there another configuration in codecharge that has to be made to make a custom action really works?

If not, could you please say what am i doing wrong!?!?!
thanks
View profile  Send private message
matheus

Posts: 386
Posted: 04/11/2007, 10:03 AM

Look in beginning of XML file.

Maybe have something like this:
  
    <Property  
      name="propxxxx"  
      caption=""  
      description=""  
      dataType="Text"  
      controlType="TextBox"  
      required="True"  
    />  

And is required true the control value.
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
gesto


Posts: 42
Posted: 04/11/2007, 10:16 AM

when the error appear my first reacton was to check the required options and set then to False, but even without the <Property> Tag the error appears.

If yu chceck the example will see no <Property> tag and the error appears when I try to vizualize the code.
View profile  Send private message
matheus

Posts: 386
Posted: 04/11/2007, 11:56 AM

Search in XML file something like:
  
is required.  

I see that some action code have something like this:

  
    <xsl:variable name="Name_Required"  
      select="concat(CCCommon:getActionPath($Control, current()), 'Tag Name is required.')"/>  
    <xsl:if test="CCCommon:checkAttribute(current(), '@name', $Name_Required)"/>  
    <xsl:variable name="condition_Required"  
      select="concat(CCCommon:getActionPath($Control, current()), 'Expression is required.')"/>  
    <xsl:if test="CCCommon:checkAttribute(current(), '@expression', $condition_Required)"/>  


And what PHP3 topic's title? If you want a Action Code in C#???

Off-topic: Editable Teste?? Where are you from?

[]'s
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
gesto


Posts: 42
Posted: 04/11/2007, 12:19 PM

I didn't type anything about PHP, this forum might be crazy....

I tested, it didnt work, I think I must registrate that XML file or the Action Name of the Custom Action somewhere that I can't find....


the error message appears in the message window when I try to see the code generated or publish the file with the 'CustomAction'

it is diferent from the message of when you don't fill a parameter that is set as required="True".
View profile  Send private message
matheus

Posts: 386
Posted: 04/11/2007, 1:14 PM

Didn't need register XML file anywhere.

It must have a unique file name, and in file change from source name to name you want.

Try get the Custom Code.xml.

Copy and put CustomAction.xml

Replace all Custom Code occurrences in files to CustomAction.xml.

It must work.

Is CCS3 or CCS2?
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.