NetSuite workflow "Store Result in" has no fields listed - workflow

I am creating a workflow in NetSuite with an action script that returns an integer value. I added the custom workflow field in the same state as the "Workflow action", but for whatever reason the field I added is not coming up in the "Store Result In" dropdown list. It's been a while but I don't remember having a problem with this before. Oddly no fields come up in that list. Any help would be greatly appreciated. thanks

I found what I was doing wrong, I had neglected to set the return value I was expecting right on the script record. Thanks for all the help

Related

How to dynamically change dialog with select field

I'm new to Magnolia, and I'm making my own module.
I have a dialog box when adding a component and I want to change next fields below dynamically using a select field.
Example:
Select field with {"type 1", "type 2", ...}
IF "type 1" is selected
->show a text field below
ELSE
->show a basicUpload field below
Thanks in advance.
I believe same was already discussed here and few other places if you look over questions tagged "magnolia".
Long story short, fields are atomic, independent entities. They do not know about each other. So the only way to create such dynamic connection is over "parent" form. You need to extend form presenter and field factory (if you want select that would be SelectFieldFactory) and in there, when field is created, attach value changed or similar listener to it so when value is changed in the field, you can inform presenter to make some other field visible or hide it.
IIRC you can see example of that done in External Forms module (if you have access to enterprise code). Not sure if any of the community modules show the same.

Access 2016: Form shows now results when using a query parameter from included ComboBox

I'm banging my head against a wall trying to solve something I'm sure is simple. I'm using Access 2016 and trying to build a form which essentially has a filter combo box in the header.
Let's say the form is called myForm and the comboBox cboStatus. The query contains a field called status.
In my query, I basically have SELECT * FROM myQuery WHERE [myQuery].[status]=[Forms]![myForm]![cboStatus]. Eventually, I intend to add a VBA-based event on the COmboBox to update the query when it changes, but for now, I select a value and hit Refresh All on the form, just to test it.
No matter what value I have in the ComboBox, no records display in the form. What am I missing? Thanks in advance!
If status is a text field then you need
SELECT * FROM myQuery WHERE [myQuery].[status]= "'" & [Forms]![myForm]![cboStatus] & "'"
I think I have solved it! I didn't define the form element (comboBox) as a parameter in the SQL query. Adding:
PARAMETERS [Forms]![myForm]![cboStatus] Text ( 255 );
seems to have fixed it! Wanted to make sure I responded in case anyone else has the same issue!

using Ajax , dropdownlist and page validation

using Ajax I filled Country, State and city dropdownlist. On land change state is filled and on state change city is filled properly.
Then when I try to save page I face this :Invalid postback or callback argument.
Searched and found out that this is due to change in ddl.selectedvalu change from initial value that is assigned by asp.net.
Now my question is that how can I let asp.net know that the new ddl value is valid?
Thank you.
In many pages it is recommended to use EnableEventValidation="false", but I prefer not to use it.
Some say that use Render and add value to notify .Net like this:
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
ClientScript.RegisterForEventValidation("ddlLanguages ", "English");
ClientScript.RegisterForEventValidation("ddlLanguages ", "Tamil");
ClientScript.RegisterForEventValidation("ddlLanguages ", "Hindi");
base.Render(writer);
}
but how to use it? where to put it?
for a better understanding I put here a sample code including Database script :
hesab20.com/DownLoad/Ajax.zip
in this sample Javascript is used to fill drop-down list . But when click button is executed and a post back occur, error happen.
Please help if you have experience with this.
Regards.
Please run the sample code and change the drop down lists , automatically the other is filled , meaning that list item text and value is completely changed. finally click button for a post back.
you must see that error happens:
Invalid postback or callback argument. Event validation ....
and note : EnableEventValidation="true"
Thanks

JIRA Greenhopper - How to set the 'Flagged' custom field of type “Multi-Checkboxes” in a Workflow Transition's Post Function

In our Jira (v4.4) we are using Greenhopper (v5.7.4), as such Greenhopper makes use of the Flagged custom field to mark Impediments, it is of type "Multi-Checkboxes".
Whilst transitioning from one state to another we are using a pre-installed Post Function to try a set the Flagged custom field. Specifically we are trying the 'Set field value from User Property value' post function.
To support this 'post function' we have tried adding a transition property called flagged with value Impediment and referencing it in the 'post function'.
This doesn't work.
Essentially 2 questions arise.
Is this 'post function' the best way to set a Multi-Checkbox.
If so, how do we specify the Impediment to be true?
For a better explanation of the default flagging behaviour see Flagging Issues in Greenhopper, this is what we want to automate in our transition's 'post function'.
Resolved the Issue - for those that may be looking for a similar solution - here is what I discovered, hope it helps.
Contacting Atlassian the following was suggested:
To set the multi checkbox custom field via post-function is possible.
First of all, you need to install JIRA suites utility plugin:
https://plugins.atlassian.com/plugin/details/5048 After that, in the
workflow transition, add a "Update Issue Custom Field" post function
with your custom field and put the flagged option (e.g. Impediment)
written in the "Custom Field Value" field.
So using the suggested "Update Issue Custom Field" post function I chose the Flagged custom field and used the value 'Impediment' on its own. This worked.
For another transition that unmarked the impediment I used the "Clear Field Value Function" and simple chose the "Flagged" field. This also worked at clearing the Impediment.

I'm not specifying the form action but it (automatically) gives different values in some cases

I'm creating my form using the Form helper, so the action of the form is specified automatically....
this form is used for editing a post..
so, the URL has the structure: mywebsite.com/posts/edit/id
and the form's action should be automatically generated as posts/edit/id
but the problem is, in some cases, I open the HTML code and I find that the form's action is only posts/edit without the id which causes the update to fail...
I spent a lot of time to figure out what situation brings this wrong action:
i'm generating fields dynamically (using javascript & ajax) depending on the post's category..
when the value of one of the dynamically generated fields is invalid, the generated action becomes posts/edit !!
I really need help, cuz I don't know why this is happening !!!
and I don't wanna waste more time digging into the core of cakephp...
so, if any of cakephp experts has an idea about this, plz help me !!
thank you in advance !
Use the url parameter, which allows you to explicitly define a url for the form:
echo $form->create('Post', array('url' => $html->url(array('action'=>'edit', $id))));
It sounds like $id probably isn't getting set, because it should be getting passed along if it is. You need to make sure it's set to edit the record in question. Make sure your javascript is including the hidden field with the record's id in it.
Normally done like this, with the form helper: echo $this->Form->input('id');
Also, if one of the fields is invalid, the form shouldn't actually be submitting properly, if you are using cake's validation, so this is to be expected.