I have extracted file name from tSQSInput using a tExtractJSONFields component and logged it on to the console using tLogRow. How can I pass this value to the "key" field in tS3Get component?
You can use either a context variable or a globalVariable
tSQSInput-->tExtractJsonFields-->TjavaRow
in tJavarow , set :
context.myKey=input_row.inputkey;
or
global.put("mykey",input_row.inputkey);
("inputkey" being the fieldname for your key)
Then in tS3Get (which you can link through a onSubJobOK), you can use the variable in the right field
context.myKey or ((String)globalMap.get("mykey"))
If you use context variable make sure you declared it on the 'context' tab of your job.
Related
I need to use a selector that can help me get the value of a field of the page type I have added in the content tree.
For example: If I add a page type CMS.News in content tree and set the value of the "Title" field to be "test". So which selector should I use to get the value "test" of the field "Title"?
Thanks in advance.
The easiest will be to use simple Drop-down list control and use Macro expression or SQL query (depends on if you want to retrieve custom field). I will assume that you need custom field, so you can try something like this:
Documents.WithAllData.Columns("Title").Where("ClassName='CMS.News'")#
where Item transformation and Value column fields contains field name that you need: {% Title %}
Normally I would use filter for property like cq:tags as mentioned below. Here I know where cq:tags property exists in content structure:
group.5_group.fulltext.relPath=jcr:content/#cq:tags
group.5_group.fulltext=*location*
For any page where I can drop any number of component and property is inside component node, how will I add filter for such properties.
E.g. My component name is component and prop is property. Some exmaple path for porp can be jcr:content/mainParsys/component/#prop or jcr:content/mainParsys/componen_anyrandomValue/#prop
group.5_group.fulltext.relPath=what_should_be_the_path_or_filter
group.5_group.fulltext=*location*
Why are you trying to search through path if it's undefined?
You can go with the resourceType of the component as it will remain same and try your query in Query Debugger as:
type=nt:unstructured
1_property=sling:resourceType
1_property.value=my-project/components/content/component
2_property=myprop
2_property.operation=exists
It worked for me to search for a property inside a component.
I am working with jasperserver and ireport. I have created multiselect input control. I need to access its id as well as name in report. How can I do that?
You cannot.
The value gets passed as the value of the relevant parameter (the parameter with exactly the same name as the input control). The label used in the input control (if any) does not get passed to the report. It's it's something that you want to pass to the report then you need to pass it as part of the value.
I would like to be able to add a key/value pair label in an install screen. The key is a static text. The value is a dynamic value and a value from a variable should be used to display the value label. I'm not able to do so using install4J. I see options like a textArea, textfield that will enable to be able to do so. However, these are editable fields and does not serve my purpose. I want a non editable field to display a value from a variable. This is not a system variable. This should be a user defined variable. I'm using install4j 4.2 version. Any help in this area is highly appreciated.
Thanks for the response. I was able to create key/value pair. However, I'm not able to define my own installer variable. Can you please let me know where I can define an installer variable that can be used in the key/value pair?
There is a "Key value pair" form component that does exactly what you need. It is available in install4j 4.2.
In the "Value label/Text" property, you can use an installer variable like
${installer:myValue}
for displaying dynamic text.
Using a 'clicked' override on a button, I'd like to modify values in an Axapta form.
I'm able to get data from the form field using:
str strOld = Form_FieldName.valueStr();
I'm able to prepend text to the field using:
Form_FieldName.pasteText(strNew);
I can't seem to find a .clear method or .value= method. I'd like to replace the entire value in the field with new information.
Thanks
If the field is bound to a datasource, you have to modify the value in the datasource. If the field is bound to a variable, then modify the value of the variable itself. It is the easy an smart way to do it.
You can modify the value in the form control by using the .text() method. (The control have to be the AutoDeclaration property set to Yes). This is a setter-getter (parameter) type method used in AX. If no parameter is passed, it is user as getter (read). If you pass a value, this is a setter (write).
Hope this helps.