Need a special offer?Find out if your project fits.
+

Flexmonster Data server data connection problems

Open
dongbeom Kim asked on July 24, 2020

The flexmonster pivot table that was previously built was made in pivot type json
and used as a parameter to the setReport method.

Object.assign(this.pivotReport.dataSource, {data : {response}});
Object.assign(this.pivotReport, {slice: conditions.slice});
Object.assign(this.pivotReport, {options: conditions.options});
Object.assign(this.pivotReport);

this.pivotTab.flexmonster.setReport(this.pivotReport);

However, in order to use the data server, the code is changed as shown below.

Object.assign(this.pivotReport.dataSource, {type: conditions.dataSource.type, url: conditions.dataSource.url, index : conditions.dataSource.index});
Object.assign(this.pivotReport, {slice: conditions.slice});
Object.assign(this.pivotReport, {options: conditions.options});
Object.assign(this.pivotReport);

this.pivotTab.flexmonster.setReport(this.pivotReport);

In the same code as the previous one,
data was subtracted from dataSource and the address currently open on the server was put.
 
dataSource{type"api"url"http://127.0.0.1:9500"index"sample-index"}
 
I've tried everything like url
http://localhost:9500, https://localhost:9500, http://127.0.0.1:9500, https://127.0.0.1:9500
 
The data is put in the form of csv at the corresponding position of the index.
I am sure that there is no problem with the code because I wrote the code perfectly by referring to the flexmonster config file https://www.flexmonster.com/doc/getting-started-with-data-server/
No response to Flexmonster data server. When called with postman, there is a response with a 404 error dropping, but there is no response when the project is executed.
Also, no error message is returned to the pivot table.
(flexmonsterttt file reference)
 
Please let me know all the parts that might be a problem.
 
 

Attachments:
flexmonsterttt.png

5 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster July 24, 2020

Hi!
 
Thank you for posting your question.
 
So far, it is not exactly clear to us what might be the issue in your situation.
 
In order for us to investigate this further, would it be possible for you to provide us with your report configurations together with a dummy data sample with which this is reproducible? The configurations of your Flexmonster Data Server instance and the screenshot of your browser's console (in case it returns any errors) would also help greatly.
 
Thank you in advance and looking forward to hearing from you.
 
Best regards,
Mykhailo

 

 
 

Public
dongbeom Kim July 24, 2020

There is no reaction even though it is reproduced as it is by referring to the document using dataserver.
No error message is displayed, and only the empty pivot table is shown as the picture attached above.

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster July 27, 2020

Hi Kim,
 
As a potential solution, we would suggest specifying the report object immediately on Flexmonster initialization, instead of through the setReport() API call: 
 

var pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true,
report: {
dataSource: {
type: "api",
url: "http://localhost:9500",
index: "sample-index"
}
},
licenseKey: "XXXX-XXXX-XXXX-XXXX-XXXX"
});

 
It seems to us that for some reason the 
 

this.pivotTab.flexmonster.setReport(this.pivotReport);

 
line of code might not be executed, which is why we are suggesting to try a different approach. It might also help to check whether your report object is structured correctly – a badly composed report might be one of the potential reasons for issues like this.
 
Please let us know if this helps.
 
Regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster August 3, 2020

Hi Kim,
 
Hope you're doing well!
 
We were wondering if you've found our previous response helpful. Have you managed to overcome the initially reported issue, or is there still anything we can assist you with?
 
Please let us know what you think.
 
Best regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster August 10, 2020

Hi Kim,
 
How are you?
 
Just checking in to ask if you've had a chance to check out our response to your initial question. Was it helpful?
 
We would be happy to hear your feedback.
 
Regards,
Mykhailo  

Please login or Register to Submit Answer