atang

1

votes
1

answer
47

views

Azure DNS CNAME subdomain

We have two sites: proddomain.com (proddomain.azurewebsites.net) stagingdomain.azurewebsites.net We need to make stagingdomain.azurewebsites.net a subdomain of proddomain.com, for example stagingdomain.proddomain.com. We added a CNAME of 'stagingdomain' to proddomain.com DNS, but when going to the...
atang
0

votes
0

answer
5

views

403 Forbidden making a POST after GET with same CSRF Token

First method: Get the CSRF token string from an GET_API_URL. This works fine. Second method: Make a POST to POST_API_URL with the obtained CSRF string. Problem is, no matter what I tried, it kept getting 403 Forbidden error. Have tried storing first response's cookies (3 cookies - 2 are secure) int...
atang
1

votes
1

answer
677

views

JasperReport: How to display dynamic list in a table

I want to display list in a table. The parameter of list query is based on the value of the table item. example : And what i want to do is to create a dataset query based on promoids. I have created a query like this: But, that does not work. When I run the report, that will display query error lik...
Atang Sutisna
1

votes
1

answer
383

views

Scala Parse String Class and Compile in Run-Time

I want to implement a function in scala that can parse string of a source code (a class object) and compile it to an object in the run time. For example, the function is what I have tried so far. My goal is that run it compiled in run-time environment, I can use it constructor or its function. This...
ATANG
1

votes
1

answer
1.5k

views

fineUploader minimum number of files validation

I am using FineUploader with MVC 4, and I realize that fineUploader would not post if there is not file being selected, and I was wondering if there's a validation for it to have the user upload at least one file? Below is how I am using fineUploader. // INITIALIZING FINEUPLOADER manualUploader = $(...
atang
1

votes
2

answer
544

views

How to make query based on string length on aggregate function mongodb

I have product collections like this: { _id: 'prod_id_1', type: SIMPLE, name: 'Product Simple 1', barcode: '00000004' }, { _id: 'prod_id_2', type: SIMPLE, name: 'Product Simple 2', barcode: '00000005' }, { _id: 'prod_id_3', type: VARIED, name: 'Product Varied 1', variants: [ { id: 'variant_aqua_bas...
Atang Sutisna
2

votes
2

answer
4.8k

views

Mapping JSON to Java Object return null value

I want to parsing json object like this: { 'Count' : 1, 'Data' : [ { 'ContactID' : 1567993182, 'Email' : '[email protected]', 'Action' : 'unsub', 'Name' : '', 'Properties' : {} } ], 'Total' : 1 } to this java object. public class Response { @JsonProperty('Status') private String...
Atang Sutisna
1

votes
3

answer
2.5k

views

form reset button conflict with jquery reset

I encounter something weird. I have the following form: As you can see, there is a reset button inside to clear all the form. I am using Knockout.js to bind the submit of the form and reset it this way... self.addExpense = function (formElement) { $('#addExpenseForm')[0].reset(); }; Everything seems...
atang
1

votes
2

answer
878

views

Orchard CMS Custom Form

I am new to Orchard and still learning. I created a custom form on Orchard CMS, but when I submit the form as a anonymous, it asks me to login, how do I prevent that as my form is a public form and does not need authentication. I added a layer to the widget to be not authenticated, but that doesn't...
atang