Cold_Class

1

votes
0

answer
109

views

Remove paragraph style with docx4j

In my word template file I have some tables and sometimes the second column of them is formatted as an enumeration. Using docx4j I'm filling it with dynamic content and if there's only one entry I need to get rid of the enumeration style. I found a place deep down in the structure that has a value f...
Cold_Class
1

votes
0

answer
43

views

Sort objects based on other objects' properties in controller function using ES6 classes

I want to sort some projects based on their country using a custom function: customSort. The projects only reference the country by id, so I need to retrieve the name from a country objects array. In HTML my sorting looks like this: ng-repeat='customer in $ctrl.customers | orderBy:'country':false:$c...
Cold_Class
1

votes
1

answer
40

views

Spring get request file not being downloaded

I want to download a file when clicking on a button in my AngularJS app which runs on Tomcat with a Java Spring backend but nothing is happening. The method in the backend is called and everything seems to have worked....but my browser doesn't download anything. What am I missing? Here's the Angular...
Cold_Class
1

votes
1

answer
48

views

How to easily overwrite/change multiple php variables

I'm building a pdf with php and noticed that my strings didn't work, because they were in the UTF-8 Format. utf8_decode($str) works fine but I have plenty of variables that I would have to decode this way. My code looks something like this: function makePDF(titleStr, bodyStr, headerStr, and more...)...
Cold_Class
1

votes
1

answer
36

views

Initialize DateTime 01/01/Current year and 31/12/Current year

I'm struggling with the PHP-DateTime Object. I just want to set the beginn date to the start of the current year and the end date to the end of the current year. Is there an easy way to create such a date in one line? $beg = new DateTime();//TO-DO 01.01.ThisYear $this->beginDate = $beg; $end = n...
Cold_Class
1

votes
1

answer
228

views

reCaptcha - “send alerts to owners” - who?

I'm trying to get reCaptcha working on my website. I found out I have to register my domain for this first, since I already have a google account this is quite easy, but the very last checkbox made me think: How does google determine who the owners are? And what kind of alerts will those be? E-Mails...
Cold_Class
1

votes
2

answer
384

views

Launch node if not already running

When doing roslaunch .launch I want all nodes that are launched inside that file to only start if they're not running yet. How do I do this? If it's not possible, is it at least possible to do this for each node separately? If someone has an idea it would be great if you added that code to my exa...
Cold_Class
1

votes
1

answer
67

views

Create service using ES6 class and $resource

I want to create a service that can be injected into different controllers for using an entity called Contact. I have a .js file where everything is configured and I import the service there like this: import ContactService from './service/ContactService'; import ContactsController from './Conta...
Cold_Class
1

votes
1

answer
1.6k

views

Fill range table from itab using LET

I found this code for filling a range table here. DATA lr_vkorg TYPE RANGE OF vkorg. TYPES: lr_range_t TYPE RANGE OF vkorg. lr_vkorg = VALUE lr_range_t( LET s = 'I' o = 'EQ' IN sign = s option = o ( low = '1100' ) ( low = '1200' ) ( low = '1300' ) ( low = '1400' ) ( low = '1500' ) ). But inste...
Cold_Class
1

votes
3

answer
341

views

How to import parameter of type ANY?

How can I put what a method, in this example get_properties, is giving me into a local variable when the type of the parameter is ANY? 'ES_ATTRIBUTES Exporting Type ANY some_object->get_properties( IMPORTING es_attributes = ????? ). I tried to put it into this variable, but that didn't work: F...
Cold_Class
1

votes
1

answer
652

views

How to set possible date input formats for Typo3 6.2 Extbase Extension?

I made an extension with the Extension Builder in Typo3 6.2 using Fluid 6.2 and Extbase 6.2. I made Appointment-Objects with a date property. I want to enter the date in the format 'dd.mm.yyyy'. So I tried this: And it gives this error: I'm clueless as I'm not familiar with this and I want to solve...
Cold_Class
1

votes
1

answer
254

views

Multiple Select not working since upgrade to TYPO3 6.2 extbase

I just checked and the html output seems to be the same for this in my working version back with TYPO3 4.7 I have an appointment that can have multiple students. I add them to a multi-select through an autocomplete textinput-field. This is the output - in this example I have added two students. Th...
Cold_Class
1

votes
1

answer
70

views

What to do instead of <a> in <a>?

I am working on a new site, using this bootstrap tutorial for collapsing cards. I want to click on the whole card-header though, not just its button, so I replaced it with an tag and removed the button inside. But I also want to have multiple other clickable links in the card header and they are...
Cold_Class
1

votes
2

answer
161

views

Histogram hide empty bins

I want to illustrate nicely how often (y-axis) a certain output (x-axis) occurs... My code produces following plot: It's not good, because the values are rounded to integers apparently, e.g., there are not over a 100 outputs with 100%, but actually most of them are 99% I think. The code: #!/usr/...
Cold_Class
1

votes
2

answer
442

views

Listen to radio buttons on change and when the document is ready with jQuery?

I'm searching everywhere and I can only find how to make a radio button listener or how to check if it's checked on ready but never both, like I need: When I edit an object in a form, depending on what was selected in a radio group a div should be visible or hidden. And when the user changes that, i...
Cold_Class
1

votes
1

answer
1k

views

How to execute Report given the results of a previously executed Report in ABAP

