You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 | First name | Last name |
2 | Bart | Kleijngeld |
3 | Christian | Bos |
Then I would like to do something like:
Read from cell by column name 2 Last name # returns 'Bos'
or:
Read from cell (2, Last name) # returns 'Bos'
These are just examples. How to implement this exactly is a matter of discussion:
Start the row numbering with the first data row or the header row (since the latter is skipped, it might make sense not to count it)?
Should this be a separate keyword, or should it be added as a locator strategy to Read from cell? This seems preferable, but might also be tempting in a bad way, where one so obsessively cramps everything into a single keyword that it becomes hard to maintain, read or even use.
Any ideas?
The text was updated successfully, but these errors were encountered:
I understand what you want to do, but I can't really find a usecase for when I would use it. A header isn't really a defined entity in Excel so I would stick to using either the coordinates (A1) or the numberindex (1,1). If a user really wants to use the header, I would advice him to read the first row and than make a mapping of those headers.
@frankvanderkuur That's funny, I seldomly use coordinates and always have an approach based on column names. I assumed everyone did, which is always a bad idea.
You definitely have a point regarding it not being an actual Excel entity. It is, by definition, a hack based not on (presumably obvious, but nonetheless) proper technical entities, but agreement. One could therefore argue it's place is not at library level.
On the other hand, if I'm not the only user who really likes working according to this approach, I think we shouldn't have to restrict ourselves since how this works is pretty obvious.
To not harass users like you who don't want to use this it would probably be better not to extent the existing Read from cell keyword with this functionality, but to choose to add a separate one as proposed earlier. That is, if we do decide to implement this at all.
Suppose this is what your Excel sheet looks like:
Then I would like to do something like:
or:
These are just examples. How to implement this exactly is a matter of discussion:
Read from cell
? This seems preferable, but might also be tempting in a bad way, where one so obsessively cramps everything into a single keyword that it becomes hard to maintain, read or even use.Any ideas?
The text was updated successfully, but these errors were encountered: