Timeline for Font Formatting in Advanced Label Expression ArcGIS/Python
Current License: CC BY-SA 3.0
23 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2017 at 19:34 | answer | added | Bstroppel | timeline score: 1 | |
Aug 5, 2014 at 17:11 | vote | accept | twistr25 | ||
Jul 22, 2014 at 12:08 | history | edited | twistr25 | CC BY-SA 3.0 |
Improved formatting and removed extraneous info not affecting the answer.
|
Jul 21, 2014 at 19:58 | answer | added | twistr25 | timeline score: 3 | |
Jul 21, 2014 at 19:49 | comment | added | twistr25 | My goodness that is frustrating, but I figured it out right about when you posted. How silly. Thank you kenbuja! | |
Jul 21, 2014 at 19:32 | history | edited | PolyGeo♦ |
edited tags
|
|
Jul 21, 2014 at 19:32 | comment | added | kenbuja |
You have the bol and clr tags end tags in the wrong order. It should be <bol><clr green='255'>"+ lab4+ "</clr></bol>\n" for each of them.
|
|
Jul 21, 2014 at 19:29 | comment | added | twistr25 | Narrowed further, its a problem with the color tag. Working on a fix | |
Jul 21, 2014 at 19:18 | comment | added | twistr25 | UPDATE - Nope that doesn't work either, still sees the tags as strings | |
Jul 21, 2014 at 19:12 | comment | added | twistr25 | I know I don't have any & in the date ranges or anything and again, if I print just the header portion [SWSID] and [Stn_Name] they come out just fine. Just when adding the other vars on it screw up. Going to try writing it all out into the if statements. | |
Jul 21, 2014 at 19:01 | comment | added | Sara Barnes | I wonder if the / in your dates or perhaps the _ is causing the problem. When I've done similar things in the past, I know having an & in any of the fields I am using will cause my expression not to work. | |
Jul 21, 2014 at 18:58 | comment | added | twistr25 | No on the SQL queries that I can see. I tried that first and I'm not sure if it was because of the number of variables, but i didn't see that it actually did anything. | |
Jul 21, 2014 at 18:54 | comment | added | GISHuman | I would remove any superfluous code when trying to troubleshoot. Is SQL queries out of the question for you? Or Exporting the a selection that is >90? | |
Jul 21, 2014 at 18:53 | comment | added | twistr25 | Yeah, some of that is just troubleshooting leftovers. I had that initially and it wasn't working. Tried some breakdown, if I remove the + lab1 + lab2 + lab3 + lab4, header parts work fine. If I add any back into the label var, it freaks out. | |
Jul 21, 2014 at 18:47 | comment | added | GISHuman |
Also what is the point of defining "highlight" and "endhigh" if you're not using those variables? Perhaps it should look more like lab2 = highlight + lab2 + endhigh
|
|
Jul 21, 2014 at 18:46 | comment | added | twistr25 | Yeah, that was just a copy paste thing I didn't want to bother correcting. The code is now sound(I think), its just the format tags don't want to play nice. | |
Jul 21, 2014 at 18:43 | comment | added | GISHuman | After your if statements they should also be indented | |
Jul 21, 2014 at 18:42 | history | edited | twistr25 | CC BY-SA 3.0 |
Fixed title
|
Jul 21, 2014 at 18:39 | answer | added | jbchurchill | timeline score: 0 | |
Jul 21, 2014 at 18:39 | comment | added | twistr25 | I get the logic, but gives me a syntax error. And that would have been ridiculous if that was necessary to make that work. Thanks for the thought though. | |
Jul 21, 2014 at 18:35 | comment | added | GISHuman | Try enclosing them in one more set of quotations | |
Jul 21, 2014 at 18:30 | comment | added | twistr25 | I found that it might need to use the & operator to concatenate, but I get a syntax error with that as well around the lab1, etc. | |
Jul 21, 2014 at 18:28 | history | asked | twistr25 | CC BY-SA 3.0 |