hi jogeter...

i found problem on init data to textarea, but i can't explain much

i can give the sample of my project 

this picture of xpdl

this is form layout:
input comment : textarea_4
history comment : textarea_1

code on custom html
<style type ="text/css">
	#_ex_textarea_1 {height:300px;}
	#_ex_textarea_4 {height:50px;}
</style>

<script type="text/javascript">

	var Data_history

	function formbuilderOnReady() {
		Data_history = document.getElementById("_ex_textarea_1").value;

	}


	function formbuilderCustomValidation() {

		var var1 = document.getElementById("_ex_textarea_4").value;
		var display_history = "\n"+"------------------" + " [#date.dd'-'MM'-'yyyy hh:mm#] #assignment.assigneeId# " +"\n"+"komentar : " + var1+"\n"+ Data_history +"\n";
		document.getElementById("_ex_textarea_1").value = display_history;

		$('#_ex_textarea_4').attr('value','');

	}


</script>

the problem found when we update comment repeatly

the history comment has missconfiguration on init data from database

for example :

on activity 1
type on input comment :
test 1

on activity 2

type on input comment :
test 2

on activity 3

type on input comment :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

then : see result on history comment on activity 4

look like misconfig or uncorrectly on init data from databse to textarea_1

any idea to solve this problem

  • No labels

11 Comments

  1. Hi there,

    I can't seem to understand on what you are trying to achieve here. Can you tell us on what is your expected result?

    Are you trying to stack the input entered by the user into the other textarea every time the form is submitted? I tried using the same way you did here and it works

    Hugo

  2. yes im trying to stack the input.

    but many time i tried if i use like example above : the result on my computer is:

    ---------------------------------(04-04-201 11:15] admin

    komentar :1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    18

    17

    20

    19

    ---------------------------------(04-04-201 11:15] admin

    komentar :test 2

    komentar: test 1

    ---------------------------------(04-04-201 11:15] admin

  3. may be

    i can give more example:

    you can use xpdl like above, than contain activity 1, activiy 2, activity 3, activity 4 and activity 5

    then make a form : contain only one textarea

    run the proses

    then type :

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    then see the result. on next activity.

    on my computer :

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    18

    17

    20

    19

    >>> we can see that line over 15 , has misconfigured

    1. What do you mean by misconfigured?

      Do you mean, the sequence of lines are being swapped around?

  4. well...

    the sequence of lines are being swapped around in loading data on textarea

    Whether this problem can still be solved??

    or whether this problem is a common problem for loaded data to textarea

    please help

    1. Hi Ario,

      The development team has already resolved this issue in the latest code base. This fix, together with other bug fixes, will be available in the v2.0.2 maintenance release, targeted to be publicly available by end of this week.

  5. hi

    when joget 2.02 release?

    i just need this problem fixed

    or anyone can tell me how to maintain the sourcecode to fix this problem?

    thanks

    1. Hi,

      I'm not sure about the next release dates, someone from the JoGet team would be the best person to comment on that. Regarding building the source code, please refer this page - http://dev.joget.org/community/display/KB/Building+from+Source

      If you face any issues, look through the below pages and see if this has been addressed already -

      http://dev.joget.org/community/display/FORUM/Build+wflow-directory+FAILURE

      http://dev.joget.org/community/display/FORUM/Build+failure+error

      http://dev.joget.org/community/display/FORUM/Source+of+Joget+Workflow+-+SOLVED

      Feel free to open a new thread if you still face issues in building the source code.

      Thanks,

      Arun

    2. Hey,

      The latest package made available to the public is of revision 810 already which is released as version 2.0.2. You can get the installer at [http://sourceforge.net/projects/jogetworkflow/files/joget-setup-2.0.2.exe/download] or get them through svn as well from github.