I am using a CDE plugin in pentaho
I am creating a dashboard containing the result of a xaction in a CDE dashboard
can anybody plz tell me how can i conclude xaction in a CDE dashboard
i am including the xaction as a component , but in the preview there is no result as the xaction produces
the components asks for
name
path
action
solution
what should i enter here
here is my xaction
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>nov12xaction</title>
<version>1</version>
<logging-level>ERROR</logging-level>
<documentation>
<author>hussain</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type>text</result-type>
<icon/>
</documentation>
<inputs/>
<outputs>
<query_result type="result-set"/>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-outputs>
<query-result type="result-set" mapping="query_result"/>
</action-outputs>
<component-definition>
<query><![CDATA[select * from student where pointer > 30;]]></query>
<live><![CDATA[true]]></live>
<driver><![CDATA[com.jdbc.odbc.Driver]]></driver>
<connection><![CDATA[jdbc:mysql://localhost:3306/xactionstudy]]></connection>
<user-id><![CDATA[root]]></user-id>
<password><![CDATA[root]]></password>
</component-definition>
</action-definition>
</actions>
</action-sequence>
i think i got the correct solution
i tried to crete the URl for the browser
so i set
solution=steel-wheels&
path=dashboards&
action=nov12xaction.xaction // or whatever the action name is
and it simply works
put your xaction into CDE dashboard folder and use execute xaction component
Related
My app is working fine but my compiler is behaving in a very uncanny way. I am creating an android app using Kotlin & room database which allows user to add their favorite dishes. Suppose a person like noodles, then he/she can add a picture , instructions , ingredients etc. regarding noodles. I have one fragment where all our added dishes are shown in a recycler view and upon clicking any recycler view item , a new fragment opens up which shows detailed info about the clicked dish. Hence I need to pass information from one fragment to another and while doing so, it shows me an error while I implement the navArgs() function. Can Someone guide me please. My fragment names are AllDishesFragment & DishDetailFragment
This is my mobile-navigation code . ->
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="#+id/mobile_navigation"
app:startDestination="#+id/navigation_all_dishes">
<fragment
android:id="#+id/navigation_all_dishes"
android:name="com.example.favdish.view.fragments.AllDishesFragment"
android:label="All Dishes"
tools:layout="#layout/fragment_all_dishes" >
<action
android:id="#+id/action_navigation_all_dishes_to_navigation_dish_details"
app:destination="#id/navigation_dish_details" />
</fragment>
<fragment
android:id="#+id/navigation_dish_details"
android:name="com.example.favdish.view.fragments.DishDetailsFragment"
android:label="Dish Details"
tools:layout="#layout/fragment_dish_details">
<argument
android:name="dishDetails"
app:argType="com.example.favdish.model.entities.FavDishEntity"/>
</fragment>
</navigation>
This function is coded in the AllDishesFragment. With the help of nav controller it takes me to the DishDetailFragment. I have called this function in the recycler view adapter. Since I am using the room databse , FavDishEntity is the name of my entity
fun dishDetails(favDishEntity : FavDishEntity){
findNavController().navigate(AllDishesFragmentDirections.actionNavigationAllDishesToNavigationDishDetails(
favDishEntity
))
}
Now I tried implementing navArgs() in my DishDetailFragment but it shows a red line under it . Can someone please guide me ->
I have created my Apache Velocity template under /resources/fileTemplates/internal/myTemplateClass.vm and would like to use it through:
final JavaDirectoryServiceImpl javaDirectoryService = new JavaDirectoryServiceImpl();
javaDirectoryService.createClass(myPsiDirectory,
"MyClassname",
"myTemplateClass");
So I added the following in my plugin.xml:
<extensions defaultExtensionNs="com.intellij">
<!-- Add your extensions here -->
<internalFileTemplate name="myTemplateClass"/>
</extensions>
However when I run my plugin it claims that it did not find a template with the name "myTemplateClass". I assume it is cause I haven't linked to the file perse. Where should I link this?
Thanks
If you have an <internalFileTemplate> with the name of "myTemplateClass" and you want to use it to create a Java class, the template needs to be stored as fileTemplates/internal/myTemplateClass.java.ft. So you need to change the extension of your file.
I can't change the default name for my pdf reports. It works if I do it in the settings but I don't want to do it this way. I tried by using report_name in my <report> but it says that report_name is not an element of report. I can't figure out how to do it.
For set-up custom name of qweb report you can set attachment attribute of report.
Example is available if for invoice:
<report
id="account_invoices"
model="account.invoice"
string="Invoices"
report_type="qweb-pdf"
name="account.report_invoice"
file="account.report_invoice"
attachment_use="True"
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')"
/>
Try to use module : https://www.odoo.com/apps/modules/8.0/report_custom_filename/
Hope this helps.
What are my options for attaching an SPEmailEventReceiver to a document library? Should the Elements file contain the specific library?
<Elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListTemplateId="101">
<Receiver>
<Name>EventReceiver1EmailReceived</Name>
<Type>EmailReceived</Type>
<Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
<Class>EmailLogic.EventReceiver1.EventReceiver1</Class>
<SequenceNumber>10000</SequenceNumber>
</Receiver>
</Receivers>
</Elements>
What about manual, programatic or powershell to attach it?
Using VS is very easy, just select the Library after select List Email Event (using new element select "Event Receiver"), then in codebehind, using List parameter you can check if the Library is the one that you need comparing: ID, name, url, etc.
I created a simple xaction with jdbc connection.The action was successful but am getting a blank report.
Resultset is not shown up.
enter code here
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>latest1</title>
<version>1</version>
<logging-level>TRACE</logging-level>
<documentation>
<author>reskin</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type>none</result-type>
<icon/>
</documentation>
<inputs/>
<outputs>
<resultset type="result-set" is-output-parameter="false">
<destinations>
<response>resultset</response>
</destinations>
</resultset>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-outputs>
<query-result type="result-set" mapping="resultset"/>
</action-outputs>
<component-definition>
<query><![CDATA[select * from cust_txn_list]]></query>
<live><![CDATA[true]]></live>
<driver><![CDATA[com.mysql.jdbc.Driver]]></driver>
<connection><![CDATA[jdbc:mysql://localhost:3306/hive_sample]]></connection>
<user-id><![CDATA[root]]></user-id>
<password><![CDATA[553450]]></password>
</component-definition>
</action-definition>
</actions>
</action-sequence>
I am getting the following warning message in BI Server log
Parameters: Invalid chunk '' ignored. is the warning
My problem is solved.The problem was due to the ouput paramater,"is output parameter checkbox should be checked always.