I add a web panel which create a table and show data from database using context provider.
But I not getting the way how to retrieve the data from web panel.
Any help will be appreciated.
What does "retrieve data from web panel" mean? A panel is for display to the user, it's not for giving other bits of code data.
What are you trying to retrieve and why aren't you asking for the data directly from the appropriate source?
Nic Don't be confused.. Look there is a velocity template that render editable table through web panel plugin module..... and there is a add button on velocity.
What i want when user add data to table and click on button all the value of table stored in db.
Now i am stuck how to get data from table and which class is responsible for handling that event.
I'm afraid your explanations are not helping.
You keep saying web panel. Originally you were asking to get data from this panel, now you've said you're trying to save data.
It's totally unclear what you want to do, or what you have working so far.
Nic, i want to get data from table which is generated by velocity template using web panel. In this table user fill data rows , when user click on button i want to get table rows data and want to store in db.
Problem is that, i dont know, how to get table data on button click so that i can save in db.
Hope u can understand.
I'm really sorry, but repeating things I did not understand before does not add anything.
Could you please just tell us what you have working now (if anything) and what you are trying to get to (So far, all that is clear is that you want to save some table data? But you haven't said whether this belongs to an issue or not, or how you want to implement it)
The last change of goal here now seems to be nothing to do with web-panels or getting data at all.
It seems to be that you want a field that behaves as a table. Your previous mentions of web-panels, getting data and saving things are utterly irrelevant, you just want a table like field. Is that right? (And I have no idea why you've now mentioned "redirect to other page")
I cannot help you when you do not explain what you want to do.
Yes, you want a table field, we got to that in the end.
But you need to explain "fetch". What does it do? Think of the end-user - what do they do that does this "fetch" and what do they get back?
Argh. <rant>Then why did you waste so much time saying it and then avoiding explaining it? </end rant>
The answer to the table part of the question is two parts
1) Keeping it simple - just ask your users to fill in a text field with table formatting. (Additionally, you could write a simple validator add-on to check that the data they've entered is in the right format)
2) Probably closer "you'll need code, and quite a lot of it". It probably should be a field, as it's issue data, and to do that, you'll need to write a set of templates for rendering and accepting inputs, plus back end code to store it somehow (JIRA's custom field storage is simple numbers or strings, or arrays of them, so you'll either need to come up with a way to convert from table to string/array, or implement a new storage format)
On the second point, I'd avoid writing all that code by using https://marketplace.atlassian.com/plugins/com.idalko.jira.plugins.igrid/server/overview instead.
Nic context is this..
1 > I render table using webpanel with a save button.
2 > When user click on save button i want to call a method on any java class with parameters and that parameters contains data from table.
3> Java class method save that data.
So help me to achieve this. if it is feasible in jira.
If you do this as a field, then JIRA's edit functionality will do most of the work for you. You will need to provide a "view" template to show the user the current values, and an "edit" template to allow them to change the data when it's on an edit screen. You will also need some java to save and retrieve the data if you are translating it between storage and screen (e.g. your templates display a table, but you're actually storing xml). If you do it that way, then you don't need "save" buttons - the data will be saved by the edit action in JIRA
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs