Git client for ABAP
Go to file
Kjetil Kilhavn cfcee287a8
Fix for Java GUI so new repo can be defined (#4655)
* Fix for Java GUI so new repo can be defined

The HTML demo programs are able to pass values from a form, so why does abapGit not work with Java GUI?
I've been trying to figure this out. The key to a break-through was not any fancy code analysis, it was "brute force".
I added a method in ZCL_ABAPGIT_HTML_FORM to replace the generated HTML by a copy of the resulting HTML. Then I removed things until POST-data was filled, and added things back until it broke again.

The main issue was of course the complete lack of POST-data for the event.
This is solved by adding an action attribute to the form element and removing the form-action attribute from the 'default' submit button.

The biggest surprise was that radion buttons don't work as they should. Values are returned as if both radio buttons (in the new online repository form) are checked - which of course is not possible. I tried enabling the query table in the HTML viewer just in case this was specific to the POST-data, but no such luck, it is probably a problem with the HTML viewer itself. You won't find any samples from SAP with radio buttons either.
The bug is possibly fixed by the patch in Note 2832978.

The solution is far from perfect, but at least it is now possible to add new repositories in Java GUI.
The most annoying problem that remains is that if a dialog is opened to select a package or branch the existing input data are lost. One step at a time though...

* Update src/ui/zcl_abapgit_html_form.clas.abap

Linter fix

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* Single-parameter calls on one line

One extended line, mind you...

* One argument per line - when possible

Don't break the string expression up over more lines thna neessary.

* Keep line length under 120 characters

* Playing catch-up

Fixing the conflict after another pull-request was merged

* Catch up with main branch

I didn't understand from the conflict resolution view on github the total difference between main and my fork. Looked at the source file and it became clear. 
So hopefully this is the last commit... (and hopefully that won't be "famous last words")

* Time to learn about rebase...

Removed duplicate statement to get number of rows

* Conflicting line reset

Reset to main
<<<<<<< kjetil-kilhavn/javagui-fix
          ii_html->add( |<td><input type="text" name="{ lv_cell_id }" id="{ lv_cell_id }"|
                     %26%26 | value="{ lv_value }"{ lv_readonly }></td>| ).
=======
          ii_html->add( |<td><input type="text" name="{ lv_cell_id }" id="{
                        lv_cell_id }" value="{ lv_value }"{ lv_readonly }></td>| ).
>>>>>>> main

Now, may I have all green lights please?

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-03-24 12:55:53 +01:00
.github default branch updates (#4572) 2021-02-28 18:07:37 +01:00
ci docs: Update guide-regular-backup.md (#4533) 2021-02-19 05:17:37 +01:00
docs user exit: wall messages (#4653) 2021-03-22 13:15:03 +01:00
src Fix for Java GUI so new repo can be defined (#4655) 2021-03-24 12:55:53 +01:00
test Docker infrastructure (#4445) 2021-01-25 18:26:18 +01:00
.abapgit.xml Codespaces setup (#3666) 2020-07-28 09:20:02 +02:00
.devcontainer.json Codespaces setup (#3666) 2020-07-28 09:20:02 +02:00
.editorconfig Add format for *.abap (#3679) 2020-08-13 09:05:19 +02:00
.eslintrc.yaml Eslint (#2240) 2018-12-30 08:05:17 +01:00
.gitignore unit testing test (#4169) 2020-11-15 12:09:41 +01:00
abap_transpile.json update deps (#4638) 2021-03-16 16:56:06 +01:00
abaplint.json update abaplint to latest (#4662) 2021-03-24 12:53:50 +01:00
changelog.txt 1.107.0 (#4656) 2021-03-22 13:27:31 +01:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2017-10-16 17:31:46 -02:00
CONTRIBUTING.md default branch updates (#4572) 2021-02-28 18:07:37 +01:00
LICENSE Create LICENSE 2014-07-08 15:07:58 +02:00
package.json update abaplint to latest (#4662) 2021-03-24 12:53:50 +01:00
README.md Update README.md (#4598) 2021-03-03 20:10:08 +01:00

CI Slack abap package version

abapGit logo

Git client for ABAP

Works with: GitHub, GitLab, Assembla, Bitbucket, abapGitServer, AWS, TFS, Azure DevOps and more.

ABAP Version: 702 or higher

Latest build: zabapgit.abap

Notes: Some people reported that browsers have issues displaying the file with more than 100k lines. The easiest solution is to "Save as" the link above and then open it with any editor/viewer (notepad included) and copy from there. If your SAP GUI editor freezes when pasting the code, use Utilities > More Utilities > Upload/Download > Upload in the editor instead.

It is recommened to use SAP GUI for Windows, since there are known issues related to running abapGit and SAP GUI for Java. The focus of abapGit is on supporting ADT instead of supporting SAP GUI for Java.

Design Goals

  • Easy installation
  • Easy upgrade
  • Small system footprint
  • Code readable in git repository

Documentation/Guides

https://docs.abapgit.org

Contributing

You can find the contribution guidelines here.

Projects using abapGit

See dotabap.org or this page.

FAQ

For questions/comments/bugs/feature requests/wishes please create an issue

abapgit

Credits and references

Icons used in abapGit are created from Font Awesome free icon set (CC BY 4.0 License).