My problem is the following: I have one report called Y5000112. My colleagues always execute it manually once with selection screen variant V1 and then execute it a second time with variant V2 adding the results of the first execution to the selection. Those results in this case are PERNR. My goal:...
Cold_Class
1

votes
1

answer
111

views

Properties that were not listed in fluid-form overwritten after submit

In my extbase 6.2 extension (built with extension builder) I have: An appointment that has a lawyer that has specializations (called expertises in this example). In my form I simply want to edit the expertises, but every time I hit submit my lawyer's properties are emptied except for the expert...
Cold_Class
1

votes
3

answer
509

views

Passing arguments to a different controller or alternatives

Inside my extbase extension I have an appointment model and users can write feedback to how the appointment was. So I created a feedback model with different fields. Now what should I implement for when the user clicks on the 'Create Feedback' button? So far I got this, but it's not working: I get t...
Cold_Class
1

votes
2

answer
265

views

How to retrieve a specific field from report output

I don't have any developer rights in my SAP-System but I found a way to write some ABAP-Code in a tiny 'User-Exit' box (I don't know if that's what you call it) inside a report. I'm trying to submit a HR-Report and plug it's outcoming PERNR into that same report again. There's a syntax-error tha...
Cold_Class
2

votes
1

answer
120

views

How to sort objects by amount of references with Extbase 6.2

In my extbase 6.2 extension I want the user to select something from a select-input, I want the items to be ordered by usage. I sorted my objects doing this before: /** * The repository for Expertises */ class ExpertiseRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { // Order by BE sor...
Cold_Class
4

votes
2

answer
222

views

How to add long text to BAL messages?

I create a log like this: CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = mv_log_handle. Then I add a msg to it like this: CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = mv_log_handle i_s_msg = ls_msg IMPORTING e_msg_was_logged = lv_was_...
Cold_Class
1

votes
2

answer
2.6k

views

How to include .js files in own Typo3 6.2 Extension?

I made an extension in Typo3 6.2 with extension builder, extbase and fluid. I want to add a timepicker in the frontend. I found a .js file online and want to include it whenever the extension is active because I need it often. I placed that file here: EXT:/Resources/Public/JS/timepicker.js. I saw a...
Cold_Class
2

votes
2

answer
701

views

Get Extensions is not working - how to fix it?

My TYPO3 Backend isn't loading available extensions. I can't find a solution to this anywhere on google: Just saw something about setting some curlUrl parameter to 1 in the Installtool but that didn't work. I also read something about that it might have to do with the 'Time since last update: unkn...
Cold_Class
4

votes
1

answer
985

views

TYPO3 Fluid - How To Make f:form.textarea Mandatory

I have text fields like this that will turn red and won't let you submit the form automatically if I put the property required on '1': Now I'm searching for the same in a textarea...the property required doesn't work here anymore...what would be the 'best practice' to make it a required field just l...
Cold_Class
5

votes
1

answer
1.4k

views

Doxygen - Could NOT find FLEX (missing: FLEX_EXECUTABLE)

I know there are very similar worded questions on here, but I could not find an answer to my question there, so here we go: I'm trying to see which of my C++ methods are called by others so I found Doxygen after googling. On their page the installation seems pretty straightforward: If you have the...
Cold_Class
2

votes
2

answer
48

views

Show mouseover text at certain width

I got an tag, that has text inside of it. On a phone screen the text is too long, so I hide it at a certain width. When it's hidden I want to activate a mouseover text instead. I tried it with but that mouseover-text stays visible when the screen is wide enough for the regular text. How can I dis...
Cold_Class
1

votes
2

answer
55

views

How to categorize records clearly in the backend of TYPO3 (6.2)

I used to have all my records in one page in the backend ('appointment data' in the picture below). That wasn't very user friendly because the backend users had a hard time finding the records they were looking for. I want to make it easier for them by having different pages for different records. I...
Cold_Class
2

votes
2

answer
43

views

Responsive bootstrap 3 buttons side by side without line breaks, only show symbol when too small

There are tons of button styling questions out there, but I can not find the one for my case, if you see one please link me to it. What I want: All buttons should be distributed across the whole available width As soon as there is an overflow, the text should be hidden and only the symbol shown ins...
Cold_Class
3

votes
3

answer
68

views

Draw Map in Browser out of 2 Dimensional Array of Distances

I'm receiving all distances between a random number of points in a 2 dimensional coordinate system. How can I visualize this as coordinates on a map in my browser? In case there are many solutions I just want to see the first possible one that my algorithm can come up with. So here's an extremely...
Cold_Class
1

votes
1

answer
224

views

Counting itab groups without a loop

I recently found out about the GROUP BY command in loops. Now imagine following example: I have an itab with a column categories. I want to know how many different categories there are. Using the GROUP BY statement linked above I could count number of times the loop is executed. Is there a simple...
Cold_Class
3

votes
1

answer
87

views

How to see all currently used packages?

I implemented a ros package that depends on some other packages. These packages depend on even more packages and so on... How can I find out which packages are actually used when building and running nodes in my package? (Except for looking at ALL the package.xml files manually, because there are...
Cold_Class
1

votes
2

answer
259

views

Check if message id exists

I am using the MESSAGE function and I want to know how I can find out if the message id exists or not. For example: I defined a message with the id '001' in my message class 'test_message'. Then I call it like this: MESSAGE e001(test_messages) WITH 'Test'. I retrieve it in another function from sy...
Cold_Class